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

CATAppButton Class Reference
[GUI Application library for CAT]

#include <CATAppButton.h>

Inheritance diagram for CATAppButton:

CATButton CATControl CATWidget CATGuiObj CATXMLObject

List of all members.


Detailed Description

Specialized pushbutton for launching apps.

AppButtons automatically pick up the icon of the executable they are set to, or disable themselves if they cannot find it.

A few ways to configure AppButtons for the executable. Currently supported attributes:

  1. "AppPath" attribute may contain full absolute path to the .exe
  2. "UninstallId" may be used to get the uninstall path. This is the subkey under HKLM for the game's uninstaller. InstallLocation should contain the base directory. Use "AppFile" for the relative path from the install location of the executable to use.

Definition at line 36 of file CATAppButton.h.


Public Member Functions

 CATAppButton (const CATString &element, const CATString &rootDir)
virtual ~CATAppButton ()
 CATAppButton destructor.
virtual CATResult ParseAttributes ()
 ParseAttributes() parses the known attributes for an object.
virtual void Draw (CATImage *image, const CATRect &dirtyRect)
virtual void PostDraw (CATDRAWCONTEXT drawContext, const CATRect &dirtyRect)

Protected Attributes

CATString fAppPath
CATString fAppName
CATICON fIconImage
CATInt32 fBorder

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