aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/border_delegate.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-10-02 01:09:35 +0800
committercrupest <crupest@outlook.com>2018-10-02 01:09:35 +0800
commit040a6c18f18100b825a56443a73aa1de64e4518c (patch)
treea271bddb244fa2041f14f8d46d249457cee09e5f /src/ui/controls/border_delegate.h
parenta3b78397f71c35e51681104b572de06a1780e4ee (diff)
downloadcru-040a6c18f18100b825a56443a73aa1de64e4518c.tar.gz
cru-040a6c18f18100b825a56443a73aa1de64e4518c.tar.bz2
cru-040a6c18f18100b825a56443a73aa1de64e4518c.zip
Make text box use border delegate. Fix layout bug in margin container.
Diffstat (limited to 'src/ui/controls/border_delegate.h')
-rw-r--r--src/ui/controls/border_delegate.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/controls/border_delegate.h b/src/ui/controls/border_delegate.h
index 6d3b31db..6d8663e9 100644
--- a/src/ui/controls/border_delegate.h
+++ b/src/ui/controls/border_delegate.h
@@ -8,10 +8,7 @@ namespace cru::ui::controls
{
public:
using Ptr = std::shared_ptr<BorderProperty>;
- static Ptr Create()
- {
- return std::make_shared<BorderProperty>();
- }
+ static Ptr Create();
constexpr static auto brush_property_name = L"Brush";
constexpr static auto width_property_name = L"Width";
@@ -20,6 +17,7 @@ namespace cru::ui::controls
constexpr static auto radius_y_property_name = L"RadiusY";
BorderProperty() = default;
+ explicit BorderProperty(Microsoft::WRL::ComPtr<ID2D1Brush> brush);
BorderProperty(const BorderProperty& other) = delete;
BorderProperty(BorderProperty&& other) = delete;
BorderProperty& operator=(const BorderProperty& other) = delete;