aedMenu Class Reference

This is a simple menu class. More...

#include <aedMenu.h>

Inheritance diagram for aedMenu:

Inheritance graph
[legend]
Collaboration diagram for aedMenu:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 aedMenu ()
 ~aedMenu ()
unsigned int addItem (const std::string &caption, aedMenu *child=NULL)
 Add an item to a menu.
void removeItem (unsigned int index)
 Remove an item from a menu.
int wm_lbuttondown (Uint16 x, Uint16 y)
int wm_mousemove (Uint16 x, Uint16 y, Uint16 dx, Uint16 dy)
int wm_mouseleave ()
int wm_mouseenter ()
void render ()

Private Member Functions

int getIndexFromPixel (Uint16 x, Uint16 y)

Private Attributes

int m_Highlight
std::vector< aedMenuItemm_Items

Detailed Description

This is a simple menu class.


Constructor & Destructor Documentation

aedMenu::aedMenu (  ) 

aedMenu::~aedMenu (  ) 


Member Function Documentation

unsigned int aedMenu::addItem ( const std::string &  caption,
aedMenu child = NULL 
)

Add an item to a menu.

Parameters:
caption text that will be displayed in the menu
child optional pointer to a submenu
Returns:
index of the newly-added item in the menu

int aedMenu::getIndexFromPixel ( Uint16  x,
Uint16  y 
) [private]

void aedMenu::removeItem ( unsigned int  index  ) 

Remove an item from a menu.

Parameters:
index index of the item you wish to remove from the menu

void aedMenu::render (  )  [virtual]

Reimplemented from aedWidget.

int aedMenu::wm_lbuttondown ( Uint16  x,
Uint16  y 
) [virtual]

Reimplemented from aedWidget.

int aedMenu::wm_mouseenter (  )  [virtual]

Reimplemented from aedWidget.

int aedMenu::wm_mouseleave (  )  [virtual]

Reimplemented from aedWidget.

int aedMenu::wm_mousemove ( Uint16  x,
Uint16  y,
Uint16  dx,
Uint16  dy 
) [virtual]

Reimplemented from aedWidget.


Member Data Documentation

int aedMenu::m_Highlight [private]

std::vector< aedMenuItem > aedMenu::m_Items [private]


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:25 2007 for MetalWarriors by  doxygen 1.4.7