X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa2fc802a96feb1d0ab31034f75ede2840cb0f60..db679b8c836e69c111cdc31e62cf92cebe4f938f:/wxPython/src/_functions.i?ds=inline diff --git a/wxPython/src/_functions.i b/wxPython/src/_functions.i index 22e904c248..23b2cb1cb5 100644 --- a/wxPython/src/_functions.i +++ b/wxPython/src/_functions.i @@ -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