#include <CATMenu.h>
Definition at line 48 of file CATMenu.h.
Public Member Functions | |
CATMenu (const CATString &element, const CATString &rootDir) | |
virtual | ~CATMenu () |
virtual bool | IsFocusable () const |
virtual void | PostDraw (CATDRAWCONTEXT drawContext, const CATRect &dirtyRect) |
virtual CATResult | ParseAttributes () |
ParseAttributes() parses the known attributes for an object. | |
virtual void | SetString (const CATString &text) |
These by default try to convert to float. String-type controls override them. | |
virtual CATString | GetString () const |
virtual CATResult | OnEvent (const CATEvent &event, CATInt32 &retVal) |
Event handler. | |
virtual CATMENUITEM * | GetCurItem () |
virtual CATResult | SetCurItem (CATMENUITEM *item) |
virtual CATUInt32 | GetNumTopNodes () |
virtual CATMENUITEM * | GetTopNode (CATUInt32 index) |
virtual CATResult | Insert (const CATString &displayText, CATMENUITEM *parent, CATMENUITEM *&newItemRef, void *dataPtr, bool subMenu=false, CATUInt32 index=-1, const CATString &altCommand="") |
virtual CATResult | InsertSeperator (CATMENUITEM *parent=0, CATUInt32 index=-1) |
virtual CATResult | Remove (CATMENUITEM *&item) |
virtual CATResult | Clear () |
Clear() clears the menu. | |
virtual void | OnMouseClick () |
virtual CATCommand | GetCommand () const |
virtual CATString | GetHint () const |
virtual void | SetItalics (bool italics) |
virtual bool | GetItalics () const |
virtual bool | HasSelectionMark () |
HasSelectionMark() returns true if menu displays a selection mark when drawn on current item. | |
virtual bool | ForceWidth () const |
virtual void | DoMenu () |
Do the menu. | |
Protected Member Functions | |
void | BuildMenu () |
Recursive fill of menu from existing data. | |
void | ClearMenu () |
Clear local menu. | |
void | ClearMenuItem (CATMENUITEM *item) |
Protected Attributes | |
bool | fUpdateTextOnSel |
bool | fShowSel |
CATMENUITEM * | fCurSel |
std::vector< CATMENUITEM * > | fRootList |
bool | fMenuDirty |
bool | fItalics |
GGMENUSTYLE | fMenuStyle |
CATUInt32 | fMenuId |
CATUInt32 | fIdCount |
bool | fWindowBuilt |
bool | fOutline |
bool | fForceWidth |