|
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) |