#include <wx/sizer.h>
the width of each field is the width of the widest child, the height of each field is the height of the tallest child.
Public Member Functions | |
int | GetCols () const |
Returns the number of columns in the sizer. | |
int | GetHGap () const |
Returns the horizontal gap (in pixels) between cells in the sizer. | |
int | GetRows () const |
Returns the number of rows in the sizer. | |
int | GetVGap () const |
Returns the vertical gap (in pixels) between the cells in the sizer. | |
void | SetCols (int cols) |
Sets the number of columns in the sizer. | |
void | SetHGap (int gap) |
Sets the horizontal gap (in pixels) between cells in the sizer. | |
void | SetRows (int rows) |
Sets the number of rows in the sizer. | |
void | SetVGap (int gap) |
Sets the vertical gap (in pixels) between the cells in the sizer. | |
wxGridSizer (int rows, int cols, int vgap, int hgap) | |
Constructor for a wxGridSizer. | |
wxGridSizer (int cols, int vgap=0, int hgap=0) | |
Constructor for a wxGridSizer. |
wxGridSizer::wxGridSizer | ( | int | rows, | |
int | cols, | |||
int | vgap, | |||
int | hgap | |||
) |
Constructor for a wxGridSizer.
rows and cols determine the number of columns and rows in the sizer - if either of the parameters is zero, it will be calculated to form the total number of children in the sizer, thus making the sizer grow dynamically.
vgap and hgap define extra space between all children.
wxGridSizer::wxGridSizer | ( | int | cols, | |
int | vgap = 0 , |
|||
int | hgap = 0 | |||
) |
Constructor for a wxGridSizer.
rows and cols determine the number of columns and rows in the sizer - if either of the parameters is zero, it will be calculated to form the total number of children in the sizer, thus making the sizer grow dynamically.
vgap and hgap define extra space between all children.
int wxGridSizer::GetCols | ( | ) | const |
Returns the number of columns in the sizer.
int wxGridSizer::GetHGap | ( | ) | const |
Returns the horizontal gap (in pixels) between cells in the sizer.
int wxGridSizer::GetRows | ( | ) | const |
Returns the number of rows in the sizer.
int wxGridSizer::GetVGap | ( | ) | const |
Returns the vertical gap (in pixels) between the cells in the sizer.
void wxGridSizer::SetCols | ( | int | cols | ) |
Sets the number of columns in the sizer.
void wxGridSizer::SetHGap | ( | int | gap | ) |
Sets the horizontal gap (in pixels) between cells in the sizer.
void wxGridSizer::SetRows | ( | int | rows | ) |
Sets the number of rows in the sizer.
void wxGridSizer::SetVGap | ( | int | gap | ) |
Sets the vertical gap (in pixels) between the cells in the sizer.
![]() |
[ top ] |