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

CATControlWnd Class Reference
[GUI Application library for CAT]

#include <CATControlWnd.h>

Inheritance diagram for CATControlWnd:

CATControl CATWidget CATGuiObj CATXMLObject CATEditBox CATListBox CATTreeCtrl

List of all members.


Detailed Description

Window / OS based control class - base object for OS dependant controls.

Definition at line 27 of file CATControlWnd.h.


Public Member Functions

 CATControlWnd (const CATString &element, const CATString &rootDir)
 Constructor - mirrors CATXMLObject() constructor for now.
virtual ~CATControlWnd ()
virtual CATWND GetControlWndHndl ()
virtual void SetFocused (bool focused)
virtual void MarkDirty (CATRect *dirtyRect=0, bool force=false)
 
Parameters:
force - if true, forces invalidation even if the control isn't visible

virtual void Draw (CATImage *image, const CATRect &dirtyRect)
virtual CATResult OnEvent (const CATEvent &event, CATInt32 &retVal)
 Event handler.
virtual void PostDraw (CATDRAWCONTEXT drawContext, const CATRect &dirtyRect)
virtual bool GetPostRects (CATStack< CATRect > &rectStack)
virtual void OnParentCreate ()
virtual void OnParentDestroy ()
virtual void SetVisible (bool visible)
virtual CATResult RectFromAttribs ()
virtual CATColor GetColorFore () const
virtual CATColor GetColorBack () const
virtual CATResult Load (CATPROGRESSCB progressCB=0, void *progressParam=0, CATFloat32 progMin=0.0f, CATFloat32 progMax=1.0f)
 Win-32 specific control stuff.
virtual void OnEscapeChange ()
virtual void SetEnabled (bool enabled)
virtual void OSSetText (const CATString &newText)
virtual void OSGetText (CATString &getText)
virtual CATString GetHint () const
 GetHint() retrieves the hint text for the control.

Protected Member Functions

virtual void OSDrawBorderRect (CATDRAWCONTEXT drawContext, CATRect &rect)
 Draw a border around the control.
virtual CATResult ParseAttributes ()
 ParseAttributes() parses the known attributes for an object.
virtual CATResult OSCreate ()
 OS-specific control creation / cleanup.
virtual void OSCleanup ()
virtual bool OnControlEvent (const CATEvent &event, CATInt32 &returnVal)
CATResult CreateControlWnd (const CATString &windowClass, CATUInt32 style)

Protected Attributes

CATRect fWndRect
CATWND fControlWnd
CATColor fFGColor_focus
 Foreground color - selected.
CATColor fBGColor_focus
CATColor fFGColor_border
 Foreground color - border.
CATColor fBGColor_border
bool fFocusSet
bool fBorderSet
bool fCaptured

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