diff options
Diffstat (limited to 'src/ui/controls/button.h')
-rw-r--r-- | src/ui/controls/button.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/controls/button.h b/src/ui/controls/button.h index e0ece85a..f50a6cbd 100644 --- a/src/ui/controls/button.h +++ b/src/ui/controls/button.h @@ -9,6 +9,8 @@ namespace cru::ui::controls class Button : public Control { public: + static constexpr auto control_type = L"Button"; + static Button* Create(const std::initializer_list<Control*>& children = std::initializer_list<Control*>()) { const auto button = new Button(); @@ -27,6 +29,8 @@ namespace cru::ui::controls Button& operator=(Button&& other) = delete; ~Button() override = default; + StringView GetControlType() const override final; + protected: void OnMouseClickBegin(MouseButton button) override final; void OnMouseClickEnd(MouseButton button) override final; |