diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-24 14:00:28 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-02 08:50:52 +0100 |
commit | 845708fcc8e9a5a18aa7e70741008c6602f08eae (patch) | |
tree | daf9a08eb38e6613e0e91a105442744bde1ce883 /include/vcl | |
parent | e900aaeb5d984f68d3ebc4ef50f688719bfb2c43 (diff) |
Add vcl::Window::SetLastMousePos()
This is needed, as e.g. sd::FuText::DoExecute() queries the mouse
position from VCL, which won't be correct in case the mouse event is
generated by a LOK client, not by VCL. So add a method that makes it
possible to set the position before MouseButton*() starts.
Change-Id: I1e24ffb2a4a866c9cac89367907ffaec336ad1f6
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/window.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index b329f454cf68..a6309d6ec0af 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -1013,6 +1013,8 @@ public: void SetPointerPosPixel( const Point& rPos ); Point GetPointerPosPixel(); Point GetLastPointerPosPixel(); + /// Similar to SetPointerPosPixel(), but sets the frame data's last mouse position instead. + void SetLastMousePos(const Point& rPos); void ShowPointer( bool bVisible ); void EnterWait(); void LeaveWait(); |