X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d467e0c72da3a270592719f1e819db3c4984c0ca..10992a81d39da31b79063387b7b71c0ff68737ce:/src/mac/window.cpp 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); +} +