]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gridsizr.tex
remove C++ comment
[wxWidgets.git] / docs / latex / wx / gridsizr.tex
CommitLineData
f6bcfd97
BP
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
0bf97466
RN
13\wxheading{Include files}
14
15<wx/sizer.h>
16
a7af285d
VZ
17\wxheading{Library}
18
19\helpref{wxCore}{librarieslist}
20
1c0c339c
JS
21\wxheading{See also}
22
23\helpref{wxSizer}{wxsizer}, \helpref{Sizer overview}{sizeroverview}
24
809e21b5
FM
25
26
27\latexignore{\rtfignore{\wxheading{Members}}}
28
f6bcfd97
BP
29\membersection{wxGridSizer::wxGridSizer}\label{wxgridsizerwxgridsizer}
30
e9c4505e 31\func{}{wxGridSizer}{\param{int }{rows}, \param{int }{cols}, \param{int }{vgap}, \param{int }{hgap}}
f6bcfd97
BP
32
33\func{}{wxGridSizer}{\param{int }{cols}, \param{int }{vgap = 0}, \param{int }{hgap = 0}}
34
35Constructor for a wxGridSizer. {\it rows} and {\it cols} determine the number of
36columns and rows in the sizer - if either of the parameters is zero, it will be
37calculated to form the total number of children in the sizer, thus making the
38sizer grow dynamically. {\it vgap} and {\it hgap} define extra space between
39all children.
40
f3cf3865
RD
41\membersection{wxGridSizer::GetCols}\label{wxgridsizergetcols}
42
43\func{int}{GetCols}{}
44
45Returns the number of columns in the sizer.
46
47
48\membersection{wxGridSizer::GetHGap}\label{wxgridsizergethgap}
49
50\func{int}{GetHGap}{}
51
52Returns the horizontal gap (in pixels) between cells in the sizer.
53
54
55\membersection{wxGridSizer::GetRows}\label{wxgridsizergetrows}
56
57\func{int}{GetRows}{}
58
59Returns the number of rows in the sizer.
60
61
62\membersection{wxGridSizer::GetVGap}\label{wxgridsizergetvgap}
63
64\func{int}{GetVGap}{}
65
66Returns the vertical gap (in pixels) between the cells in the sizer.
67
68
69\membersection{wxGridSizer::SetCols}\label{wxgridsizersetcols}
70
71\func{void}{SetCols}{\param{int }{cols}}
72
73Sets the number of columns in the sizer.
74
75
76\membersection{wxGridSizer::SetHGap}\label{wxgridsizersethgap}
77
78\func{void}{SetHGap}{\param{int }{gap}}
79
80Sets the horizontal gap (in pixels) between cells in the sizer.
81
82
83\membersection{wxGridSizer::SetRows}\label{wxgridsizersetrows}
84
85\func{void}{SetRows}{\param{int }{rows}}
86
87Sets the number of rows in the sizer.
88
89
90\membersection{wxGridSizer::SetVGap}\label{wxgridsizersetvgap}
91
92\func{void}{SetVGap}{\param{int }{gap}}
93
94Sets the vertical gap (in pixels) between the cells in the sizer.
95
96
97
98