diff options
author | crupest <crupest@outlook.com> | 2022-01-27 21:21:51 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-27 21:21:51 +0800 |
commit | 560c0ead613658a2b7444907c3d1d69e49be8c32 (patch) | |
tree | 37938098f0e80403d572accf9f7a275ec8792c00 /include/cru/ui/controls | |
parent | 56633dab8c1bf9d25a6367a651b5b054055a2130 (diff) | |
download | cru-560c0ead613658a2b7444907c3d1d69e49be8c32.tar.gz cru-560c0ead613658a2b7444907c3d1d69e49be8c32.tar.bz2 cru-560c0ead613658a2b7444907c3d1d69e49be8c32.zip |
...
Diffstat (limited to 'include/cru/ui/controls')
-rw-r--r-- | include/cru/ui/controls/Control.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/ui/controls/Control.hpp b/include/cru/ui/controls/Control.hpp index ed6233a9..c51643be 100644 --- a/include/cru/ui/controls/Control.hpp +++ b/include/cru/ui/controls/Control.hpp @@ -67,7 +67,7 @@ class CRU_UI_API Control : public Object { void SetCursor(std::shared_ptr<platform::gui::ICursor> cursor); public: - style::StyleRuleSet* GetStyleRuleSet(); + std::shared_ptr<style::StyleRuleSet> GetStyleRuleSet(); //*************** region: events *************** public: @@ -151,7 +151,7 @@ class CRU_UI_API Control : public Object { std::shared_ptr<platform::gui::ICursor> cursor_ = nullptr; - std::unique_ptr<style::StyleRuleSet> style_rule_set_; + std::shared_ptr<style::StyleRuleSet> style_rule_set_; std::unique_ptr<style::StyleRuleSetBind> style_rule_set_bind_; }; } // namespace cru::ui::controls |