X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d467e0c72da3a270592719f1e819db3c4984c0ca..523050b607cfb5e6f9dfcb1544eb4f49ec1978cd:/src/mac/window.cpp?ds=inline

diff --git a/src/mac/window.cpp b/src/mac/window.cpp
index 8c14292b7d..d2696fe6e0 100644
--- a/src/mac/window.cpp
+++ b/src/mac/window.cpp
@@ -2356,3 +2356,21 @@ wxMacDrawingClientHelper::~wxMacDrawingClientHelper()
 	if ( m_formerPort != m_currentPort )
 		SetPort( m_formerPort ) ;
 }
+
+// Find the wxWindow at the current mouse position, returning the mouse
+// position.
+wxWindow* wxFindWindowAtPointer(wxPoint& pt)
+{
+    pt = wxGetMousePosition();
+    wxWindow* found = wxFindWindowAtPoint(pt);
+    return found;
+}
+
+// Get the current mouse position.
+wxPoint wxGetMousePosition()
+{
+    int x, y;
+    wxGetMousePosition(& x, & y);
+    return wxPoint(x, y);
+}
+