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

#include <Menu.h>

List of all members.

Public Member Functions

 MenuItem (Text label, DWORD value=0, bool enabled=true)
virtual ~MenuItem ()
virtual Text GetText () const
virtual void SetText (Text t)
virtual DWORD GetData () const
virtual void SetData (DWORD d)
virtual int GetEnabled () const
virtual void SetEnabled (int e)
virtual int GetSelected () const
virtual void SetSelected (int s)
virtual MenuGetMenu () const
virtual void SetMenu (Menu *m)
virtual MenuGetSubmenu () const
virtual void SetSubmenu (Menu *s)

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

Text text
DWORD data
int enabled
int selected
Menumenu
Menusubmenu

Friends

class Menu

Detailed Description

Definition at line 64 of file Menu.h.


Constructor & Destructor Documentation

MenuItem::MenuItem ( Text  label,
DWORD  value = 0,
bool  enabled = true 
)

Definition at line 85 of file Menu.cpp.

MenuItem::~MenuItem ( )
virtual

Definition at line 89 of file Menu.cpp.


Member Function Documentation

virtual DWORD MenuItem::GetData ( ) const
inlinevirtual

Definition at line 75 of file Menu.h.

virtual int MenuItem::GetEnabled ( ) const
inlinevirtual

Definition at line 78 of file Menu.h.

virtual Menu* MenuItem::GetMenu ( ) const
inlinevirtual

Definition at line 84 of file Menu.h.

virtual int MenuItem::GetSelected ( ) const
inlinevirtual

Definition at line 81 of file Menu.h.

virtual Menu* MenuItem::GetSubmenu ( ) const
inlinevirtual

Definition at line 87 of file Menu.h.

virtual Text MenuItem::GetText ( ) const
inlinevirtual

Definition at line 72 of file Menu.h.

virtual void MenuItem::SetData ( DWORD  d)
inlinevirtual

Definition at line 76 of file Menu.h.

virtual void MenuItem::SetEnabled ( int  e)
inlinevirtual

Definition at line 79 of file Menu.h.

virtual void MenuItem::SetMenu ( Menu m)
inlinevirtual

Definition at line 85 of file Menu.h.

virtual void MenuItem::SetSelected ( int  s)
inlinevirtual

Definition at line 82 of file Menu.h.

virtual void MenuItem::SetSubmenu ( Menu s)
inlinevirtual

Definition at line 88 of file Menu.h.

virtual void MenuItem::SetText ( Text  t)
inlinevirtual

Definition at line 73 of file Menu.h.

static const char* MenuItem::TYPENAME ( )
inlinestatic

Definition at line 67 of file Menu.h.


Friends And Related Function Documentation

friend class Menu
friend

Definition at line 99 of file Menu.h.


Member Data Documentation

DWORD MenuItem::data
protected

Definition at line 92 of file Menu.h.

int MenuItem::enabled
protected

Definition at line 93 of file Menu.h.

Menu* MenuItem::menu
protected

Definition at line 96 of file Menu.h.

int MenuItem::selected
protected

Definition at line 94 of file Menu.h.

Menu* MenuItem::submenu
protected

Definition at line 97 of file Menu.h.

Text MenuItem::text
protected

Definition at line 91 of file Menu.h.


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