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