Mercurial > mplayer.hg
comparison gui/app/gui.h @ 36861:bade5683ca70
Fix bug with btnModify().
Don't change a button's pressed state with this function.
Only change an item's value.
Additionally, update documentation and change variable name.
author | ib |
---|---|
date | Fri, 28 Feb 2014 14:38:45 +0000 |
parents | bb067298265a |
children | 6104326789e6 |
comparison
equal
deleted
inserted
replaced
36860:d66aef85ae31 | 36861:bade5683ca70 |
---|---|
52 #define isInside(x, y, tx, ty, bx, by) ((x) > (tx) && (y) > (ty) && (x) < (bx) && (y) < (by)) | 52 #define isInside(x, y, tx, ty, bx, by) ((x) > (tx) && (y) > (ty) && (x) < (bx) && (y) < (by)) |
53 | 53 |
54 /// Check whether #guiItem @a item has a button (and thus a pressed state). | 54 /// Check whether #guiItem @a item has a button (and thus a pressed state). |
55 #define hasButton(item) (item.type == itButton || item.type == itHPotmeter || item.type == itVPotmeter) | 55 #define hasButton(item) (item.type == itButton || item.type == itHPotmeter || item.type == itVPotmeter) |
56 | 56 |
57 /// Check whether #guiItem @a item utilizes member 'value' | |
58 #define hasValue(item) (item.type == itHPotmeter || item.type == itVPotmeter || item.type == itPotmeter) | |
59 | |
57 #endif /* MPLAYER_GUI_GUI_H */ | 60 #endif /* MPLAYER_GUI_GUI_H */ |