diff options
| author | crupest <crupest@outlook.com> | 2022-01-24 20:26:58 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-01-24 20:26:58 +0800 |
| commit | 72402c09d45b696cd58a65b4a141a804e1cd9371 (patch) | |
| tree | 4a8793a588370c071d576f144994495886d8e909 /include/cru/ui/mapper/style/StyleRuleSetMapper.hpp | |
| parent | 549b072d241a8d2d1ca187bba8c1cb5190dd737e (diff) | |
| download | cru-72402c09d45b696cd58a65b4a141a804e1cd9371.tar.gz cru-72402c09d45b696cd58a65b4a141a804e1cd9371.tar.bz2 cru-72402c09d45b696cd58a65b4a141a804e1cd9371.zip | |
...
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 |
