20 #include "TextButton.h" 21 #include "../Engine/Action.h" 22 #include "../Engine/State.h" 32 int _originalColor, _invertedColor;
40 bool getPressed()
const {
return _isPressed; }
Container for all the information associated with a given user action, like mouse clicks...
Definition: Action.h:32
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:54
Definition: ToggleTextButton.h:27
void draw()
handle draw() in case we need to paint the button a garish color
Definition: ToggleTextButton.cpp:78
void setInvertColor(Uint8 color)
When this is set, Surface::invert() is called with the value from mid when it's time to invert the bu...
Definition: ToggleTextButton.cpp:70
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:39
Coloured button with a text label.
Definition: TextButton.h:38
void setColor(Uint8 color)
Sets the text button's color.
Definition: ToggleTextButton.cpp:63
Definition: BaseInfoState.cpp:40