diff options
author | crupest <crupest@outlook.com> | 2020-03-19 19:11:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-19 19:11:33 +0800 |
commit | 5da4f511e85de9e79bee40e3c5e04f899a48723c (patch) | |
tree | 8c07925417fc1f062bb6f4ec64dc9226199e6099 /src/ui/controls/text_control_service.hpp | |
parent | ad29543fe081d2a0a5e6737f9073399e4e91383f (diff) | |
download | cru-5da4f511e85de9e79bee40e3c5e04f899a48723c.tar.gz cru-5da4f511e85de9e79bee40e3c5e04f899a48723c.tar.bz2 cru-5da4f511e85de9e79bee40e3c5e04f899a48723c.zip |
...
Diffstat (limited to 'src/ui/controls/text_control_service.hpp')
-rw-r--r-- | src/ui/controls/text_control_service.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/controls/text_control_service.hpp b/src/ui/controls/text_control_service.hpp index 3885242a..d4f3ecf9 100644 --- a/src/ui/controls/text_control_service.hpp +++ b/src/ui/controls/text_control_service.hpp @@ -16,7 +16,7 @@ constexpr long long caret_blink_duration = 500; // ``` // render::TextRenderObject* GetTextRenderObject(); // render::CanvasRenderObject* GetCaretRenderObject(); -// platform::graph::IBrush* GetCaretBrush(); +// std::shared_ptr<platform::graph::IBrush> GetCaretBrush(); // ``` template <typename TControl> class TextControlService : public Object { @@ -125,7 +125,7 @@ void TextControlService<TControl>::DrawCaret( painter->FillRectangle( Rect{point, Size{caret_width, text_render_object->GetFont()->GetFontSize()}}, - control_->GetCaretBrush()); + control_->GetCaretBrush().get()); } } |