wx.GetXDisplay
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -150,6 +150,7 @@
|
|||||||
%rename(ClientDisplayRect) wxClientDisplayRect;
|
%rename(ClientDisplayRect) wxClientDisplayRect;
|
||||||
%rename(GetClientDisplayRect) wxGetClientDisplayRect;
|
%rename(GetClientDisplayRect) wxGetClientDisplayRect;
|
||||||
%rename(SetCursor) wxSetCursor;
|
%rename(SetCursor) wxSetCursor;
|
||||||
|
%rename(GetXDisplay) wxGetXDisplay;
|
||||||
%rename(BeginBusyCursor) wxBeginBusyCursor;
|
%rename(BeginBusyCursor) wxBeginBusyCursor;
|
||||||
%rename(GetActiveWindow) wxGetActiveWindow;
|
%rename(GetActiveWindow) wxGetActiveWindow;
|
||||||
%rename(GenericFindWindowAtPoint) wxGenericFindWindowAtPoint;
|
%rename(GenericFindWindowAtPoint) wxGenericFindWindowAtPoint;
|
||||||
|
@@ -254,6 +254,21 @@ MustHaveApp(wxSetCursor);
|
|||||||
void wxSetCursor(wxCursor& cursor);
|
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
|
// Miscellaneous functions
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user