summaryrefslogtreecommitdiff
path: root/plugingui/powerbutton.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/powerbutton.h')
-rw-r--r--plugingui/powerbutton.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugingui/powerbutton.h b/plugingui/powerbutton.h
index 53f8d88..14dbeca 100644
--- a/plugingui/powerbutton.h
+++ b/plugingui/powerbutton.h
@@ -38,15 +38,21 @@ public:
PowerButton(Widget* parent);
virtual ~PowerButton() = default;
+ void setEnabled(bool enabled);
+
protected:
// From Widget:
virtual void repaintEvent(RepaintEvent* repaintEvent) override;
+ bool enabled = true;
+
private:
Texture on{getImageCache(), ":resources/bypass_button.png", 32, 0, 16, 16};
Texture on_clicked{getImageCache(), ":resources/bypass_button.png", 48, 0, 16, 16};
Texture off{getImageCache(), ":resources/bypass_button.png", 0, 0, 16, 16};
Texture off_clicked{getImageCache(), ":resources/bypass_button.png", 16, 0, 16, 16};
+ Texture disabled{getImageCache(), ":resources/bypass_button.png", 64, 0, 16, 16};
+ Texture disabled_clicked{getImageCache(), ":resources/bypass_button.png", 80, 0, 16, 16};
};
} // GUI::