blob: b202107666546d59393987ef6af0fa0797352313 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include "Mapper.hpp"
#include "cru/common/Base.hpp"
#include "cru/platform/graphics/Brush.hpp"
#include "cru/xml/XmlNode.hpp"
namespace cru::ui::mapper {
class BrushMapper : public BasicRefMapper<platform::graphics::IBrush> {
public:
CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(BrushMapper)
public:
bool SupportMapFromXml() override { return true; }
bool XmlElementIsOfThisType(xml::XmlElementNode* node) override;
protected:
std::shared_ptr<platform::graphics::IBrush> DoMapFromXml(
xml::XmlElementNode* node) override;
};
} // namespace cru::ui::mapper
|