diff options
author | crupest <crupest@outlook.com> | 2022-03-06 16:38:51 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-03-06 16:38:51 +0800 |
commit | 62a0c3f1785e789357c892d94b3ea0bc3ea6833e (patch) | |
tree | ebf1436b728ba62ed1251f04021da8ce839028eb /include/cru/ui/mapper | |
parent | afc40737f2dc990f4805342e52e2be128f161808 (diff) | |
download | cru-62a0c3f1785e789357c892d94b3ea0bc3ea6833e.tar.gz cru-62a0c3f1785e789357c892d94b3ea0bc3ea6833e.tar.bz2 cru-62a0c3f1785e789357c892d94b3ea0bc3ea6833e.zip |
...
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 |