diff options
author | crupest <crupest@outlook.com> | 2022-01-22 21:10:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-22 21:10:47 +0800 |
commit | f8e45da9b3ab0b09118c2e78e9f1cf9d00f50f55 (patch) | |
tree | 667badf3d016763efd034dd803f1bdc82f61ed5d /include | |
parent | bc1f7cce2440310c2544bf3ea48b44dc4ff04eac (diff) | |
download | cru-f8e45da9b3ab0b09118c2e78e9f1cf9d00f50f55.tar.gz cru-f8e45da9b3ab0b09118c2e78e9f1cf9d00f50f55.tar.bz2 cru-f8e45da9b3ab0b09118c2e78e9f1cf9d00f50f55.zip |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/cru/ui/mapper/style/BorderStyleMapper.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/cru/ui/mapper/style/BorderStyleMapper.hpp b/include/cru/ui/mapper/style/BorderStyleMapper.hpp new file mode 100644 index 00000000..1ea38bf7 --- /dev/null +++ b/include/cru/ui/mapper/style/BorderStyleMapper.hpp @@ -0,0 +1,19 @@ +#pragma once +#include "../Mapper.hpp" +#include "cru/ui/style/ApplyBorderStyleInfo.hpp" +#include "cru/xml/XmlNode.hpp" + +namespace cru::ui::mapper::style { +class BorderStyleMapper : BasicMapper<ui::style::ApplyBorderStyleInfo> { + public: + CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(BorderStyleMapper) + + public: + bool SupportMapFromXml() override { return true; } + bool XmlElementIsOfThisType(xml::XmlElementNode* node) override; + + protected: + std::unique_ptr<ui::style::ApplyBorderStyleInfo> DoMapFromXml( + xml::XmlElementNode* node) override; +}; +} // namespace cru::ui::mapper::style |