Hosting courtesy of Sourceforge

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

Menu::BooleanItem Class Reference

#include <MenuManager.h>

Inheritance diagram for Menu::BooleanItem:

Inheritance graph
[legend]
Collaboration diagram for Menu::BooleanItem:

Collaboration graph
[legend]
List of all members.

Public Methods

 BooleanItem (const std::string &name, bool &b, const SDL_Color &sel=DEFAULT_SELECTED_COL, const SDL_Color &unsel=DEFAULT_DESELECTED_COL)
MenuHandleResult handleEvent (SDL_Event *e)

Constructor & Destructor Documentation

BooleanItem::BooleanItem const std::string &    name,
bool &    b,
const SDL_Color &    s = DEFAULT_SELECTED_COL,
const SDL_Color &    u = DEFAULT_DESELECTED_COL
 

Parameters:
b  bool reference to toggle between enabled/disabled

Definition at line 145 of file MenuManager.cpp.


Member Function Documentation

void BooleanItem::draw SDL_Surface *    surf,
TTF_Font *    font,
int    centerX,
int    centerY
[virtual]
 

Reimplemented from Menu::DefaultMenuItem.

Definition at line 158 of file MenuManager.cpp.

MenuHandleResult BooleanItem::handleEvent SDL_Event *    e [virtual]
 

Flip b when enter pressed. Ignore otherwise.

Returns:
EVENT_HANDLED if enter was pressed, else EVENT_PASSED.

Reimplemented from Menu::MenuItem.

Definition at line 150 of file MenuManager.cpp.


The documentation for this class was generated from the following files:
Generated on Tue May 21 07:26:56 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001