mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-12 00:01:43 +00:00
Docs for MenuGroup
This commit is contained in:
parent
2d34b89f3f
commit
b250879817
1 changed files with 23 additions and 3 deletions
|
@ -3,13 +3,33 @@
|
||||||
|
|
||||||
#include "gui/Group.h"
|
#include "gui/Group.h"
|
||||||
|
|
||||||
|
/** A group of views for use as a menu.
|
||||||
|
|
||||||
|
A menu may consist of decorations and actual menu items. For correct
|
||||||
|
results, the decoration views must be added before the menu item views.
|
||||||
|
*/
|
||||||
@interface MenuGroup : Group
|
@interface MenuGroup : Group
|
||||||
{
|
{
|
||||||
int base;
|
int base; ///< The index of the first menu item.
|
||||||
int current;
|
int current; ///< The currently selected menu item.
|
||||||
}
|
}
|
||||||
-(void)setBase:(int)b;
|
|
||||||
|
/** Set the index of the first menu item.
|
||||||
|
|
||||||
|
\param b The index of the first menu item.
|
||||||
|
*/
|
||||||
|
-(void) setBase: (int) b;
|
||||||
|
|
||||||
|
/** Select the next menu item.
|
||||||
|
|
||||||
|
Wraps back to the base menu item if the current menu item is the last.
|
||||||
|
*/
|
||||||
-(void) next;
|
-(void) next;
|
||||||
|
|
||||||
|
/** Select the previous menu item.
|
||||||
|
|
||||||
|
Wraps to the last menu item if the current menu item is the base item.
|
||||||
|
*/
|
||||||
-(void) prev;
|
-(void) prev;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue