Hosting courtesy of Sourceforge

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

Menu::GotoSubMenu Class Reference

#include <MenuManager.h>

Inheritance diagram for Menu::GotoSubMenu:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 GotoSubMenu (const std::string &title, MenuManager &m, SDL_Surface *screen, const SDL_Color &selCol=DEFAULT_SELECTED_COL, const SDL_Color &nonSelCol=DEFAULT_DESELECTED_COL)
MenuHandleResult handleEvent (SDL_Event *e)

Detailed Description

MenuItem that enables going to a submenu

Definition at line 158 of file MenuManager.h.


Constructor & Destructor Documentation

GotoSubMenu::GotoSubMenu const std::string &    title,
MenuManager   m,
SDL_Surface *    surf,
const SDL_Color &    s = DEFAULT_SELECTED_COL,
const SDL_Color &    u = DEFAULT_DESELECTED_COL
 

Parameters:
title  the name of this menu item, displayed when rendered
m  pointer to menu to run when this sub menu is hit
selCol  color of the item when it is selected
nonSelCol  color of the item when it is not selected

Definition at line 175 of file MenuManager.cpp.


Member Function Documentation

MenuHandleResult GotoSubMenu::handleEvent SDL_Event *    e [virtual]
 

Runs the submenu when enter is pressed and returns EVENT_HANDLED, else returns EVENT_PASSED

Reimplemented from Menu::MenuItem.

Definition at line 182 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