aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/style/Styler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/style/Styler.hpp')
-rw-r--r--include/cru/ui/style/Styler.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cru/ui/style/Styler.hpp b/include/cru/ui/style/Styler.hpp
index 721a3bfd..3bf0b027 100644
--- a/include/cru/ui/style/Styler.hpp
+++ b/include/cru/ui/style/Styler.hpp
@@ -25,6 +25,11 @@ class CompoundStyler : public Styler {
new CompoundStyler(std::vector<ClonablePtr<Styler>>{std::move(s)...}));
}
+ static ClonablePtr<CompoundStyler> Create(
+ std::vector<ClonablePtr<Styler>> stylers) {
+ return ClonablePtr<CompoundStyler>(new CompoundStyler(std::move(stylers)));
+ }
+
explicit CompoundStyler(std::vector<ClonablePtr<Styler>> stylers)
: stylers_(std::move(stylers)) {}