Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/iconbutton.h')
-rw-r--r--src/ui/iconbutton.h24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/ui/iconbutton.h b/src/ui/iconbutton.h
index 37d1c7b..c9a7c5b 100644
--- a/src/ui/iconbutton.h
+++ b/src/ui/iconbutton.h
@@ -28,22 +28,11 @@ public:
return iconbutton_icon;
}
- /// enabled or disabled
- inline const bool enabled() const {
- return iconbutton_enabled;
+ /// highlight state
+ inline const bool highlight() const {
+ return iconbutton_highlight;
}
-
- /// enabled or disabled
- inline const bool disabled() const {
- return !iconbutton_enabled;
- }
-
- /// enable or disable the button
- void enable(bool enabled = true);
-
- /// enable or disable the button
- void disable(bool disabled = true);
-
+
/// set the command this button will execute
void set_command(const std::string &command);
@@ -56,6 +45,9 @@ public:
/// set the icon texture
void set_icon(const char *icon);
+ /// set the highlight state
+ void set_highlight(const bool highlight);
+
/// print button description
virtual void print(const size_t indent) const;
@@ -78,7 +70,7 @@ protected:
private:
std::string iconbutton_command;
std::string iconbutton_icon;
- bool iconbutton_enabled;
+ bool iconbutton_highlight;
};
}