diff options
Diffstat (limited to 'include/cru/ui/controls/CheckBox.h')
-rw-r--r-- | include/cru/ui/controls/CheckBox.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/cru/ui/controls/CheckBox.h b/include/cru/ui/controls/CheckBox.h index 1c81b284..19908389 100644 --- a/include/cru/ui/controls/CheckBox.h +++ b/include/cru/ui/controls/CheckBox.h @@ -12,9 +12,13 @@ class CRU_UI_API CheckBox : public NoChildControl, public virtual ICheckableControl, public virtual IClickableControl { public: + static constexpr StringView kControlType = u"CheckBox"; + CheckBox(); ~CheckBox() override; + String GetControlType() const override { return kControlType.ToString(); } + render::RenderObject* GetRenderObject() const override { return container_render_object_.get(); } @@ -27,7 +31,7 @@ class CRU_UI_API CheckBox : public NoChildControl, void ApplyBorderStyle(const style::ApplyBorderStyleInfo& style) override; - helper::ClickState GetClickState() const { + helper::ClickState GetClickState() override { return click_detector_.GetState(); } |