blob: 41bbeff51844fd23f0d5151a9b20ddc00af06f24 (
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
|
#pragma once
#include "../style/ApplyBorderStyleInfo.h"
#include "Mapper.h"
#include <cru/base/xml/XmlNode.h>
namespace cru::ui::mapper {
/**
* Example xml:
* ```xml
* <BorderStyle>
* <Thickness value="1" />
* <CornerRadius all="1" />
* <Brush><Color value=""/></Brush>
* <Brush name="foreground"><Color value="transparent"/></Brush>
* <Brush name="background"><Color value="#eeeeeeff"/></Brush>
* </BorderStyle>
* ```
*/
class CRU_UI_API BorderStyleMapper
: public BasicMapper<ui::style::ApplyBorderStyleInfo> {
CRU_UI_DECLARE_CAN_MAP_FROM_XML_ELEMENT_TAG(BorderStyle,
ui::style::ApplyBorderStyleInfo)
};
} // namespace cru::ui::mapper
|