aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/mapper
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-23 22:37:40 +0800
committercrupest <crupest@outlook.com>2022-01-23 22:37:40 +0800
commit6f9ccdc9983c2cade1955c611b36b74a1caf037a (patch)
treec507421e0ebe71477839d6d34064be4c45a5401b /include/cru/ui/mapper
parent275fe302cd03adf59fff1a0e4a08f13c6cfcaf31 (diff)
downloadcru-6f9ccdc9983c2cade1955c611b36b74a1caf037a.tar.gz
cru-6f9ccdc9983c2cade1955c611b36b74a1caf037a.tar.bz2
cru-6f9ccdc9983c2cade1955c611b36b74a1caf037a.zip
...
Diffstat (limited to 'include/cru/ui/mapper')
-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