summaryrefslogtreecommitdiff
path: root/plugingui/button_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/button_base.h')
-rw-r--r--plugingui/button_base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugingui/button_base.h b/plugingui/button_base.h
index a21a084..c872d9b 100644
--- a/plugingui/button_base.h
+++ b/plugingui/button_base.h
@@ -47,6 +47,9 @@ public:
void setText(const std::string& text);
+ void setEnabled(bool enabled);
+ bool isEnabled() const;
+
Notifier<> clickNotifier;
protected:
@@ -58,6 +61,7 @@ protected:
virtual void mouseLeaveEvent() override;
virtual void mouseEnterEvent() override;
+ bool enabled{true};
bool in_button{false};
enum class State {