diff options
author | crupest <crupest@outlook.com> | 2022-01-24 18:28:25 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-24 18:28:25 +0800 |
commit | 549b072d241a8d2d1ca187bba8c1cb5190dd737e (patch) | |
tree | 1058514562df4a43df89982e63984a49d5fef79e /include/cru/ui/mapper/style/BorderStylerMapper.hpp | |
parent | 7a95d9af36221f36402495513c3563c5dc2163ad (diff) | |
download | cru-549b072d241a8d2d1ca187bba8c1cb5190dd737e.tar.gz cru-549b072d241a8d2d1ca187bba8c1cb5190dd737e.tar.bz2 cru-549b072d241a8d2d1ca187bba8c1cb5190dd737e.zip |
...
Diffstat (limited to 'include/cru/ui/mapper/style/BorderStylerMapper.hpp')
-rw-r--r-- | include/cru/ui/mapper/style/BorderStylerMapper.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/cru/ui/mapper/style/BorderStylerMapper.hpp b/include/cru/ui/mapper/style/BorderStylerMapper.hpp index 6c967bed..2f48550c 100644 --- a/include/cru/ui/mapper/style/BorderStylerMapper.hpp +++ b/include/cru/ui/mapper/style/BorderStylerMapper.hpp @@ -1,12 +1,14 @@ #pragma once #include "../Mapper.hpp" #include "cru/common/ClonablePtr.hpp" +#include "cru/ui/mapper/style/IStylerMapper.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 BasicPtrMapper<ui::style::BorderStyler>, + public virtual IStylerMapper { public: CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(BorderStylerMapper) @@ -14,6 +16,11 @@ class CRU_UI_API BorderStylerMapper bool SupportMapFromXml() override { return true; } bool XmlElementIsOfThisType(xml::XmlElementNode* node) override; + ClonablePtr<ui::style::Styler> MapStylerFromXml( + xml::XmlElementNode* node) override { + return MapFromXml(node); + } + protected: ClonablePtr<ui::style::BorderStyler> DoMapFromXml( xml::XmlElementNode* node) override; |