comparison 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
comparison
equal deleted inserted replaced
37052:2ef6693131f7 37053:84c93a60ead3
46 46
47 /// Check whether @a x/y is inside the rectangle given by @a top @a x/y and @a bottom @a x/y. 47 /// Check whether @a x/y is inside the rectangle given by @a top @a x/y and @a bottom @a x/y.
48 #define isInside(x, y, tx, ty, bx, by) ((x) > (tx) && (y) > (ty) && (x) < (bx) && (y) < (by)) 48 #define isInside(x, y, tx, ty, bx, by) ((x) > (tx) && (y) > (ty) && (x) < (bx) && (y) < (by))
49 49
50 /// Check whether #guiItem @a item has a button (and thus a pressed state). 50 /// Check whether #guiItem @a item has a button (and thus a pressed state).
51 #define hasButton(item) (item.type == itButton || item.type == itHPotmeter || item.type == itVPotmeter) 51 #define hasButton(item) (item.type == itButton || item.type == itHPotmeter || item.type == itVPotmeter || item.type == itRPotmeter)
52 52
53 /// Check whether #guiItem @a item utilizes member 'value' 53 /// Check whether #guiItem @a item utilizes member 'value'
54 #define hasValue(item) (item.type == itHPotmeter || item.type == itVPotmeter || item.type == itPimage) 54 #define hasValue(item) (item.type == itHPotmeter || item.type == itVPotmeter || item.type == itRPotmeter || item.type == itPimage)
55 55
56 #endif /* MPLAYER_GUI_GUI_H */ 56 #endif /* MPLAYER_GUI_GUI_H */