diff options
author | crupest <crupest@outlook.com> | 2018-11-06 16:32:38 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-06 16:32:38 +0800 |
commit | 1d551a7666ee61074fd36fed4f919c9583477fef (patch) | |
tree | 0b445619b034a22f7d30642b0ba84e4d82dfa4da /src/ui/controls/text_control.h | |
parent | bfdc5da41b9ab8b3f150a619c7893270dc8ccc7f (diff) | |
download | cru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.gz cru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.bz2 cru-1d551a7666ee61074fd36fed4f919c9583477fef.zip |
Dev cursor for textbox.
Diffstat (limited to 'src/ui/controls/text_control.h')
-rw-r--r-- | src/ui/controls/text_control.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/controls/text_control.h b/src/ui/controls/text_control.h index 18a258f2..bfdfe20f 100644 --- a/src/ui/controls/text_control.h +++ b/src/ui/controls/text_control.h @@ -79,6 +79,9 @@ namespace cru::ui::controls void RecreateTextLayout(); + // param point is the mouse point relative to this control. + void UpdateCursor(const std::optional<Point>& point); + private: String text_; |