New wxFlexGridSizer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -199,6 +199,37 @@ private:
|
||||
DECLARE_CLASS(wxGridSizer);
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// wxFlexGridSizer
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
class WXDLLEXPORT wxFlexGridSizer: public wxGridSizer
|
||||
{
|
||||
public:
|
||||
wxFlexGridSizer( int rows, int cols, int vgap, int hgap );
|
||||
wxFlexGridSizer( int cols, int vgap = 0, int hgap = 0 );
|
||||
~wxFlexGridSizer();
|
||||
|
||||
void RecalcSizes();
|
||||
wxSize CalcMin();
|
||||
|
||||
void AddGrowableRow( size_t idx );
|
||||
void RemoveGrowableRow( size_t idx );
|
||||
void AddGrowableCol( size_t idx );
|
||||
void RemoveGrowableCol( size_t idx );
|
||||
|
||||
protected:
|
||||
int *m_rowHeights;
|
||||
int *m_colWidths;
|
||||
wxArrayInt m_growableRows;
|
||||
wxArrayInt m_growableCols;
|
||||
|
||||
void CreateArrays();
|
||||
|
||||
private:
|
||||
DECLARE_CLASS(wxFlexGridSizer);
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// wxBoxSizer
|
||||
//---------------------------------------------------------------------------
|
||||
@@ -209,7 +240,7 @@ public:
|
||||
wxBoxSizer( int orient );
|
||||
|
||||
void RecalcSizes();
|
||||
wxSize CalcMin();
|
||||
wxSize CalcMin();
|
||||
|
||||
int GetOrientation()
|
||||
{ return m_orient; }
|
||||
|
Reference in New Issue
Block a user