X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83edc0a574d4311c536c9e263f512b494130fef3..28f5bdb49b6ce414a012696e07530765159bb3e6:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 7a2ce17ff3..091a17db79 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -69,6 +69,15 @@ public: bool IsWindow(); bool IsSizer(); bool IsSpacer(); + + void SetInitSize( int x, int y ) + { m_minSize.x = x; m_minSize.y = y; } + void SetOption( int option ) + { m_option = option; } + void SetFlag( int flag ) + { m_flag = flag; } + void SetBorder( int border ) + { m_border = border; } wxWindow *GetWindow() const { return m_window; } @@ -113,6 +122,10 @@ public: virtual void Add( wxSizer *sizer, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL ); virtual void Add( int width, int height, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL ); + virtual void Insert( int before, wxWindow *window, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL ); + virtual void Insert( int before, wxSizer *sizer, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL ); + virtual void Insert( int before, int width, int height, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL ); + virtual void Prepend( wxWindow *window, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL ); virtual void Prepend( wxSizer *sizer, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL ); virtual void Prepend( int width, int height, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL ); @@ -198,6 +211,8 @@ protected: // wxNotebookSizer //--------------------------------------------------------------------------- +#if wxUSE_NOTEBOOK + class WXDLLEXPORT wxNotebookSizer: public wxSizer { DECLARE_CLASS(wxNotebookSizer); @@ -214,5 +229,8 @@ protected: wxNotebook *m_notebook; }; +#endif + + #endif // __WXSIZER_H__