Mercurial > mplayer.hg
diff gui/app/gui.h @ 37053:84c93a60ead3
Add new item 'rpotmeter'.
This is the missing counterpart to hpotmeter and vpotmeter
allowing rotary control elements in a GUI skin now.
Based on an idea and a realization by Hans-Dieter Kosch,
hdkosch kabelbw de.
Additionally, update (and revise) documentation.
author | ib |
---|---|
date | Sat, 12 Apr 2014 23:29:29 +0000 |
parents | 40ad45360c8a |
children |
line wrap: on
line diff
--- a/gui/app/gui.h Fri Apr 11 09:34:31 2014 +0000 +++ b/gui/app/gui.h Sat Apr 12 23:29:29 2014 +0000 @@ -48,9 +48,9 @@ #define isInside(x, y, tx, ty, bx, by) ((x) > (tx) && (y) > (ty) && (x) < (bx) && (y) < (by)) /// Check whether #guiItem @a item has a button (and thus a pressed state). -#define hasButton(item) (item.type == itButton || item.type == itHPotmeter || item.type == itVPotmeter) +#define hasButton(item) (item.type == itButton || item.type == itHPotmeter || item.type == itVPotmeter || item.type == itRPotmeter) /// Check whether #guiItem @a item utilizes member 'value' -#define hasValue(item) (item.type == itHPotmeter || item.type == itVPotmeter || item.type == itPimage) +#define hasValue(item) (item.type == itHPotmeter || item.type == itVPotmeter || item.type == itRPotmeter || item.type == itPimage) #endif /* MPLAYER_GUI_GUI_H */