diff options
author | crupest <crupest@outlook.com> | 2022-02-14 22:46:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-14 22:46:54 +0800 |
commit | 6593a25baa01687b9462f792ce91bd46909df229 (patch) | |
tree | e9ee5ae8d67ef68fdfccca7e07c7d4b26f20c1d7 /src/theme_builder/components/styler/BorderStylerEditor.h | |
parent | 091c0419a254a28f80963193b36bf0a7f30d6590 (diff) | |
download | cru-6593a25baa01687b9462f792ce91bd46909df229.tar.gz cru-6593a25baa01687b9462f792ce91bd46909df229.tar.bz2 cru-6593a25baa01687b9462f792ce91bd46909df229.zip |
...
Diffstat (limited to 'src/theme_builder/components/styler/BorderStylerEditor.h')
-rw-r--r-- | src/theme_builder/components/styler/BorderStylerEditor.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/theme_builder/components/styler/BorderStylerEditor.h b/src/theme_builder/components/styler/BorderStylerEditor.h index 16ae64fb..991647e7 100644 --- a/src/theme_builder/components/styler/BorderStylerEditor.h +++ b/src/theme_builder/components/styler/BorderStylerEditor.h @@ -18,12 +18,10 @@ class BorderStylerEditor : public ui::components::Component { ui::controls::Control* GetRootControl() override { return nullptr; } - ClonablePtr<ui::style::BorderStyler> GetStyler(); - void SetStyler(const ClonablePtr<ui::style::BorderStyler>& styler); + ClonablePtr<ui::style::BorderStyler> GetValue(); + void SetValue(const ClonablePtr<ui::style::BorderStyler>& styler); - IEvent<ClonablePtr<ui::style::BorderStyler>>* ChangeEvent() { - return &change_event_; - } + IEvent<std::nullptr_t>* ChangeEvent() { return &change_event_; } private: ui::controls::FlexLayout container_; @@ -38,6 +36,6 @@ class BorderStylerEditor : public ui::components::Component { properties::OptionalPropertyEditor<properties::ColorPropertyEditor> background_brush_editor_; - Event<ClonablePtr<ui::style::BorderStyler>> change_event_; + Event<std::nullptr_t> change_event_; }; } // namespace cru::theme_builder::components::styler |