Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Menu Namespace Reference

Set of classes to make a simple graphical menuing system (like Quake3, Half-Life, etc) only simpler. More...


Compounds

class  Menu::BooleanItem
class  Menu::DefaultMenuItem
class  Menu::GotoSubMenu
class  Menu::InputGetter
class  Menu::IntInputter
class  Menu::KeyInputter
class  Menu::KeyMapContainer
class  Menu::MenuItem
class  Menu::MenuManager

Enumerations

enum  MenuHandleResult { , EVENT_HANDLED, EVENT_PASSED }

Variables

const int DEFAULT_FONT_SIZE = 24
const int TEXT_CENTER_X = 200
const int TITLE_OFFSET_FROM_TOP = 50
const int VERTICAL_SPACING = DEFAULT_FONT_SIZE/2
const int INPUT_HORIZ_SPACE = DEFAULT_FONT_SIZE*6
const char DEFAULT_FONT [] = "GameData/Fonts/bboron.ttf"
const SDL_Color DEFAULT_SELECTED_COL = {255, 0, 0, 0}
const SDL_Color DEFAULT_DESELECTED_COL = {0, 255, 0, 0}
const SDL_Color DEFAULT_ACTIVE_COL = {255, 255, 255, 0}
const SDL_Color DEFAULT_BG_COL = {0, 0, 0, 0}


Typedef Documentation

typedef std::map<SDLKey, std::string> Menu::KeyToStringMap_t
 

Definition at line 250 of file MenuManager.h.

typedef std::map<std::string, SDLKey> Menu::StringToKeyMap_t
 

Definition at line 249 of file MenuManager.h.


Enumeration Type Documentation

enum Menu::MenuHandleResult
 

See also:
MenuItem::handleEvent()
Enumeration values:
MENU_QUIT 
EVENT_HANDLED  tells menu to quit
EVENT_PASSED  tells menu that the event should be passed to the MenuManager to handle

Definition at line 55 of file MenuManager.h.


Variable Documentation

const SDL_Color Menu::DEFAULT_ACTIVE_COL = {255, 255, 255, 0}
 

Default color of active menu items (

See also:
InputGetter)

Definition at line 50 of file MenuManager.h.

const SDL_Color Menu::DEFAULT_BG_COL = {0, 0, 0, 0}
 

Default color of the back ground of the menus

Definition at line 52 of file MenuManager.h.

const SDL_Color Menu::DEFAULT_DESELECTED_COL = {0, 255, 0, 0}
 

Default color of deselected menu itmes (those who aren't being focused on)

Definition at line 48 of file MenuManager.h.

const char Menu::DEFAULT_FONT[] = "GameData/Fonts/bboron.ttf"
 

Default font to use for the menus

Definition at line 44 of file MenuManager.h.

const int Menu::DEFAULT_FONT_SIZE = 24
 

Default font size of all fonts in menus

Definition at line 33 of file MenuManager.h.

const SDL_Color Menu::DEFAULT_SELECTED_COL = {255, 0, 0, 0}
 

Default color of selected menu items (those who are being focused on

Definition at line 46 of file MenuManager.h.

const int Menu::INPUT_HORIZ_SPACE = DEFAULT_FONT_SIZE*6
 

Horizontal offset from the center of rendering to display input,

See also:
InputGetter

Definition at line 41 of file MenuManager.h.

const int Menu::TEXT_CENTER_X = 200
 

Position text is centered at in the menus

Definition at line 35 of file MenuManager.h.

const int Menu::TITLE_OFFSET_FROM_TOP = 50
 

Y position of the center of the title on the menu

Definition at line 37 of file MenuManager.h.

const int Menu::VERTICAL_SPACING = DEFAULT_FONT_SIZE/2
 

Vertical spacing between different menu items

Definition at line 39 of file MenuManager.h.


Generated on Tue May 21 07:26:56 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001