Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

CSIcon Class Reference

#include <CSIcon.h>

Inheritance diagram for CSIcon:

CSGrafikElement CSMessageDispatchable CSMessageListener CSPictureIcon CSTextIcon

Public Member Functions

virtual std::string getType ()
virtual ~CSIcon ()
void setState (int state)
int getState ()
virtual bool isFocusable ()
virtual void paint (SDL_Surface *destination, SDL_Rect *parentViewport)=0

Static Public Attributes

const char * CLASS = "CSIcon"
 static element, name of this class (introsepection)


Protected Member Functions

 CSIcon (int kind)
int getKind ()

Constructor & Destructor Documentation

CSIcon::CSIcon int  kind  )  [inline, protected]
 

Definition at line 38 of file CSIcon.h.

References ICON_STATE_ENABLED.

00038                          : CSGrafikElement(0,0)
00039         {
00040             mKind = kind;
00041             mState = ICON_STATE_ENABLED;
00042         }

virtual CSIcon::~CSIcon  )  [inline, virtual]
 

Definition at line 49 of file CSIcon.h.

00049 {}


Member Function Documentation

int CSIcon::getKind  )  [inline, protected]
 

Definition at line 44 of file CSIcon.h.

00044 {return mKind;}

virtual std::string CSIcon::getType  )  [inline, virtual]
 

Reimplemented from CSGrafikElement.

Reimplemented in CSPictureIcon, and CSTextIcon.

Definition at line 48 of file CSIcon.h.

References CLASS.

00048 {return (std::string) CLASS;}

void CSIcon::setState int  state  )  [inline]
 

Definition at line 50 of file CSIcon.h.

References ICON_STATE_ACTIVATED.

00051         {
00052             if ((state <= ICON_STATE_UNKOWN) || (state >= ICON_STATE_ACTIVATED))
00053                 return;
00054             mState = state;
00055         }

int CSIcon::getState  )  [inline]
 

Definition at line 57 of file CSIcon.h.

Referenced by CSTextIcon::paint(), and CSPictureIcon::paint().

00057 {return mState;}

virtual bool CSIcon::isFocusable  )  [inline, virtual]
 

Definition at line 58 of file CSIcon.h.

00058 {return false;}

virtual void CSIcon::paint SDL_Surface *  destination,
SDL_Rect *  parentViewport
[pure virtual]
 

Reimplemented from CSGrafikElement.

Implemented in CSPictureIcon, and CSTextIcon.


Field Documentation

const char * CSIcon::CLASS = "CSIcon" [static]
 

static element, name of this class (introsepection)

Reimplemented from CSGrafikElement.

Reimplemented in CSPictureIcon, and CSTextIcon.

Definition at line 10 of file CSIcon.cpp.

Referenced by getType().


Generated on Wed Jul 14 00:44:31 2004 for CSLib by doxygen 1.3.6