aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/style/StyleRule.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/style/StyleRule.hpp')
-rw-r--r--include/cru/ui/style/StyleRule.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/cru/ui/style/StyleRule.hpp b/include/cru/ui/style/StyleRule.hpp
index e6035784..743aa759 100644
--- a/include/cru/ui/style/StyleRule.hpp
+++ b/include/cru/ui/style/StyleRule.hpp
@@ -10,6 +10,13 @@
namespace cru::ui::style {
class StyleRule : public Object {
public:
+ static ClonablePtr<StyleRule> Create(ClonablePtr<Condition> condition,
+ ClonablePtr<Styler> styler,
+ String name = {}) {
+ return ClonablePtr<StyleRule>(new StyleRule(
+ std::move(condition), std::move(styler), std::move(name)));
+ }
+
StyleRule(ClonablePtr<Condition> condition, ClonablePtr<Styler> styler,
String name = {});