diff 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
line wrap: on
line diff
--- a/gui/app/gui.h	Thu Jan 17 16:53:15 2013 +0000
+++ b/gui/app/gui.h	Thu Jan 17 17:11:46 2013 +0000
@@ -38,4 +38,7 @@
 /// StreamTypes that are permitted in a playlist
 #define isPlaylistStreamtype (guiInfo.StreamType == STREAMTYPE_FILE || guiInfo.StreamType == STREAMTYPE_STREAM)
 
+/// check whether x/y is inside the rectangle given by top x/y and bottom x/y
+#define isInside(x, y, tx, ty, bx, by) ((x) > (tx) && (y) > (ty) && (x) < (bx) && (y) < (by))
+
 #endif /* MPLAYER_GUI_GUI_H */