]> git.saurik.com Git - wxWidgets.git/commitdiff
wx.GetXDisplay
authorRobin Dunn <robin@alldunn.com>
Wed, 11 May 2005 18:00:49 +0000 (18:00 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 11 May 2005 18:00:49 +0000 (18:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/__misc_rename.i
wxPython/src/_functions.i

index 260e96321148625a0539ff249eb3029b52228e96..039e7ec5815b8f38232392c8627780bd014d57da 100644 (file)
 %rename(ClientDisplayRect)                  wxClientDisplayRect;
 %rename(GetClientDisplayRect)               wxGetClientDisplayRect;
 %rename(SetCursor)                          wxSetCursor;
+%rename(GetXDisplay)                        wxGetXDisplay;
 %rename(BeginBusyCursor)                    wxBeginBusyCursor;
 %rename(GetActiveWindow)                    wxGetActiveWindow;
 %rename(GenericFindWindowAtPoint)           wxGenericFindWindowAtPoint;
index 22e904c248b20bc45fc0edb1e7ce4dd0b7e471a4..23b2cb1cb59959b1600a36d342034b1835e59688 100644 (file)
@@ -254,6 +254,21 @@ MustHaveApp(wxSetCursor);
 void wxSetCursor(wxCursor& cursor);
 
 
+MustHaveApp(wxGetXDisplay);
+DocStr(wxGetXDisplay,
+"Returns a swigified pointer to the X11 display.  Returns None on
+other platforms.", "");
+%inline %{
+    void* wxGetXDisplay()
+    {
+#ifdef __WXGTK__
+        return wxGetDisplay();
+#else
+        return NULL;
+#endif
+    }
+%}
+
 
 // Miscellaneous functions