Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

OglGui::Menu Class Reference

#include <Menu.h>

Inheritance diagram for OglGui::Menu:

Inheritance graph
[legend]
Collaboration diagram for OglGui::Menu:

Collaboration graph
[legend]
List of all members.

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

MenuListenermMenuListener
void * mListenerData
std::vector< std::string > mItemNames
std::vector< int > mItemIdxs
std::vector< unsigned char > mItemOptions
std::vector< Menu * > mSubMenus
MenuTopPanemMenuTopPane
MenumCurSubMenu
int mCurItem
int mMenuIdx
int mItemHeight
ULONG mActiveBg
ULONG mLeftTopCol
ULONG mRightTopCol
ULONG mRightBotCol
ULONG mLeftBotCol

Detailed Description

Definition at line 27 of file Menu.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 12:02:39 2010 for ImpalaSrc by  doxygen 1.5.1