20 #ifndef __OXC_TOGGLETEXTBUTTON_H
21 #define __OXC_TOGGLETEXTBUTTON_H
24 #include "TextButton.h"
25 #include "../Engine/Action.h"
26 #include "../Engine/State.h"
44 bool getPressed()
const {
return _isPressed; }
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:34
A game state that receives user input and reacts accordingly.
Definition: State.h:44
void setPressed(bool pressed)
set the _isPressed state of the button and force it to redraw
Definition: ToggleTextButton.cpp:53
Definition: ToggleTextButton.h:31
void draw()
handle draw() in case we need to paint the button a garish color
Definition: ToggleTextButton.cpp:70
void setInvertColor(Uint8 mid)
When this is set, Surface::invert() is called with the value from mid when it's time to invert the bu...
Definition: ToggleTextButton.cpp:62
void mousePress(Action *action, State *state)
handle mouse clicks by toggling the button state; use _fakeGroup to trick TextButton into drawing the...
Definition: ToggleTextButton.cpp:40
Coloured button with a text label.
Definition: TextButton.h:40