aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper/BorderStyleMapper.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/mapper/BorderStyleMapper.hpp')
-rw-r--r--include/cru/ui/mapper/BorderStyleMapper.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/cru/ui/mapper/BorderStyleMapper.hpp b/include/cru/ui/mapper/BorderStyleMapper.hpp
new file mode 100644
index 00000000..4d9ae774
--- /dev/null
+++ b/include/cru/ui/mapper/BorderStyleMapper.hpp
@@ -0,0 +1,20 @@
+#pragma once
+#include "Mapper.hpp"
+#include "cru/ui/style/ApplyBorderStyleInfo.hpp"
+#include "cru/xml/XmlNode.hpp"
+
+namespace cru::ui::mapper {
+class CRU_UI_API BorderStyleMapper
+ : BasicMapper<ui::style::ApplyBorderStyleInfo> {
+ public:
+ CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(BorderStyleMapper)
+
+ public:
+ bool SupportMapFromXml() override { return true; }
+ bool XmlElementIsOfThisType(xml::XmlElementNode* node) override;
+
+ protected:
+ ui::style::ApplyBorderStyleInfo DoMapFromXml(
+ xml::XmlElementNode* node) override;
+};
+} // namespace cru::ui::mapper