From 72402c09d45b696cd58a65b4a141a804e1cd9371 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 24 Jan 2022 20:26:58 +0800 Subject: ... --- include/cru/ui/mapper/style/StyleRuleMapper.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/cru/ui/mapper/style/StyleRuleMapper.hpp (limited to 'include/cru/ui/mapper/style/StyleRuleMapper.hpp') diff --git a/include/cru/ui/mapper/style/StyleRuleMapper.hpp b/include/cru/ui/mapper/style/StyleRuleMapper.hpp new file mode 100644 index 00000000..ce5ccf00 --- /dev/null +++ b/include/cru/ui/mapper/style/StyleRuleMapper.hpp @@ -0,0 +1,20 @@ +#pragma once +#include "../Mapper.hpp" +#include "cru/common/ClonablePtr.hpp" +#include "cru/ui/style/StyleRule.hpp" +#include "cru/xml/XmlNode.hpp" + +namespace cru::ui::mapper::style { +class CRU_UI_API StyleRuleMapper : public BasicPtrMapper { + public: + CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(StyleRuleMapper) + + public: + bool SupportMapFromXml() override { return true; } + bool XmlElementIsOfThisType(xml::XmlElementNode* node) override; + + protected: + ClonablePtr DoMapFromXml( + xml::XmlElementNode* node) override; +}; +} // namespace cru::ui::mapper::style -- cgit v1.2.3