aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-24 18:21:39 +0800
committercrupest <crupest@outlook.com>2022-01-24 18:21:39 +0800
commit7a95d9af36221f36402495513c3563c5dc2163ad (patch)
tree03ab7b98ec65cf46c3af1f18dfbdb89df16e4284 /include/cru/ui
parentffaf8978508ac5ca6457906c26b9db18728d4eba (diff)
downloadcru-7a95d9af36221f36402495513c3563c5dc2163ad.tar.gz
cru-7a95d9af36221f36402495513c3563c5dc2163ad.tar.bz2
cru-7a95d9af36221f36402495513c3563c5dc2163ad.zip
...
Diffstat (limited to 'include/cru/ui')
-rw-r--r--include/cru/ui/mapper/style/ClickStateConditionMapper.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/cru/ui/mapper/style/ClickStateConditionMapper.hpp b/include/cru/ui/mapper/style/ClickStateConditionMapper.hpp
new file mode 100644
index 00000000..f60a27a1
--- /dev/null
+++ b/include/cru/ui/mapper/style/ClickStateConditionMapper.hpp
@@ -0,0 +1,26 @@
+#pragma once
+#include "../Mapper.hpp"
+#include "IConditionMapper.hpp"
+#include "cru/ui/style/Condition.hpp"
+
+namespace cru::ui::mapper::style {
+class ClickStateConditionMapper
+ : public BasicPtrMapper<ui::style::ClickStateCondition>,
+ public IConditionMapper {
+ public:
+ CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(ClickStateConditionMapper)
+
+ public:
+ bool SupportMapFromXml() override { return true; }
+ bool XmlElementIsOfThisType(xml::XmlElementNode* node) override;
+
+ ClonablePtr<ui::style::Condition> MapConditionFromXml(
+ xml::XmlElementNode* node) override {
+ return MapFromXml(node);
+ }
+
+ public:
+ ClonablePtr<ui::style::ClickStateCondition> DoMapFromXml(
+ xml::XmlElementNode* node) override;
+};
+} // namespace cru::ui::mapper::style