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

CATListBox Class Reference

#include <CATListBox.h>

Inheritance diagram for CATListBox:

CATControlWnd CATControl CATWidget CATGuiObj CATXMLObject

List of all members.


Detailed Description

list box for GUI \ingroup CATGUI

Definition at line 35 of file CATListBox.h.


Public Member Functions

 CATListBox (const CATString &element, const CATString &rootDir)
virtual ~CATListBox ()
virtual bool OnControlEvent (const CATEvent &event, CATInt32 &result)
virtual CATResult OnEvent (const CATEvent &event, CATInt32 &retVal)
 Event handler.
virtual void SetFocused (bool focused)
virtual CATString GetHint () const
 GetHint() retrieves the hint text for the control.
virtual void OnEscapeChange ()
virtual void OnParentCreate ()
virtual void OnParentDestroy ()
virtual CATInt32 GetCount () const
virtual CATInt32 GetCurIndex () const
virtual CATResult SetCurSel (CATInt32 index=-1)
virtual CATString GetText (CATInt32 index=-1) const
virtual CATResult SetCurSelByName (const CATString &displayText)
virtual CATResult Insert (const CATString &displayText, void *dataPtr, CATInt32 index=-1)
virtual CATResult Remove (CATInt32 index)
virtual CATResult RemoveByName (const CATString &displayText)
virtual CATResult Get (CATInt32 index, CATString &displayTextRef, void *&dataRef) const
virtual CATResult GetByName (const CATString &displayTextRef, void *&dataRef) const
virtual CATResult Clear ()
virtual CATCommand GetCommand () const
virtual CATString GetString () const
virtual void OSOnMeasureItem (CATLISTINFO *listItem, CATUInt32 &width, CATUInt32 &height)
virtual void OSOnDrawItem (CATLISTINFO *listItem, bool selected, CATDRAWCONTEXT hDC, CATRect rect)

Protected Member Functions

CATResult OSEvent (const CATEvent &event, CATInt32 &retVal)
void OSClearList ()
CATResult OSAddItem (CATInt32 index, const CATString &displayText, const CATLISTINFO *listInfo)
CATResult OSRemoveItem (CATInt32 index)
CATInt32 OSGetCurSel ()
CATResult OSSetCurSel (CATInt32 index)

Protected Attributes

CATFONT fFont
CATInt32 fCurSel
std::vector< CATLISTINFO * > fList

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