Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields

Button Class Reference


Detailed Description

Author:
Gabor Torok


Public Types

enum  { TOP = 0, CENTER, BOTTOM }

Public Member Functions

 Button (int x1, int y1, int x2, int y2, GLuint highlight, char *label=NULL)
void setInside (bool b)
void setToggle (bool b)
 Set if this button is a toggle button.
bool isToggle ()
void setGlowing (bool b)
bool isGlowing ()
bool isSelected ()
 For toggle buttons, this returns true if the button has been toggled.
void setSelected (bool b)
void setLabelPosition (int p)
int getLabelPosition ()
char * getLabel ()
void setLabel (char *s)
bool handleEvent (Widget *parent, SDL_Event *event, int x, int y)
void removeEffects (Widget *parent)
void drawWidget (Widget *parent)


Constructor & Destructor Documentation

Button::Button int  x1,
int  y1,
int  x2,
int  y2,
GLuint  highlight,
char *  label = NULL
 

Author:
Gabor Torok


Member Function Documentation

bool Button::isSelected  ) 
 

For toggle buttons, this returns true if the button has been toggled.

void Button::setToggle bool  b  ) 
 

Set if this button is a toggle button.


The documentation for this class was generated from the following files:
Generated on Thu Jun 16 21:50:44 2005 for scourge by  doxygen 1.4.0