maintaint the mouse capture stack in all ports, not just wxUniv
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -460,9 +460,12 @@ public:
|
||||
// move the mouse to the specified position
|
||||
virtual void WarpPointer(int x, int y) = 0;
|
||||
|
||||
// start or end mouse capture
|
||||
virtual void CaptureMouse() = 0;
|
||||
virtual void ReleaseMouse() = 0;
|
||||
// start or end mouse capture, these functions maintain the stack of
|
||||
// windows having captured the mouse and after calling ReleaseMouse()
|
||||
// the mouse is not released but returns to the window which had had
|
||||
// captured it previously (if any)
|
||||
void CaptureMouse();
|
||||
void ReleaseMouse();
|
||||
|
||||
// get the window which currently captures the mouse or NULL
|
||||
static wxWindow *GetCapture();
|
||||
@@ -883,6 +886,10 @@ protected:
|
||||
|
||||
virtual wxHitTest DoHitTest(wxCoord x, wxCoord y) const;
|
||||
|
||||
// capture/release the mouse, used by Capture/ReleaseMouse()
|
||||
virtual void DoCaptureMouse();
|
||||
virtual void DoReleaseMouse();
|
||||
|
||||
// retrieve the position/size of the window
|
||||
virtual void DoGetPosition( int *x, int *y ) const = 0;
|
||||
virtual void DoGetSize( int *width, int *height ) const = 0;
|
||||
|
Reference in New Issue
Block a user