From 103bcb137273729a0f23ff3771e26150a64454ba Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 27 Jan 2022 21:37:38 +0800 Subject: ... --- include/cru/ui/mapper/FontMapper.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/cru/ui/mapper/FontMapper.hpp (limited to 'include/cru/ui/mapper/FontMapper.hpp') diff --git a/include/cru/ui/mapper/FontMapper.hpp b/include/cru/ui/mapper/FontMapper.hpp new file mode 100644 index 00000000..ad8c43b5 --- /dev/null +++ b/include/cru/ui/mapper/FontMapper.hpp @@ -0,0 +1,19 @@ +#pragma once +#include "Mapper.hpp" +#include "cru/common/Base.hpp" +#include "cru/platform/graphics/Font.hpp" + +namespace cru::ui::mapper { +class FontMapper : public BasicRefMapper { + public: + CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(FontMapper) + + public: + bool SupportMapFromXml() override { return true; } + bool XmlElementIsOfThisType(xml::XmlElementNode* node) override; + + protected: + std::shared_ptr DoMapFromXml( + xml::XmlElementNode* node) override; +}; +} // namespace cru::ui::mapper -- cgit v1.2.3