aboutsummaryrefslogtreecommitdiff
path: root/src/ui/events/ui_event.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-06 16:32:38 +0800
committercrupest <crupest@outlook.com>2018-11-06 16:32:38 +0800
commit1d551a7666ee61074fd36fed4f919c9583477fef (patch)
tree0b445619b034a22f7d30642b0ba84e4d82dfa4da /src/ui/events/ui_event.cpp
parentbfdc5da41b9ab8b3f150a619c7893270dc8ccc7f (diff)
downloadcru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.gz
cru-1d551a7666ee61074fd36fed4f919c9583477fef.tar.bz2
cru-1d551a7666ee61074fd36fed4f919c9583477fef.zip
Dev cursor for textbox.
Diffstat (limited to 'src/ui/events/ui_event.cpp')
-rw-r--r--src/ui/events/ui_event.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/events/ui_event.cpp b/src/ui/events/ui_event.cpp
index 59623bab..34339ff4 100644
--- a/src/ui/events/ui_event.cpp
+++ b/src/ui/events/ui_event.cpp
@@ -8,10 +8,10 @@ namespace cru
{
namespace events
{
- Point MouseEventArgs::GetPoint(Control* control) const
+ Point MouseEventArgs::GetPoint(Control* control, const RectRange range) const
{
if (point_.has_value())
- return control->AbsoluteToLocal(point_.value());
+ return control->TransformPoint(control->AbsoluteToLocal(point_.value()), RectRange::Margin, range);
return Point();
}
}