aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/toggle_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/controls/toggle_button.h')
-rw-r--r--src/ui/controls/toggle_button.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/controls/toggle_button.h b/src/ui/controls/toggle_button.h
index 90bbd49b..6f3683de 100644
--- a/src/ui/controls/toggle_button.h
+++ b/src/ui/controls/toggle_button.h
@@ -7,6 +7,8 @@ namespace cru::ui::controls
class ToggleButton : public Control
{
public:
+ static constexpr auto control_type = L"ToggleButton";
+
static ToggleButton* Create()
{
return new ToggleButton();
@@ -22,6 +24,8 @@ namespace cru::ui::controls
ToggleButton& operator=(ToggleButton&& other) = delete;
~ToggleButton() override = default;
+ StringView GetControlType() const override final;
+
bool IsPointInside(const Point& point) override;
bool GetState() const