1 \section{\class{wxGridSizer
}}\label{wxgridsizer
}
3 A grid sizer is a sizer which lays out its children in a two-dimensional
4 table with all table fields having the same size,
5 i.e. the width of each field is the width of the widest child,
6 the height of each field is the height of the tallest child.
8 \wxheading{Derived from
}
10 \helpref{wxSizer
}{wxsizer
}\\
11 \helpref{wxObject
}{wxobject
}
13 \wxheading{Include files
}
19 \helpref{wxCore
}{librarieslist
}
23 \helpref{wxSizer
}{wxsizer
},
\helpref{Sizer overview
}{sizeroverview
}
25 \membersection{wxGridSizer::wxGridSizer
}\label{wxgridsizerwxgridsizer
}
27 \func{}{wxGridSizer
}{\param{int
}{rows
},
\param{int
}{cols
},
\param{int
}{vgap
},
\param{int
}{hgap
}}
29 \func{}{wxGridSizer
}{\param{int
}{cols
},
\param{int
}{vgap =
0},
\param{int
}{hgap =
0}}
31 Constructor for a wxGridSizer.
{\it rows
} and
{\it cols
} determine the number of
32 columns and rows in the sizer - if either of the parameters is zero, it will be
33 calculated to form the total number of children in the sizer, thus making the
34 sizer grow dynamically.
{\it vgap
} and
{\it hgap
} define extra space between
37 \membersection{wxGridSizer::GetCols
}\label{wxgridsizergetcols
}
41 Returns the number of columns in the sizer.
44 \membersection{wxGridSizer::GetHGap
}\label{wxgridsizergethgap
}
48 Returns the horizontal gap (in pixels) between cells in the sizer.
51 \membersection{wxGridSizer::GetRows
}\label{wxgridsizergetrows
}
55 Returns the number of rows in the sizer.
58 \membersection{wxGridSizer::GetVGap
}\label{wxgridsizergetvgap
}
62 Returns the vertical gap (in pixels) between the cells in the sizer.
65 \membersection{wxGridSizer::SetCols
}\label{wxgridsizersetcols
}
67 \func{void
}{SetCols
}{\param{int
}{cols
}}
69 Sets the number of columns in the sizer.
72 \membersection{wxGridSizer::SetHGap
}\label{wxgridsizersethgap
}
74 \func{void
}{SetHGap
}{\param{int
}{gap
}}
76 Sets the horizontal gap (in pixels) between cells in the sizer.
79 \membersection{wxGridSizer::SetRows
}\label{wxgridsizersetrows
}
81 \func{void
}{SetRows
}{\param{int
}{rows
}}
83 Sets the number of rows in the sizer.
86 \membersection{wxGridSizer::SetVGap
}\label{wxgridsizersetvgap
}
88 \func{void
}{SetVGap
}{\param{int
}{gap
}}
90 Sets the vertical gap (in pixels) between the cells in the sizer.