Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATMenu Class Reference

CATMenu Class Reference
[GUI Application library for CAT]

#include <CATMenu.h>

Inheritance diagram for CATMenu:

CATControl CATWidget CATGuiObj CATXMLObject

List of all members.


Detailed Description

Text label for GUI.

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 CATMENUITEMGetCurItem ()
virtual CATResult SetCurItem (CATMENUITEM *item)
virtual CATUInt32 GetNumTopNodes ()
virtual CATMENUITEMGetTopNode (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
CATMENUITEMfCurSel
std::vector< CATMENUITEM * > fRootList
bool fMenuDirty
bool fItalics
GGMENUSTYLE fMenuStyle
CATUInt32 fMenuId
CATUInt32 fIdCount
bool fWindowBuilt
bool fOutline
bool fForceWidth

The documentation for this class was generated from the following files:
Generated on Mon Feb 11 04:10:44 2008 for Game Accessibility Suite by doxygen 1.5.4