]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/window.cpp
1. some more tests in console
[wxWidgets.git] / src / mac / window.cpp
index 8c14292b7ddd2bc865723694f97eb30b04e9cb15..d2696fe6e0bdc955993352efa87ec9265ea9200c 100644 (file)
@@ -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);
+}
+