diff options
author | crupest <crupest@outlook.com> | 2022-01-24 17:52:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-24 17:52:47 +0800 |
commit | 1cc6e51838fcd5fc986dbb3e13bbb85f11a348be (patch) | |
tree | 438ed0961b708139f2c3f8429052a737e0b8e334 /include/cru/ui/mapper/style/FocusConditionMapper.hpp | |
parent | 6d64ac7d354831b687aee1b7450d539411648888 (diff) | |
download | cru-1cc6e51838fcd5fc986dbb3e13bbb85f11a348be.tar.gz cru-1cc6e51838fcd5fc986dbb3e13bbb85f11a348be.tar.bz2 cru-1cc6e51838fcd5fc986dbb3e13bbb85f11a348be.zip |
...
Diffstat (limited to 'include/cru/ui/mapper/style/FocusConditionMapper.hpp')
-rw-r--r-- | include/cru/ui/mapper/style/FocusConditionMapper.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/cru/ui/mapper/style/FocusConditionMapper.hpp b/include/cru/ui/mapper/style/FocusConditionMapper.hpp index bf84304d..974a6739 100644 --- a/include/cru/ui/mapper/style/FocusConditionMapper.hpp +++ b/include/cru/ui/mapper/style/FocusConditionMapper.hpp @@ -1,9 +1,11 @@ #pragma once #include "../Mapper.hpp" +#include "IConditionMapper.hpp" #include "cru/ui/style/Condition.hpp" namespace cru::ui::mapper::style { -class FocusConditionMapper : public BasicPtrMapper<ui::style::FocusCondition> { +class FocusConditionMapper : public BasicPtrMapper<ui::style::FocusCondition>, + public virtual IConditionMapper { public: CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(FocusConditionMapper) @@ -11,6 +13,11 @@ class FocusConditionMapper : public BasicPtrMapper<ui::style::FocusCondition> { bool SupportMapFromXml() override { return true; } bool XmlElementIsOfThisType(xml::XmlElementNode* node) override; + ClonablePtr<ui::style::Condition> MapConditionFromXml( + xml::XmlElementNode* node) override { + return MapFromXml(node); + } + protected: ClonablePtr<ui::style::FocusCondition> DoMapFromXml( xml::XmlElementNode* node) override; |