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