blob: 75597cf4030623ade42915fd3dafb5dc0b94d7ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#pragma once
#include "cru/ui/components/Component.h"
#include "cru/ui/controls/Control.h"
#include "cru/ui/controls/FlexLayout.h"
#include "cru/ui/style/StyleRuleSet.h"
namespace cru::theme_builder {
class StyleRuleSetEditor : public ui::components::Component {
public:
StyleRuleSetEditor();
CRU_DELETE_COPY(StyleRuleSetEditor)
CRU_DELETE_MOVE(StyleRuleSetEditor)
~StyleRuleSetEditor() override;
public:
ui::controls::Control* GetRootControl() override { return &main_layout_; }
void BindStyleRuleSet(std::shared_ptr<ui::style::StyleRuleSet> rule_set);
private:
void UpdateView();
private:
ui::controls::FlexLayout main_layout_;
std::shared_ptr<ui::style::StyleRuleSet> style_rule_set_;
};
} // namespace cru::theme_builder
|