aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/CheckBox.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-18 00:46:27 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-18 00:46:27 +0800
commit6b4edc9be8ec556147c195cf2047d92b9439efd7 (patch)
treea1d7b7d1e821b4e1911fd00761f77a24ee483f4a /include/cru/ui/controls/CheckBox.h
parentf7c4d19df66c602d74795e98ce2ee4390d06fbb4 (diff)
downloadcru-6b4edc9be8ec556147c195cf2047d92b9439efd7.tar.gz
cru-6b4edc9be8ec556147c195cf2047d92b9439efd7.tar.bz2
cru-6b4edc9be8ec556147c195cf2047d92b9439efd7.zip
Bring back ControlHost and refactor tree management of control.
Diffstat (limited to 'include/cru/ui/controls/CheckBox.h')
-rw-r--r--include/cru/ui/controls/CheckBox.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/cru/ui/controls/CheckBox.h b/include/cru/ui/controls/CheckBox.h
index 8a2c84a0..6f4eae2e 100644
--- a/include/cru/ui/controls/CheckBox.h
+++ b/include/cru/ui/controls/CheckBox.h
@@ -1,13 +1,13 @@
#pragma once
#include "../helper/ClickDetector.h"
#include "../render/BorderRenderObject.h"
+#include "Control.h"
#include "IBorderControl.h"
#include "ICheckableControl.h"
#include "IClickableControl.h"
-#include "NoChildControl.h"
namespace cru::ui::controls {
-class CRU_UI_API CheckBox : public NoChildControl,
+class CRU_UI_API CheckBox : public Control,
public virtual IBorderControl,
public virtual ICheckableControl,
public virtual IClickableControl {
@@ -17,7 +17,9 @@ class CRU_UI_API CheckBox : public NoChildControl,
CheckBox();
~CheckBox() override;
- std::string GetControlType() const override { return std::string(kControlType); }
+ std::string GetControlType() const override {
+ return std::string(kControlType);
+ }
render::RenderObject* GetRenderObject() const override {
return container_render_object_.get();