diff options
Diffstat (limited to 'include/cru/ui/mapper/style/BorderStylerMapper.h')
| -rw-r--r-- | include/cru/ui/mapper/style/BorderStylerMapper.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/cru/ui/mapper/style/BorderStylerMapper.h b/include/cru/ui/mapper/style/BorderStylerMapper.h new file mode 100644 index 00000000..da09989b --- /dev/null +++ b/include/cru/ui/mapper/style/BorderStylerMapper.h @@ -0,0 +1,28 @@ +#pragma once +#include "../Mapper.h" +#include "cru/common/ClonablePtr.h" +#include "cru/ui/mapper/style/IStylerMapper.h" +#include "cru/ui/style/Styler.h" +#include "cru/xml/XmlNode.h" + +namespace cru::ui::mapper::style { +class CRU_UI_API BorderStylerMapper + : public BasicPtrMapper<ui::style::BorderStyler>, + public virtual IStylerMapper { + public: + CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(BorderStylerMapper) + + public: + 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; +}; +} // namespace cru::ui::mapper::style |
