Hosting courtesy of Sourceforge

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

Menu::MenuManager Class Reference

#include <MenuManager.h>

List of all members.

Public Methods

 MenuManager (const std::string &title, const SDL_Color &titleCol, const SDL_Color &bg=DEFAULT_BG_COL)
bool run (SDL_Surface *screen)
void addMenuItem (MenuItem *item)


Detailed Description

Class that maintains a list of MenuItems. MenuManager is handles events and decides which items recieve notification of events.

Definition at line 112 of file MenuManager.h.


Constructor & Destructor Documentation

MenuManager::MenuManager const std::string &    t,
const SDL_Color &    titleColor,
const SDL_Color &    bg = DEFAULT_BG_COL
 

Parameters:
title  Text appearing at the top of the menu describing what this menu is used for
titleCol  color that the title text will be rendered in
bg  background color of the menu

Definition at line 30 of file MenuManager.cpp.

MenuManager::~MenuManager  
 

Definition at line 106 of file MenuManager.cpp.


Member Function Documentation

void MenuManager::addMenuItem MenuItem   item
 

Parameters:
item  dynamically allocated MenuItem to this menu. This menu is responible for its deletion.

Definition at line 102 of file MenuManager.cpp.

bool MenuManager::run SDL_Surface *    screen
 

Start the menu manager main loop

Parameters:
screen  SDL_Surface* to the screen
Returns:
true if the application should quit, false otherwise

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