From 091c0419a254a28f80963193b36bf0a7f30d6590 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 14 Feb 2022 00:28:51 +0800 Subject: ... --- include/cru/ui/controls/CheckBox.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/cru/ui/controls/CheckBox.h') 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(); } -- cgit v1.2.3