X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92afa2b150803da84a4bc7dfa4e580dbbff15c9a..284b4c8866ab36694b6ec2a308690bba4db4fed2:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index 5f82f4ce94..5b8af95cdb 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -26,9 +26,12 @@ // classes //--------------------------------------------------------------------------- +class wxStaticBox; + class wxSizerItem; class wxSizer; class wxBoxSizer; +class wxStaticBoxSizer; //--------------------------------------------------------------------------- // wxSizerItem @@ -89,6 +92,14 @@ public: virtual void Add( wxSizer *sizer, int option = 0, int flag = 0, int border = 0 ); virtual void Add( int width, int height, int option = 0, int flag = 0, int border = 0 ); + virtual void Prepend( wxWindow *window, int option = 0, int flag = 0, int border = 0 ); + virtual void Prepend( wxSizer *sizer, int option = 0, int flag = 0, int border = 0 ); + virtual void Prepend( int width, int height, int option = 0, int flag = 0, int border = 0 ); + + virtual bool Remove( wxWindow *window ); + virtual bool Remove( wxSizer *sizer ); + virtual bool Remove( int pos ); + void SetDimension( int x, int y, int width, int height ); wxSize GetSize() @@ -138,5 +149,24 @@ protected: int m_fixedHeight; }; +//--------------------------------------------------------------------------- +// wxStaticBoxSizer +//--------------------------------------------------------------------------- + +class WXDLLEXPORT wxStaticBoxSizer: public wxBoxSizer +{ +public: + wxStaticBoxSizer( wxStaticBox *box, int orient ); + + void RecalcSizes(); + wxSize CalcMin(); + + wxStaticBox *GetStaticBox() + { return m_staticBox; } + +protected: + wxStaticBox *m_staticBox; +}; + #endif // __WXSIZER_H__