set the _isPressed state of the button and force it to redraw
| 51 | |
| 52 | /// set the _isPressed state of the button and force it to redraw |
| 53 | void ToggleTextButton::setPressed(bool pressed) |
| 54 | { |
| 55 | if (_isPressed == pressed) return; |
| 56 | _isPressed = pressed; |
| 57 | _fakeGroup = _isPressed ? this : 0; |
| 58 | _redraw = true; |
| 59 | } |
| 60 | |
| 61 | /// When this is set, Surface::invert() is called with the value from mid when it's time to invert the button |
| 62 | void ToggleTextButton::setInvertColor(Uint8 mid) |
no outgoing calls
no test coverage detected