Mercurial > mplayer.hg
comparison gui/app/gui.h @ 35675:9e2183017f1f
Move wgIsRect from ws.h to gui.h.
It's not window system specific.
Additionally, rename it isInside.
author | ib |
---|---|
date | Thu, 17 Jan 2013 17:11:46 +0000 |
parents | e27855a45128 |
children | a5f7a861a293 |
comparison
equal
deleted
inserted
replaced
35674:5c2f331d306a | 35675:9e2183017f1f |
---|---|
36 #define SAME_STREAMTYPE (STREAMTYPE_DUMMY - 1) | 36 #define SAME_STREAMTYPE (STREAMTYPE_DUMMY - 1) |
37 | 37 |
38 /// StreamTypes that are permitted in a playlist | 38 /// StreamTypes that are permitted in a playlist |
39 #define isPlaylistStreamtype (guiInfo.StreamType == STREAMTYPE_FILE || guiInfo.StreamType == STREAMTYPE_STREAM) | 39 #define isPlaylistStreamtype (guiInfo.StreamType == STREAMTYPE_FILE || guiInfo.StreamType == STREAMTYPE_STREAM) |
40 | 40 |
41 /// check whether x/y is inside the rectangle given by top x/y and bottom x/y | |
42 #define isInside(x, y, tx, ty, bx, by) ((x) > (tx) && (y) > (ty) && (x) < (bx) && (y) < (by)) | |
43 | |
41 #endif /* MPLAYER_GUI_GUI_H */ | 44 #endif /* MPLAYER_GUI_GUI_H */ |