]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/sizer.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: provide wxSizer class for layounting
4 // Author: Robert Roebling and Robin Dunn
8 // Copyright: (c) Robin Dunn, Dirk Holtwick and Robert Roebling
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "sizer.h"
21 #include "wx/window.h"
23 #include "wx/dialog.h"
25 //---------------------------------------------------------------------------
27 //---------------------------------------------------------------------------
33 //---------------------------------------------------------------------------
35 //---------------------------------------------------------------------------
37 class WXDLLEXPORT wxSizerItem
: wxObject
41 wxSizerItem( int width
, int height
, int option
)
44 wxSizerItem( wxWindow
*window
, int option
);
47 wxSizerItem( wxSizer
*sizer
, int option
);
49 virtual wxSize
GetMinSize();
55 wxWindow
*GetWindow() const
57 wxSizer
*GetSizer() const
69 //---------------------------------------------------------------------------
71 //---------------------------------------------------------------------------
73 class WXDLLEXPORT wxSizer
: wxObject
79 virtual void Add( wxWindow
*window
, int option
= 0 );
80 virtual void Add( wxSizer
*sizer
, int option
= 0 );
81 virtual void Add( int width
, int height
, int option
= 0 );
83 void SetDimension( int x
, int y
, int width
, int height
)
84 { DoSetDimension( x
, y
, width
, height
); }
89 { return m_position
; }
93 virtual void RecalcSizes() = 0;
94 virtual wxSize
CalcMin() = 0;
96 void Fit( wxWindow
*window
);
97 void SetSizeHints( wxWindow
*window
);
104 wxSize
GetMinWindowSize( wxWindow
*window
);
105 virtual void DoSetDimension( int x
, int y
, int width
, int height
);