X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c594325333f3e154ee51edd918ad9cb0582203a7..92b0a2a13ccaaa23a97964ff35cdaf39dd44a104:/wxPython/src/frames.i diff --git a/wxPython/src/frames.i b/wxPython/src/frames.i index 3dfe261ea7..9955e0a912 100644 --- a/wxPython/src/frames.i +++ b/wxPython/src/frames.i @@ -16,7 +16,7 @@ %{ #include "helpers.h" #include -#include +#include %} //---------------------------------------------------------------------- @@ -230,14 +230,40 @@ public: //--------------------------------------------------------------------------- -class wxTipWindow : public wxFrame +enum { + wxSPLASH_CENTRE_ON_PARENT, + wxSPLASH_CENTRE_ON_SCREEN, + wxSPLASH_NO_CENTRE, + wxSPLASH_TIMEOUT, + wxSPLASH_NO_TIMEOUT, +}; + + +class wxSplashScreenWindow: public wxWindow { public: - wxTipWindow(wxWindow *parent, - const wxString& text, - wxCoord maxLength = 100); + wxSplashScreenWindow(const wxBitmap& bitmap, + wxWindow* parent, wxWindowID id, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxNO_BORDER); + + void SetBitmap(const wxBitmap& bitmap); + wxBitmap& GetBitmap(); +}; - %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + +class wxSplashScreen : public wxFrame { +public: + wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, + wxWindow* parent, wxWindowID id, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxFRAME_FLOAT_ON_PARENT); + + long GetSplashStyle() const; + wxSplashScreenWindow* GetSplashWindow() const; + int GetTimeout() const; }; @@ -247,3 +273,4 @@ public: +