blob: b79bb482668362f5cfe051302a5a8a6ae6852a1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "border_property.hpp"
#include "ui_manager.hpp"
namespace cru::ui
{
BorderProperty::BorderProperty(): BorderProperty(UiManager::GetInstance()->GetPredefineResources()->border_property_brush)
{
}
BorderProperty::BorderProperty(Microsoft::WRL::ComPtr<ID2D1Brush> brush): brush_(std::move(brush))
{
}
BorderProperty::BorderProperty(Microsoft::WRL::ComPtr<ID2D1Brush> brush, const float width, const float radius_x,
const float radius_y, Microsoft::WRL::ComPtr<ID2D1StrokeStyle> stroke_style) :
brush_(std::move(brush)), stroke_width_(width), radius_x_(radius_x), radius_y_(radius_y), stroke_style_(std::move(stroke_style))
{
}
}
|