diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-15 19:35:40 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-15 19:35:40 (GMT) |
| commit | 2511afec8bfaa0582928406b37e8b579fa267e4f (patch) | |
| tree | aae1674f5f076db275ec1c6b32271a69cff1489a /includes/interface/Button.h | |
| parent | 2c9295007a287dc01ff63fcf7b3da141f7474e37 (diff) | |
| download | powder-2511afec8bfaa0582928406b37e8b579fa267e4f.zip powder-2511afec8bfaa0582928406b37e8b579fa267e4f.tar.gz | |
More stuff, better events and starting on interface
Diffstat (limited to 'includes/interface/Button.h')
| -rw-r--r-- | includes/interface/Button.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/interface/Button.h b/includes/interface/Button.h index 86688cf..9046ea1 100644 --- a/includes/interface/Button.h +++ b/includes/interface/Button.h @@ -39,9 +39,13 @@ namespace ui inline bool GetState() { return state; } virtual void DoAction(); //action of button what ever it may be + void SetTogglable(bool isTogglable); + bool GetTogglable(); + inline bool GetToggleState(); + inline void SetToggleState(bool state); protected: - bool isButtonDown, state, isMouseInside; + bool isButtonDown, state, isMouseInside, isTogglable, toggle; }; } #endif /* BUTTON_H_ */ |
