diff options
Diffstat (limited to 'include/cru/ui/mapper')
-rw-r--r-- | include/cru/ui/mapper/style/FontStylerMapper.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/cru/ui/mapper/style/FontStylerMapper.h b/include/cru/ui/mapper/style/FontStylerMapper.h new file mode 100644 index 00000000..34c94b73 --- /dev/null +++ b/include/cru/ui/mapper/style/FontStylerMapper.h @@ -0,0 +1,24 @@ +#pragma once +#include "../Mapper.h" +#include "IStylerMapper.h" + +namespace cru::ui::mapper::style { +class FontStylerMapper : public BasicClonablePtrMapper<ui::style::FontStyler>, + public virtual IStylerMapper { + public: + FontStylerMapper(); + ~FontStylerMapper() override; + + public: + bool SupportMapFromXml() override { return true; } + + ClonablePtr<ui::style::Styler> MapStylerFromXml( + xml::XmlElementNode* node) override { + return MapFromXml(node); + } + + protected: + ClonablePtr<ui::style::FontStyler> DoMapFromXml( + xml::XmlElementNode* node) override; +}; +} // namespace cru::ui::mapper::style |