#include <menu.h>
Collaboration diagram for MenuItem_t:
Data Fields | |
union { | |
struct { | |
Bool active: 1 | |
When true, the menu item may be given the input focus. | |
Bool expandHeight: 1 | |
Enables expanding the height of the menu item when resized to fill the availble height. | |
Bool hasFocus: 1 | |
When true, the item has the input focus. | |
Bool isPlaced: 1 | |
True when the menu item has placed all of its graphics within its assigned region. | |
Bool lockFocus: 1 | |
When true, the player is not allowed to switch focus away from this item. | |
} | |
Uint32 flags | |
A set of flags. | |
}; | |
void * | data |
Additional application specific information about this option. | |
MenuItemFocus | focus |
The function used to modify the menu item when it gains and loses focus. | |
RenderItem * | graphics |
The visible things that are related to this menu item. | |
MenuItemInput | input |
The function that responds to user input for the menu item. | |
int | minHeight |
int | minWidth |
The minimum width and height the menu item requires to draw itself properly. | |
Uint32 | numGraphics |
The number of items in graphics. | |
SDL_Rect | region |
Defines the region over which this menu item is drawn. | |
MenuItemUpdate | update |
The function that keeps the display of the menu item up to date. |
Definition at line 92 of file menu.h.
union { ... } |
When true, the menu item may be given the input focus.
Definition at line 140 of file menu.h.
Referenced by NetStatInit(), and TeamSelInit().
void* MenuItem_t::data |
Additional application specific information about this option.
Definition at line 169 of file menu.h.
Referenced by NetStatInit().
Enables expanding the height of the menu item when resized to fill the availble height.
Definition at line 156 of file menu.h.
Referenced by TeamSelInit().
Uint32 MenuItem_t::flags |
The function used to modify the menu item when it gains and loses focus.
The value may be NULL to indicate that there is no function to call.
Definition at line 117 of file menu.h.
Referenced by NetStatInit().
When true, the item has the input focus.
Definition at line 144 of file menu.h.
Referenced by MenuRun(), NetStatFocus(), NetStatUpdate(), and SetupMenu().
The function that responds to user input for the menu item.
The value may be NULL to indicate that there is no function to call.
Definition at line 122 of file menu.h.
Referenced by NetStatInit(), and TeamSelInit().
True when the menu item has placed all of its graphics within its assigned region.
This flag is cleared when the window is resized. The menu item's update funtion (see MenuItemUpdate) is responsible for placing the render items and clearing this flag.
Definition at line 163 of file menu.h.
Referenced by NetStatUpdate(), and TeamSelUpdate().
The minimum width and height the menu item requires to draw itself properly.
Definition at line 97 of file menu.h.
Referenced by NetStatInit(), ResizeMenu(), and TeamSelInit().
Uint32 MenuItem_t::numGraphics |
SDL_Rect MenuItem_t::region |
Defines the region over which this menu item is drawn.
Used by the menu system to place markers around the menu item to denote it has input focus.
Definition at line 103 of file menu.h.
Referenced by NetStatUpdate(), PlaceMarkers(), RenderLatency(), RenderLocalAddr(), RenderTSync(), and TeamSelUpdate().
The function that keeps the display of the menu item up to date.
This function must be defined so that after window resizes and resolution changes the menu item will be drawn in the proper place.
Definition at line 128 of file menu.h.
Referenced by MenuRun(), NetStatInit(), ResizeMenu(), and TeamSelInit().