X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cdaed0ba00e01b31fe236b270b8a209f3ac8921..5a07e9748288d199216af61dcac67d45011e36fe:/wxPython/src/misc.i?ds=inline diff --git a/wxPython/src/misc.i b/wxPython/src/misc.i index 92f95b87da..482f489f3b 100644 --- a/wxPython/src/misc.i +++ b/wxPython/src/misc.i @@ -220,6 +220,8 @@ public: wxPoint GetPosition(); wxSize GetSize(); + void SetPosition( const wxPoint &p ); + void SetSize( const wxSize &s ); int GetLeft(); int GetTop(); @@ -363,6 +365,16 @@ void wxStartTimer(); int wxGetOsVersion(int *OUTPUT, int *OUTPUT); wxString wxGetOsDescription(); +enum wxShutdownFlags +{ + wxSHUTDOWN_POWEROFF, // power off the computer + wxSHUTDOWN_REBOOT // shutdown and reboot +}; + +// Shutdown or reboot the PC +bool wxShutdown(wxShutdownFlags wFlags); + + void wxSleep(int secs); void wxUsleep(unsigned long milliseconds); bool wxYield(); @@ -389,6 +401,7 @@ wxString wxGetUserName(); wxString wxGetHomeDir(); wxString wxGetUserHome(const wxString& user = wxPyEmptyString); +unsigned long wxGetProcessId(); // When wxApp gets the virtual method magic then enable this. // bool wxHandleFatalExceptions(bool doIt = TRUE);