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