blob: ad8c43b58dc2c1997411850447d0469579a17e8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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<platform::graphics::IFont> {
public:
CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(FontMapper)
public:
bool SupportMapFromXml() override { return true; }
bool XmlElementIsOfThisType(xml::XmlElementNode* node) override;
protected:
std::shared_ptr<platform::graphics::IFont> DoMapFromXml(
xml::XmlElementNode* node) override;
};
} // namespace cru::ui::mapper
|