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