aboutsummaryrefslogtreecommitdiff
path: root/src/ui/border_property.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-10 15:53:32 +0800
committercrupest <crupest@outlook.com>2018-11-10 15:53:32 +0800
commit8d5a08e8d054e9504ca31e0bfbfff7a1018c23c0 (patch)
treefdd8ac836b266044de380fea26e8f5fc80a5d9d9 /src/ui/border_property.hpp
parentac4b0f8d438e7a7c2ecd836af8332b5da1e035c9 (diff)
downloadcru-8d5a08e8d054e9504ca31e0bfbfff7a1018c23c0.tar.gz
cru-8d5a08e8d054e9504ca31e0bfbfff7a1018c23c0.tar.bz2
cru-8d5a08e8d054e9504ca31e0bfbfff7a1018c23c0.zip
Refactor predefine resources. Add check for dead recursion in singletons in debug mode.
Diffstat (limited to 'src/ui/border_property.hpp')
-rw-r--r--src/ui/border_property.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/border_property.hpp b/src/ui/border_property.hpp
index a280fe44..7766f5a3 100644
--- a/src/ui/border_property.hpp
+++ b/src/ui/border_property.hpp
@@ -12,6 +12,7 @@ namespace cru::ui
public:
BorderProperty();
explicit BorderProperty(Microsoft::WRL::ComPtr<ID2D1Brush> brush);
+ BorderProperty(Microsoft::WRL::ComPtr<ID2D1Brush> brush, float width, float radius_x, float radius_y, Microsoft::WRL::ComPtr<ID2D1StrokeStyle> stroke_style = nullptr);
BorderProperty(const BorderProperty& other) = default;
BorderProperty(BorderProperty&& other) = default;
BorderProperty& operator=(const BorderProperty& other) = default;
@@ -76,8 +77,8 @@ namespace cru::ui
private:
Microsoft::WRL::ComPtr<ID2D1Brush> brush_;
float stroke_width_ = 1.0f;
- Microsoft::WRL::ComPtr<ID2D1StrokeStyle> stroke_style_ = nullptr;
float radius_x_ = 0.0f;
float radius_y_ = 0.0f;
+ Microsoft::WRL::ComPtr<ID2D1StrokeStyle> stroke_style_ = nullptr;
};
}