]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gbsizeritem.tex
Added periods
[wxWidgets.git] / docs / latex / wx / gbsizeritem.tex
CommitLineData
20b35a69
RD
1
2\section{\class{wxGBSizerItem}}\label{wxgbsizeritem}
3
5a30d450 4The wxGBSizerItem class is used by the
20b35a69 5\helpref{wxGridBagSizer}{wxgridbagsizer} for tracking the items in the
5a30d450 6sizer. It adds grid position and spanning information to the normal
20b35a69
RD
7\helpref{wxSizerItem}{wxsizeritem} by adding
8\helpref{wxGBPosition}{wxgbposition} and \helpref{wxGBSpan}{wxgbspan}
5a30d450 9attrbibutes. Most of the time you will not need to use a
20b35a69
RD
10wxGBSizerItem directly in your code, but there are a couple of cases
11where it is handy.
12
20b35a69
RD
13\wxheading{Derived from}
14
15\helpref{wxSizerItem}{wxsizeritem}
16
17\wxheading{Include files}
18
19<wx/gbsizer.h>
20
a7af285d
VZ
21\wxheading{Library}
22
23\helpref{wxCore}{librarieslist}
24
20b35a69
RD
25\latexignore{\rtfignore{\wxheading{Members}}}
26
20b35a69
RD
27\membersection{wxGBSizerItem::wxGBSizerItem}\label{wxgbsizeritemwxgbsizeritem}
28
29\func{}{wxGBSizerItem}{\param{int }{width}, \param{int }{height}, \param{const wxGBPosition\& }{pos}, \param{const wxGBSpan\& }{span}, \param{int }{flag}, \param{int }{border}, \param{wxObject* }{userData}}
30
31Construct a sizer item for tracking a spacer.
32
20b35a69
RD
33\func{}{wxGBSizerItem}{\param{wxWindow* }{window}, \param{const wxGBPosition\& }{pos}, \param{const wxGBSpan\& }{span}, \param{int }{flag}, \param{int }{border}, \param{wxObject* }{userData}}
34
35Construct a sizer item for tracking a window.
36
20b35a69
RD
37\func{}{wxGBSizerItem}{\param{wxSizer* }{sizer}, \param{const wxGBPosition\& }{pos}, \param{const wxGBSpan\& }{span}, \param{int }{flag}, \param{int }{border}, \param{wxObject* }{userData}}
38
39Construct a sizer item for tracking a subsizer.
40
20b35a69
RD
41\membersection{wxGBSizerItem::GetEndPos}\label{wxgbsizeritemgetendpos}
42
43\func{void}{GetEndPos}{\param{int\& }{row}, \param{int\& }{col}}
44
45Get the row and column of the endpoint of this item
46
20b35a69
RD
47\membersection{wxGBSizerItem::GetPos}\label{wxgbsizeritemgetpos}
48
49\constfunc{wxGBPosition}{GetPos}{\void}
50
51\constfunc{void}{GetPos}{\param{int\& }{row}, \param{int\& }{col}}
52
53Get the grid position of the item.
54
20b35a69
RD
55\membersection{wxGBSizerItem::GetSpan}\label{wxgbsizeritemgetspan}
56
57\constfunc{wxGBSpan}{GetSpan}{\void}
58
59\constfunc{void}{GetSpan}{\param{int\& }{rowspan}, \param{int\& }{colspan}}
60
61Get the row and column spanning of the item.
62
20b35a69
RD
63\membersection{wxGBSizerItem::Intersects}\label{wxgbsizeritemintersects}
64
65\func{bool}{Intersects}{\param{const wxGBSizerItem\& }{other}}
66
67Returns true if this item and the other item instersect
68
20b35a69
RD
69\func{bool}{Intersects}{\param{const wxGBPosition\& }{pos}, \param{const wxGBSpan\& }{span}}
70
71Returns true if the given pos/span would intersect with this item.
72
20b35a69
RD
73\membersection{wxGBSizerItem::SetPos}\label{wxgbsizeritemsetpos}
74
75\func{bool}{SetPos}{\param{const wxGBPosition\& }{pos}}
76
77If the item is already a member of a sizer then first ensure that
78there is no other item that would intersect with this one at the new
5a30d450 79position, then set the new position. Returns true if the change is
20b35a69
RD
80successful and after the next Layout the item will be moved.
81
20b35a69
RD
82\membersection{wxGBSizerItem::SetSpan}\label{wxgbsizeritemsetspan}
83
84\func{bool}{SetSpan}{\param{const wxGBSpan\& }{span}}
85
86If the item is already a member of a sizer then first ensure that
87there is no other item that would intersect with this one with its new
5a30d450 88spanning size, then set the new spanning. Returns true if the change
20b35a69 89is successful and after the next Layout the item will be resized.
5a30d450 90