Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Menu Class Reference

#include <Menu.h>

List of all members.

Public Member Functions

 Menu ()
 Menu (Text t)
virtual ~Menu ()
virtual Text GetTitle () const
virtual void SetTitle (Text t)
virtual MenuGetParent () const
virtual void SetParent (Menu *p)
virtual void AddItem (Text label, DWORD value=0, bool enabled=true)
virtual void AddItem (MenuItem *item)
virtual void AddMenu (Text label, Menu *menu, DWORD value=0)
virtual MenuItemGetItem (int index)
virtual void SetItem (int index, MenuItem *item)
virtual int NumItems () const
virtual void ClearItems ()
ListIter< MenuItemGetItems ()

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

Text title
List< MenuItemitems
Menuparent

Friends

class MenuItem

Detailed Description

Definition at line 30 of file Menu.h.


Constructor & Destructor Documentation

Menu::Menu ( )
inline

Definition at line 35 of file Menu.h.

Menu::Menu ( Text  t)
inline

Definition at line 36 of file Menu.h.

virtual Menu::~Menu ( )
inlinevirtual

Definition at line 37 of file Menu.h.


Member Function Documentation

void Menu::AddItem ( Text  label,
DWORD  value = 0,
bool  enabled = true 
)
virtual

Definition at line 21 of file Menu.cpp.

void Menu::AddItem ( MenuItem item)
virtual

Definition at line 32 of file Menu.cpp.

void Menu::AddMenu ( Text  label,
Menu menu,
DWORD  value = 0 
)
virtual

Definition at line 41 of file Menu.cpp.

void Menu::ClearItems ( )
virtual

Definition at line 77 of file Menu.cpp.

MenuItem * Menu::GetItem ( int  index)
virtual

Definition at line 55 of file Menu.cpp.

ListIter<MenuItem> Menu::GetItems ( )
inline

Definition at line 52 of file Menu.h.

virtual Menu* Menu::GetParent ( ) const
inlinevirtual

Definition at line 41 of file Menu.h.

virtual Text Menu::GetTitle ( ) const
inlinevirtual

Definition at line 39 of file Menu.h.

int Menu::NumItems ( ) const
virtual

Definition at line 71 of file Menu.cpp.

void Menu::SetItem ( int  index,
MenuItem item 
)
virtual

Definition at line 64 of file Menu.cpp.

virtual void Menu::SetParent ( Menu p)
inlinevirtual

Definition at line 42 of file Menu.h.

virtual void Menu::SetTitle ( Text  t)
inlinevirtual

Definition at line 40 of file Menu.h.

static const char* Menu::TYPENAME ( )
inlinestatic

Definition at line 33 of file Menu.h.


Friends And Related Function Documentation

friend class MenuItem
friend

Definition at line 59 of file Menu.h.


Member Data Documentation

List<MenuItem> Menu::items
protected

Definition at line 56 of file Menu.h.

Menu* Menu::parent
protected

Definition at line 57 of file Menu.h.

Text Menu::title
protected

Definition at line 55 of file Menu.h.


The documentation for this class was generated from the following files: