+//----------------------------------------------------------------------
+
+
+class wxTopLevelWindow : public wxWindow
+{
+public:
+ // construction
+ wxTopLevelWindow(wxWindow *parent,
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE,
+ const char* name = "frame");
+ %name(wxPreTopLevelWindow)wxTopLevelWindow();
+
+ bool Create(wxWindow *parent,
+ wxWindowID id,
+ const wxString& title,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE,
+ const char* name = "frame");
+
+ %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreTopLevelWindow:val._setOORInfo(val)"
+
+ // maximize = TRUE => maximize, otherwise - restore
+ virtual void Maximize(bool maximize = TRUE);
+
+ // undo Maximize() or Iconize()
+ virtual void Restore();
+
+ // iconize = TRUE => iconize, otherwise - restore
+ virtual void Iconize(bool iconize = TRUE);
+
+ // return TRUE if the frame is maximized
+ virtual bool IsMaximized() const;
+
+ // return TRUE if the frame is iconized
+ virtual bool IsIconized() const;
+
+ // get the frame icon
+ wxIcon GetIcon() const;
+
+ // set the frame icon
+ virtual void SetIcon(const wxIcon& icon);
+
+
+ // maximize the window to cover entire screen
+ virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
+
+ // return TRUE if the frame is in fullscreen mode
+ virtual bool IsFullScreen() const;
+
+ virtual void SetTitle(const wxString& title);
+ virtual wxString GetTitle() const;
+};
+
+//----------------------------------------------------------------------
+
+
+class wxFrame : public wxTopLevelWindow {