aedMenuBar Class Reference

The aedMenuBar class, used for creating simple menu bars, obviously. More...

#include <aedMenuBar.h>

Inheritance diagram for aedMenuBar:

Inheritance graph
[legend]
Collaboration diagram for aedMenuBar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 aedMenuBar ()
 ~aedMenuBar ()
unsigned int attachMenu (std::string title, aedMenu *menu, int pos=-1)
 Attach a menu to a menu bar.
void detachMenu (unsigned int index)
 Detach a menu from a menu bar.
void detachMenu (aedMenu *menu)
 Detach a menu from a menu bar.
int wm_lbuttondown (Uint16 x, Uint16 y)
int wm_mousemove (Uint16 x, Uint16 y, Uint16 dx, Uint16 dy)
int wm_mouseleave ()
void render ()

Private Member Functions

int getIndexFromPixel (Uint16 x, Uint16 y, aedRect &rect)

Private Attributes

int m_Highlight
int m_Active
std::vector< aedMenu * > m_Menus

Detailed Description

The aedMenuBar class, used for creating simple menu bars, obviously.


Constructor & Destructor Documentation

aedMenuBar::aedMenuBar (  ) 

aedMenuBar::~aedMenuBar (  ) 


Member Function Documentation

unsigned int aedMenuBar::attachMenu ( std::string  title,
aedMenu menu,
int  pos = -1 
)

Attach a menu to a menu bar.

Parameters:
title title of the menu as displayed in the menu bar
menu pointer to the menu
pos position of the menu in the menu bar (-1 means end)
Returns:
index of the attached menu

void aedMenuBar::detachMenu ( aedMenu menu  ) 

Detach a menu from a menu bar.

Parameters:
menu pointer to the menu to be removed

void aedMenuBar::detachMenu ( unsigned int  index  ) 

Detach a menu from a menu bar.

Parameters:
index index of the menu to be removed

int aedMenuBar::getIndexFromPixel ( Uint16  x,
Uint16  y,
aedRect rect 
) [private]

void aedMenuBar::render (  )  [virtual]

Reimplemented from aedWidget.

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

Reimplemented from aedWidget.

int aedMenuBar::wm_mouseleave (  )  [virtual]

Reimplemented from aedWidget.

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

Reimplemented from aedWidget.


Member Data Documentation

int aedMenuBar::m_Active [private]

int aedMenuBar::m_Highlight [private]

std::vector< aedMenu * > aedMenuBar::m_Menus [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