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