X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/611ac06b89bae17b0217f362dde1115ebe236f66..300b44a9336a9610fef256afb412e8fb6b51840f:/wxPython/src/_display.i?ds=sidebyside diff --git a/wxPython/src/_display.i b/wxPython/src/_display.i index 6277cad3f5..2a8a450458 100644 --- a/wxPython/src/_display.i +++ b/wxPython/src/_display.i @@ -17,6 +17,7 @@ %{ #include +#include %} @@ -72,6 +73,10 @@ means unspecified/known", ""); // refresh frequency in Hz, 0 means unspecified/unknown int refresh; + + %property(Depth, GetDepth, doc="See `GetDepth`"); + %property(Height, GetHeight, doc="See `GetHeight`"); + %property(Width, GetWidth, doc="See `GetWidth`"); }; @@ -96,7 +101,7 @@ class wxDisplay { public: DocCtorStr( - wxDisplay(size_t index = 0), + wxDisplay(unsigned index = 0), "Set up a Display instance with the specified display. The displays are numbered from 0 to GetCount() - 1, 0 is always the primary display and the only one which is always supported", ""); @@ -104,7 +109,7 @@ and the only one which is always supported", ""); ~wxDisplay(); DocDeclStr( - static size_t , GetCount(), + static unsigned , GetCount(), "Return the number of available displays.", ""); DocDeclStr( @@ -116,7 +121,7 @@ doesn't belong to any display", ""); "Find the display where the given window lies, return wx.NOT_FOUND if it is not shown at all.", ""); - static int GetFromWindow(wxWindow *window); + static int GetFromWindow(const wxWindow *window); DocDeclStr( @@ -234,6 +239,13 @@ Returns True if succeeded, False otherwise", ""); } } // end of %extend + + %property(ClientArea, GetClientArea, doc="See `GetClientArea`"); + %property(CurrentMode, GetCurrentMode, doc="See `GetCurrentMode`"); + %property(Geometry, GetGeometry, doc="See `GetGeometry`"); + %property(Modes, GetModes, doc="See `GetModes`"); + %property(Name, GetName, doc="See `GetName`"); + }; //---------------------------------------------------------------------------