]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/sizeritem.tex
Updated to state INNER join rather than OUTER join
[wxWidgets.git] / docs / latex / wx / sizeritem.tex
CommitLineData
20b35a69
RD
1
2\section{\class{wxSizerItem}}\label{wxsizeritem}
3
4The wxSizerItem class is used to track the position, size and other
5attributes of each item managed by a \helpref{wxSizer}{wxsizer}. In
6normal usage user code should never need to deal directly with a
7wxSizerItem, but derived sizer classes will.
8
9
10\wxheading{Derived from}
11
12\helpref{wxObject}{wxobject}
13
14\wxheading{Include files}
15
16<wx/sizer.h>
17
18
19\latexignore{\rtfignore{\wxheading{Members}}}
20
21
22\membersection{wxSizerItem::wxSizerItem}\label{wxsizeritemwxsizeritem}
23
24\func{}{wxSizerItem}{\param{int }{width}, \param{int }{height}, \param{int }{proportion}, \param{int }{flag}, \param{int }{border}, \param{wxObject* }{userData}}
25
26Construct a sizer item for tracking a spacer.
27
28
40210d8a
RN
29\func{}{wxSizerItem}{\param{wxWindow* }{window}, \param{const wxSizerFlags\& }{flags}}
30
20b35a69
RD
31\func{}{wxSizerItem}{\param{wxWindow* }{window}, \param{int }{proportion}, \param{int }{flag}, \param{int }{border}, \param{wxObject* }{userData}}
32
33Construct a sizer item for tracking a window.
34
35
40210d8a
RN
36\func{}{wxSizerItem}{\param{wxSizer* }{window}, \param{const wxSizerFlags\& }{flags}}
37
20b35a69
RD
38\func{}{wxSizerItem}{\param{wxSizer* }{sizer}, \param{int }{proportion}, \param{int }{flag}, \param{int }{border}, \param{wxObject* }{userData}}
39
40Construct a sizer item for tracking a subsizer.
41
42
43
44\membersection{wxSizerItem::\destruct{wxSizerItem}}\label{wxsizeritemdtor}
45
46\func{}{\destruct{wxSizerItem}}{\void}
47
48Deletes the user data and subsizer, if any.
49
50
51\membersection{wxSizerItem::CalcMin}\label{wxsizeritemcalcmin}
52
53\func{wxSize}{CalcMin}{\void}
54
55Calculates the minimum desired size for the item, including any space
56needed by borders.
57
58
59\membersection{wxSizerItem::DeleteWindows}\label{wxsizeritemdeletewindows}
60
61\func{void}{DeleteWindows}{\void}
62
63Destroy the window or the windows in a subsizer, depending on the type
64of item.
65
66
67\membersection{wxSizerItem::DetachSizer}\label{wxsizeritemdetachsizer}
68
69\func{void}{DetachSizer}{\void}
70
71Enable deleting the SizerItem without destroying the contained sizer.
72
73
74\membersection{wxSizerItem::GetBorder}\label{wxsizeritemgetborder}
75
76\constfunc{int}{GetBorder}{\void}
77
78Return the border attribute.
79
80\membersection{wxSizerItem::GetFlag}\label{wxsizeritemgetflag}
81
82\constfunc{int}{GetFlag}{\void}
83
84Return the flags attribute.
85
86
87\membersection{wxSizerItem::GetMinSize}\label{wxsizeritemgetminsize}
88
89\constfunc{wxSize}{GetMinSize}{\void}
90
91Get the minimum size needed for the item.
92
93\membersection{wxSizerItem::GetPosition}\label{wxsizeritemgetposition}
94
95\constfunc{wxPoint}{GetPosition}{\void}
96
97What is the current position of the item, as set in the last Layout.
98
99\membersection{wxSizerItem::GetProportion}\label{wxsizeritemgetproportion}
100
101\constfunc{int}{GetProportion}{\void}
102
103Get the proportion item attribute.
104
105\membersection{wxSizerItem::GetRatio}\label{wxsizeritemgetratio}
106
107\constfunc{float}{GetRatio}{\void}
108
109Get the ration item attribute.
110
56eee37f
WS
111\membersection{wxSizerItem::GetRect}\label{wxsizeritemgetrect}
112
113\func{wxRect}{GetRect}{\void}
114
e6994168 115Get the rectangle of the item on the parent window, excluding borders.
56eee37f 116
20b35a69
RD
117\membersection{wxSizerItem::GetSize}\label{wxsizeritemgetsize}
118
119\constfunc{wxSize}{GetSize}{\void}
120
121Get the current size of the item, as set in the last Layout.
122
123\membersection{wxSizerItem::GetSizer}\label{wxsizeritemgetsizer}
124
125\constfunc{wxSizer*}{GetSizer}{\void}
126
127If this item is tracking a sizer, return it. NULL otherwise.
128
129
130\membersection{wxSizerItem::GetSpacer}\label{wxsizeritemgetspacer}
131
132\constfunc{const wxSize\&}{GetSpacer}{\void}
133
134If this item is tracking a spacer, return its size.
135
136
137\membersection{wxSizerItem::GetUserData}\label{wxsizeritemgetuserdata}
138
139\constfunc{wxObject*}{GetUserData}{\void}
140
141Get the userData item attribute.
142
143
144\membersection{wxSizerItem::GetWindow}\label{wxsizeritemgetwindow}
145
146\constfunc{wxWindow*}{GetWindow}{\void}
147
3103e8a9 148If this item is tracking a window then return it. NULL otherwise.
20b35a69
RD
149
150\membersection{wxSizerItem::IsShown}\label{wxsizeritemisshown}
151
152\constfunc{bool}{IsShown}{\void}
153
154Is this item shown?
155
156
157\membersection{wxSizerItem::IsSizer}\label{wxsizeritemissizer}
158
159\constfunc{bool}{IsSizer}{\void}
160
161Is this item a sizer?
162
163
164\membersection{wxSizerItem::IsSpacer}\label{wxsizeritemisspacer}
165
166\constfunc{bool}{IsSpacer}{\void}
167
168Is this item a spacer?
169
170
171\membersection{wxSizerItem::IsWindow}\label{wxsizeritemiswindow}
172
173\constfunc{bool}{IsWindow}{\void}
174
175Is this item a window?
176
177
178\membersection{wxSizerItem::SetBorder}\label{wxsizeritemsetborder}
179
180\func{void}{SetBorder}{\param{int }{border}}
181
182Set the border item attribute.
183
184\membersection{wxSizerItem::SetDimension}\label{wxsizeritemsetdimension}
185
fbfb8bcc 186\func{void}{SetDimension}{\param{const wxPoint\& }{pos}, \param{const wxSize\& }{size}}
20b35a69
RD
187
188Set the position and size of the space allocated to the sizer, and
189adjust the position and size of the item to be within that space
190taking alignment and borders into account.
191
192
193\membersection{wxSizerItem::SetFlag}\label{wxsizeritemsetflag}
194
195\func{void}{SetFlag}{\param{int }{flag}}
196
197Set the flag item attribute.
198
199
200\membersection{wxSizerItem::SetInitSize}\label{wxsizeritemsetinitsize}
201
202\func{void}{SetInitSize}{\param{int }{x}, \param{int }{y}}
203
204
205\membersection{wxSizerItem::SetProportion}\label{wxsizeritemsetproportion}
206
207\func{void}{SetProportion}{\param{int }{proportion}}
208
209Set the proportion item attribute.
210
211\membersection{wxSizerItem::SetRatio}\label{wxsizeritemsetratio}
212
213\func{void}{SetRatio}{\param{int }{width}, \param{int }{height}}
214
215\func{void}{SetRatio}{\param{wxSize }{size}}
216
217\func{void}{SetRatio}{\param{float }{ratio}}
218
219Set the ratio item attribute.
220
221
222\membersection{wxSizerItem::SetSizer}\label{wxsizeritemsetsizer}
223
224\func{void}{SetSizer}{\param{wxSizer* }{sizer}}
225
226Set the sizer tracked by this item.
227
228
229\membersection{wxSizerItem::SetSpacer}\label{wxsizeritemsetspacer}
230
231\func{void}{SetSpacer}{\param{const wxSize\& }{size}}
232
233Set the size of the spacer tracked by this item.
234
235
236\membersection{wxSizerItem::SetWindow}\label{wxsizeritemsetwindow}
237
238\func{void}{SetWindow}{\param{wxWindow* }{window}}
239
240Set the window to be tracked by thsi item.
241
242
243\membersection{wxSizerItem::Show}\label{wxsizeritemshow}
244
245\func{void}{Show}{\param{bool }{show}}
246
247Set the show item attribute, which sizers use to determine if the item
248is to be made part of the layout or not. If the item is tracking a
249window then it is shown or hidden as needed.
250