diff options
Diffstat (limited to 'include/cru/ui/mapper/style/StyleRuleSetMapper.hpp')
-rw-r--r-- | include/cru/ui/mapper/style/StyleRuleSetMapper.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/cru/ui/mapper/style/StyleRuleSetMapper.hpp b/include/cru/ui/mapper/style/StyleRuleSetMapper.hpp new file mode 100644 index 00000000..66b95f4a --- /dev/null +++ b/include/cru/ui/mapper/style/StyleRuleSetMapper.hpp @@ -0,0 +1,21 @@ +#pragma once +#include <memory> +#include "../../style/StyleRuleSet.hpp" +#include "../Mapper.hpp" + +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 |