diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-03 20:04:52 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-03 20:04:52 +0800 |
| commit | 06f16479ae1b727252404b763b60c924e3fe7903 (patch) | |
| tree | 09cdf8e5e90ac85ea19840fad1a2cd149c1fc3f6 /include/cru/ui/style/StyleRule.h | |
| parent | 5b46d14997c2ff2244f303216e4e286665ac8a42 (diff) | |
| download | cru-06f16479ae1b727252404b763b60c924e3fe7903.tar.gz cru-06f16479ae1b727252404b763b60c924e3fe7903.tar.bz2 cru-06f16479ae1b727252404b763b60c924e3fe7903.zip | |
Remove Object2.
Diffstat (limited to 'include/cru/ui/style/StyleRule.h')
| -rw-r--r-- | include/cru/ui/style/StyleRule.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/cru/ui/style/StyleRule.h b/include/cru/ui/style/StyleRule.h index e7f4d390..382cd664 100644 --- a/include/cru/ui/style/StyleRule.h +++ b/include/cru/ui/style/StyleRule.h @@ -9,7 +9,7 @@ namespace cru::ui::style { * \brief An immutable style rule contains a condition and a styler. * \remarks This class is immutable and has value semantics. */ -class CRU_UI_API StyleRule : public Object { +class CRU_UI_API StyleRule { public: static ClonablePtr<StyleRule> Create(ClonablePtr<Condition> condition, ClonablePtr<Styler> styler, @@ -21,11 +21,6 @@ class CRU_UI_API StyleRule : public Object { StyleRule(ClonablePtr<Condition> condition, ClonablePtr<Styler> styler, std::string name = {}); - CRU_DEFAULT_COPY(StyleRule) - CRU_DEFAULT_MOVE(StyleRule) - - ~StyleRule() override = default; - public: std::string GetName() const { return name_; } Condition* GetCondition() const { return condition_.get(); } |
