Apocalypse mirror
Sourceforge mirror |
News | Info | Characters | Arenas | Screenshots | Forums | Download | ||||
Developer: | Making of | Character-HOWTO | AI Design | Submit a Character | |||
Documentation: | Main Page | Modules | Class Hierarchy | Class List | File List |
#include <menu.h>
Inheritance diagram for CMenuItem:
Public Member Functions | |
CMenuItem (CMenu *a_poMenu, const char *a_pcUtf8Text, int a_iCode=-1) | |
virtual | ~CMenuItem () |
virtual void | Draw () |
virtual void | Clear () |
virtual void | Activate () |
virtual void | Increment () |
virtual void | Decrement () |
virtual void | SetText (const char *a_pcUtf8Text, bool a_bCenter) |
virtual void | SetPosition (const SDL_Rect &a_roPosition) |
virtual void | SetActive (bool a_bActive) |
virtual void | SetEnabled (bool a_bEnabled) |
virtual bool | GetEnabled () const |
virtual int | GetCode () const |
Protected Attributes | |
CMenu * | m_poMenu |
std::string | m_sUtf8Text |
SDL_Rect | m_oPosition |
bool | m_bCenter |
Uint32 | m_iHighColor |
Uint32 | m_iLowColor |
Uint32 | m_iInactiveColor |
Uint32 | m_iBackgroundColor |
int | m_iCode |
bool | m_bActive |
bool | m_bEnabled |
Menu items have a code which they pass to their parent menu when they are activated. Menu items can be enabled or disabled.
|
|
|
|
|
|
|
|
|
Reimplemented in CEnumMenuItem. |
|
Reimplemented in CEnumMenuItem, and CTextMenuItem. |
|
|
|
|
|
Reimplemented in CEnumMenuItem. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|