diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-27 20:19:42 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-27 20:19:42 (GMT) |
| commit | 07525180c2f8065c61dfd38bb273ff0f0a8abc85 (patch) | |
| tree | 717389467f699071c7e530713f2c3a3ae7ecb2f5 /src/interface/Button.h | |
| parent | 597d11f9f79c1486db4cdc1c0aca215cc4ab6074 (diff) | |
| download | powder-07525180c2f8065c61dfd38bb273ff0f0a8abc85.zip powder-07525180c2f8065c61dfd38bb273ff0f0a8abc85.tar.gz | |
Icon management, fix element menu order, fix renderer crash
Diffstat (limited to 'src/interface/Button.h')
| -rw-r--r-- | src/interface/Button.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/interface/Button.h b/src/interface/Button.h index 1075b32..4537e1f 100644 --- a/src/interface/Button.h +++ b/src/interface/Button.h @@ -26,13 +26,10 @@ public: class Button : public Component { public: - Button(Window* parent_state, std::string buttonText); - - Button(Point position, Point size, std::string buttonText); - - Button(std::string buttonText); + Button(Point position = Point(0, 0), Point size = Point(0, 0), std::string buttonText = ""); virtual ~Button(); + Icon icon; bool Toggleable; bool Enabled; @@ -68,6 +65,8 @@ public: void SetActiveBorderColour(Colour border) { this->activeBorder = border; } void SetTextColour(Colour text) { this->text = text; } void SetActiveTextColour(Colour text) { this->activeText = text; } + + void SetIcon(Icon icon); protected: Colour background, activeBackground; Colour border, activeBorder; |
