#include <Menu.h>
Inheritance diagram for OglGui::Menu:
Public Member Functions | |
Menu (MenuTopPane *parent, int menuIdx=0, int w=100) | |
void | SetMenuListener (MenuListener *l, void *userData) |
void | ActiveItemBackground (ULONG col) |
ULONG | ActiveItemBackground () |
void | SetCornerColors (ULONG lT, ULONG rT, ULONG rB, ULONG lB) |
void | SetOptions (int itemIdx, int options, bool mode) |
void | SetOptions (strconst itemName, int options, bool mode) |
void | AddItem (strconst item, int idx=0, int insertAt=-1, int options=0) |
void | AddMenu (Menu *menu, strconst item, int idx=0, int insertAt=-1, int options=0) |
void | InsertItem (strconst str, Menu *menu, int idx=0, int insertAt=-1, int options=0) |
void | HandleLayout () |
void | Open (int topX, int topY, int pW=100) |
void | Close () |
void | CloseSubMenu () |
virtual void | InitDisplayFunc () |
virtual void | DisplayFunc () |
virtual void | MouseFunc (int msg, int btn, int state, int x, int y) |
This function is called by the event handling system everytime the user has moved or clicked the mouse. | |
bool | IsSubMenu (int arrIdx) |
bool | IsEnabled (int arrIdx) |
bool | IsChecked (int arrIdx) |
bool | IsSeparator (int arrIdx) |
bool | IsOptionOn (int arrIdx, int option) |
Static Public Attributes | |
static const int | DISABLED = 1 |
static const int | CHECKED = 2 |
static const int | SEPARATOR = 4 |
Protected Member Functions | |
void | ActivateListener () |
void | SetArrayIndexOption (int arrIdx, int option, bool mode) |
void | DrawMenuItem (int idx) |
Private Member Functions | |
void | Init (MenuTopPane *parent, int menuIdx) |
Private Attributes | |
MenuListener * | mMenuListener |
void * | mListenerData |
std::vector< std::string > | mItemNames |
std::vector< int > | mItemIdxs |
std::vector< unsigned char > | mItemOptions |
std::vector< Menu * > | mSubMenus |
MenuTopPane * | mMenuTopPane |
Menu * | mCurSubMenu |
int | mCurItem |
int | mMenuIdx |
int | mItemHeight |
ULONG | mActiveBg |
ULONG | mLeftTopCol |
ULONG | mRightTopCol |
ULONG | mRightBotCol |
ULONG | mLeftBotCol |
Definition at line 27 of file Menu.h.