aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/style/StyleRuleSetMapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/mapper/style/StyleRuleSetMapper.h')
-rw-r--r--include/cru/ui/mapper/style/StyleRuleSetMapper.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/cru/ui/mapper/style/StyleRuleSetMapper.h b/include/cru/ui/mapper/style/StyleRuleSetMapper.h
new file mode 100644
index 00000000..95f745e5
--- /dev/null
+++ b/include/cru/ui/mapper/style/StyleRuleSetMapper.h
@@ -0,0 +1,21 @@
+#pragma once
+#include <memory>
+#include "../../style/StyleRuleSet.h"
+#include "../Mapper.h"
+
+namespace cru::ui::mapper::style {
+class CRU_UI_API StyleRuleSetMapper
+ : public BasicRefMapper<ui::style::StyleRuleSet> {
+ public:
+ CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(StyleRuleSetMapper)
+
+ public:
+ bool SupportMapFromXml() override { return true; }
+ bool XmlElementIsOfThisType(xml::XmlElementNode* node) override;
+
+ protected:
+ std::shared_ptr<ui::style::StyleRuleSet> DoMapFromXml(
+ xml::XmlElementNode* node) override;
+};
+;
+} // namespace cru::ui::mapper::style