diff options
Diffstat (limited to 'src/theme_builder/components/conditions/ConditionEditor.h')
-rw-r--r-- | src/theme_builder/components/conditions/ConditionEditor.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/theme_builder/components/conditions/ConditionEditor.h b/src/theme_builder/components/conditions/ConditionEditor.h index ddca5e28..0bbaa6ed 100644 --- a/src/theme_builder/components/conditions/ConditionEditor.h +++ b/src/theme_builder/components/conditions/ConditionEditor.h @@ -3,7 +3,7 @@ #include "cru/ui/controls/FlexLayout.h" #include "cru/ui/controls/TextBlock.h" -namespace cru::theme_builder { +namespace cru::theme_builder::components::conditions { class ConditionEditor : public ui::components::Component { public: ConditionEditor(); @@ -11,10 +11,15 @@ class ConditionEditor : public ui::components::Component { ~ConditionEditor() override; public: - ui::controls::Control* GetRootControl() override { return nullptr; } + ui::controls::Control* GetRootControl() override { return &container_; } + + ui::controls::FlexLayout* GetContainer() { return &container_; } + + String GetLabel() const { return label_.GetText(); } + void SetLabel(String label) { label_.SetText(std::move(label)); } private: ui::controls::FlexLayout container_; ui::controls::TextBlock label_; }; -} // namespace cru::theme_builder +} // namespace cru::theme_builder::components::conditions |