From f8e45da9b3ab0b09118c2e78e9f1cf9d00f50f55 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 22 Jan 2022 21:10:47 +0800 Subject: ... --- include/cru/ui/mapper/style/BorderStyleMapper.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/cru/ui/mapper/style/BorderStyleMapper.hpp (limited to 'include/cru/ui/mapper/style') 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 { + public: + CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(BorderStyleMapper) + + public: + bool SupportMapFromXml() override { return true; } + bool XmlElementIsOfThisType(xml::XmlElementNode* node) override; + + protected: + std::unique_ptr DoMapFromXml( + xml::XmlElementNode* node) override; +}; +} // namespace cru::ui::mapper::style -- cgit v1.2.3