]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/gridsizr.tex
sorting support for generic version (patch 1765087 from Bo)
[wxWidgets.git] / docs / latex / wx / gridsizr.tex
... / ...
CommitLineData
1\section{\class{wxGridSizer}}\label{wxgridsizer}
2
3A grid sizer is a sizer which lays out its children in a two-dimensional
4table with all table fields having the same size,
5i.e. the width of each field is the width of the widest child,
6the height of each field is the height of the tallest child.
7
8\wxheading{Derived from}
9
10\helpref{wxSizer}{wxsizer}\\
11\helpref{wxObject}{wxobject}
12
13\wxheading{Include files}
14
15<wx/sizer.h>
16
17\wxheading{Library}
18
19\helpref{wxCore}{librarieslist}
20
21\wxheading{See also}
22
23\helpref{wxSizer}{wxsizer}, \helpref{Sizer overview}{sizeroverview}
24
25\membersection{wxGridSizer::wxGridSizer}\label{wxgridsizerwxgridsizer}
26
27\func{}{wxGridSizer}{\param{int }{rows}, \param{int }{cols}, \param{int }{vgap}, \param{int }{hgap}}
28
29\func{}{wxGridSizer}{\param{int }{cols}, \param{int }{vgap = 0}, \param{int }{hgap = 0}}
30
31Constructor for a wxGridSizer. {\it rows} and {\it cols} determine the number of
32columns and rows in the sizer - if either of the parameters is zero, it will be
33calculated to form the total number of children in the sizer, thus making the
34sizer grow dynamically. {\it vgap} and {\it hgap} define extra space between
35all children.
36
37\membersection{wxGridSizer::GetCols}\label{wxgridsizergetcols}
38
39\func{int}{GetCols}{}
40
41Returns the number of columns in the sizer.
42
43
44\membersection{wxGridSizer::GetHGap}\label{wxgridsizergethgap}
45
46\func{int}{GetHGap}{}
47
48Returns the horizontal gap (in pixels) between cells in the sizer.
49
50
51\membersection{wxGridSizer::GetRows}\label{wxgridsizergetrows}
52
53\func{int}{GetRows}{}
54
55Returns the number of rows in the sizer.
56
57
58\membersection{wxGridSizer::GetVGap}\label{wxgridsizergetvgap}
59
60\func{int}{GetVGap}{}
61
62Returns the vertical gap (in pixels) between the cells in the sizer.
63
64
65\membersection{wxGridSizer::SetCols}\label{wxgridsizersetcols}
66
67\func{void}{SetCols}{\param{int }{cols}}
68
69Sets the number of columns in the sizer.
70
71
72\membersection{wxGridSizer::SetHGap}\label{wxgridsizersethgap}
73
74\func{void}{SetHGap}{\param{int }{gap}}
75
76Sets the horizontal gap (in pixels) between cells in the sizer.
77
78
79\membersection{wxGridSizer::SetRows}\label{wxgridsizersetrows}
80
81\func{void}{SetRows}{\param{int }{rows}}
82
83Sets the number of rows in the sizer.
84
85
86\membersection{wxGridSizer::SetVGap}\label{wxgridsizersetvgap}
87
88\func{void}{SetVGap}{\param{int }{gap}}
89
90Sets the vertical gap (in pixels) between the cells in the sizer.
91
92
93
94