aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/style
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/mapper/style')
-rw-r--r--include/cru/ui/mapper/style/BorderStyleMapper.hpp19
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