]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/frames.i
Added VC++ project files for remaining Gizmo samples
[wxWidgets.git] / wxPython / src / frames.i
index d0fd4866b13db7e8e71c678aeeee9197cb96222d..9955e0a912223bb356cce7dcc9b9d04817084743 100644 (file)
@@ -16,7 +16,7 @@
 %{
 #include "helpers.h"
 #include <wx/minifram.h>
-#include <wx/tipwin.h>
+#include <wx/splash.h>
 %}
 
 //----------------------------------------------------------------------
@@ -72,7 +72,7 @@ public:
                 const char* name = "frame");
 
     %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
-    %pragma(python) addtomethod = "wxPreTopLevelWindowXXX:val._setOORInfo(self)"
+    %pragma(python) addtomethod = "wxPreTopLevelWindow:val._setOORInfo(val)"
 
     // maximize = TRUE => maximize, otherwise - restore
     virtual void Maximize(bool maximize = TRUE);
@@ -90,7 +90,7 @@ public:
     virtual bool IsIconized() const;
 
     // get the frame icon
-    const wxIcon& GetIcon() const;
+    wxIcon GetIcon() const;
 
     // set the frame icon
     virtual void SetIcon(const wxIcon& icon);
@@ -125,7 +125,7 @@ public:
                 char* name = "frame");
 
     %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
-    %pragma(python) addtomethod = "wxPreFrame:val._setOORInfo(self)"
+    %pragma(python) addtomethod = "wxPreFrame:val._setOORInfo(val)"
 
     wxPoint GetClientAreaOrigin();
 
@@ -189,7 +189,7 @@ public:
                 const char* name = "dialogBox");
 
     %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
-    %pragma(python) addtomethod = "wxPreDialog:val._setOORInfo(self)"
+    %pragma(python) addtomethod = "wxPreDialog:val._setOORInfo(val)"
 
     void Centre(int direction = wxBOTH);
     void EndModal(int retCode);
@@ -224,20 +224,46 @@ public:
                 char* name = "frame");
 
     %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
-    %pragma(python) addtomethod = "wxPreMiniFrame:val._setOORInfo(self)"
+    %pragma(python) addtomethod = "wxPreMiniFrame:val._setOORInfo(val)"
 };
 
 
 //---------------------------------------------------------------------------
 
-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:
 
 
 
+