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