blob: 3cf78faafb8410a6cbe01674dfc22ef84984dafa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include "../Mapper.h"
#include "cru/common/ClonablePtr.h"
#include "cru/ui/mapper/style/IStylerMapper.h"
#include "cru/ui/style/Styler.h"
#include "cru/xml/XmlNode.h"
namespace cru::ui::mapper::style {
class CRU_UI_API BorderStylerMapper
: public BasicClonablePtrMapper<ui::style::BorderStyler>,
public virtual IStylerMapper {
public:
CRU_DEFAULT_CONSTRUCTOR_DESTRUCTOR(BorderStylerMapper)
public:
bool SupportMapFromXml() override { return true; }
bool XmlElementIsOfThisType(xml::XmlElementNode* node) override;
ClonablePtr<ui::style::Styler> MapStylerFromXml(
xml::XmlElementNode* node) override {
return MapFromXml(node);
}
protected:
ClonablePtr<ui::style::BorderStyler> DoMapFromXml(
xml::XmlElementNode* node) override;
};
} // namespace cru::ui::mapper::style
|