]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/auipaneinfo.tex
Added periods
[wxWidgets.git] / docs / latex / wx / auipaneinfo.tex
CommitLineData
e67635d4
RR
1\section{\class{wxAuiPaneInfo}}\label{wxauipaneinfo}
2
3wxAuiPaneInfo is part of the wxAUI class framework.
4See also \helpref{wxAUI overview}{wxauioverview}.
5
6wxAuiPaneInfo specifies all the parameters for a pane.
7These parameters specify where the pane is on the
8screen, whether it is docked or floating, or hidden.
9In addition, these parameters specify the pane's
10docked position, floating position, preferred size,
11minimum size, caption text among many other parameters.
12
13\wxheading{Derived from}
14
15No base class
16
17\wxheading{Include files}
18
19<wx/aui/aui.h>
20
21\wxheading{See also}
22
2207fd21 23\helpref{wxAuiManager}{wxauimanager},
e67635d4
RR
24\helpref{wxAuiDockArt}{wxauidockart}
25
26\wxheading{Data structures}
27
28\begin{verbatim}
29enum wxAuiPaneInsertLevel
30{
31 wxAUI_INSERT_PANE = 0,
32 wxAUI_INSERT_ROW = 1,
33 wxAUI_INSERT_DOCK = 2
34}
35\end{verbatim}
36
37\latexignore{\rtfignore{\wxheading{Members}}}
38
39
40\membersection{wxAuiPaneInfo::wxAuiPaneInfo}\label{wxauipaneinfowxauipaneinfo}
41
42\func{}{wxAuiPaneInfo}{\void}
43
44Default constructor.
45
46\func{}{wxAuiPaneInfo}{\param{const wxAuiPaneInfo\& }{c}}
47
48Copy constructor.
49
50\membersection{wxAuiPaneInfo::\destruct{wxAuiPaneInfo}}\label{wxauipaneinfodtor}
51
52\func{}{\destruct{wxAuiPaneInfo}}{\void}
53
54
55\membersection{wxAuiPaneInfo::BestSize}\label{wxauipaneinfobestsize}
56
57\func{wxAuiPaneInfo\&}{BestSize}{\param{const wxSize\& }{size}}
2207fd21 58
e67635d4
RR
59\func{wxAuiPaneInfo\&}{BestSize}{\param{int }{x}, \param{int }{y}}
60
2207fd21 61BestSize() sets the ideal size for the pane. The docking manager will attempt to use this size as much as possible when docking or floating the pane.
e67635d4
RR
62
63\membersection{wxAuiPaneInfo::Bottom}\label{wxauipaneinfobottom}
64
65\func{wxAuiPaneInfo\&}{Bottom}{\void}
66
2207fd21 67Bottom() sets the pane dock position to the bottom side of the frame. This is
e2622169 68the same thing as calling Direction(wxAUI\_DOCK\_BOTTOM).
e67635d4
RR
69
70\membersection{wxAuiPaneInfo::BottomDockable}\label{wxauipaneinfobottomdockable}
71
72\func{wxAuiPaneInfo\&}{BottomDockable}{\param{bool }{b = true}}
73
74BottomDockable() indicates whether a pane can be docked at the bottom of the frame.
75
76\membersection{wxAuiPaneInfo::Caption}\label{wxauipaneinfocaption}
77
78\func{wxAuiPaneInfo\&}{Caption}{\param{const wxString\& }{c}}
79
80Caption() sets the caption of the pane.
81
82\membersection{wxAuiPaneInfo::CaptionVisible}\label{wxauipaneinfocaptionvisible}
83
84\func{wxAuiPaneInfo\&}{CaptionVisible}{\param{bool }{visible = true}}
85
2207fd21 86CaptionVisible indicates that a pane caption should be visible. If false, no pane caption is drawn.
e67635d4
RR
87
88\membersection{wxAuiPaneInfo::Centre}\label{wxauipaneinfocentre}
89
90\func{wxAuiPaneInfo\&}{Centre}{\void}
e67635d4 91
e67635d4
RR
92\func{wxAuiPaneInfo\&}{Center}{\void}
93
2207fd21
JS
94Center() sets the pane dock position to the left side of the frame.
95The centre pane is the space in the middle after all border panes (left, top, right, bottom) are subtracted from the layout.
96
97This is the same thing as calling Direction(wxAUI\_DOCK\_CENTRE).
e67635d4
RR
98
99\membersection{wxAuiPaneInfo::CentrePane}\label{wxauipaneinfocentrepane}
100
101\func{wxAuiPaneInfo\&}{CentrePane}{\void}
2207fd21 102
e67635d4
RR
103\func{wxAuiPaneInfo\&}{CenterPane}{\void}
104
2207fd21 105CentrePane() specifies that the pane should adopt the default center pane settings. Centre panes usually do not have caption bars. This function provides an easy way of preparing a pane to be displayed in the center dock position.
e67635d4
RR
106
107\membersection{wxAuiPaneInfo::CloseButton}\label{wxauipaneinfoclosebutton}
108
109\func{wxAuiPaneInfo\&}{CloseButton}{\param{bool }{visible = true}}
110
111CloseButton() indicates that a close button should be drawn for the pane.
112
113\membersection{wxAuiPaneInfo::DefaultPane}\label{wxauipaneinfodefaultpane}
114
115\func{wxAuiPaneInfo\&}{DefaultPane}{\void}
116
117DefaultPane() specifies that the pane should adopt the default pane settings.
118
119\membersection{wxAuiPaneInfo::DestroyOnClose}\label{wxauipaneinfodestroyonclose}
120
121\func{wxAuiPaneInfo\&}{DestroyOnClose}{\param{bool }{b = true}}
122
2207fd21 123DestroyOnClose() indicates whether a pane should be detroyed when it is closed. Normally a pane is simply hidden when the close button is clicked. Setting DestroyOnClose to true will cause the window to be destroyed when the user clicks the pane's close button.
e67635d4
RR
124
125\membersection{wxAuiPaneInfo::Direction}\label{wxauipaneinfodirection}
126
127\func{wxAuiPaneInfo\&}{Direction}{\param{int }{direction}}
128
2207fd21 129Direction() determines the direction of the docked pane. It is functionally the same as calling Left(), Right(), Top() or Bottom(), except that docking direction may be specified programmatically via the parameter.
e67635d4
RR
130
131\membersection{wxAuiPaneInfo::Dock}\label{wxauipaneinfodock}
132
133\func{wxAuiPaneInfo\&}{Dock}{\void}
134
135
136\membersection{wxAuiPaneInfo::Dockable}\label{wxauipaneinfodockable}
137
138\func{wxAuiPaneInfo\&}{Dockable}{\param{bool }{b = true}}
139
2207fd21 140Dockable() specifies whether a frame can be docked or not. It is the same as specifying TopDockable(b).BottomDockable(b).LeftDockable(b).RightDockable(b).
e67635d4
RR
141
142\membersection{wxAuiPaneInfo::Fixed}\label{wxauipaneinfofixed}
143
144\func{wxAuiPaneInfo\&}{Fixed}{\void}
145
2207fd21 146Fixed() forces a pane to be fixed size so that it cannot be resized. After calling Fixed(), IsFixed() will return true.
e67635d4
RR
147
148\membersection{wxAuiPaneInfo::Float}\label{wxauipaneinfofloat}
149
150\func{wxAuiPaneInfo\&}{Float}{\void}
151
152Float() indicates that a pane should be floated.
153
154\membersection{wxAuiPaneInfo::Floatable}\label{wxauipaneinfofloatable}
155
156\func{wxAuiPaneInfo\&}{Floatable}{\param{bool }{b = true}}
157
158Floatable() sets whether the user will be able to undock a pane and turn it into a floating window.
159
160\membersection{wxAuiPaneInfo::FloatingPosition}\label{wxauipaneinfofloatingposition}
161
162\func{wxAuiPaneInfo\&}{FloatingPosition}{\param{const wxPoint\& }{pos}}
2207fd21 163
e67635d4
RR
164\func{wxAuiPaneInfo\&}{FloatingPosition}{\param{int }{x}, \param{int }{y}}
165
166FloatingPosition() sets the position of the floating pane.
167
168\membersection{wxAuiPaneInfo::FloatingSize}\label{wxauipaneinfofloatingsize}
169
170\func{wxAuiPaneInfo\&}{FloatingSize}{\param{const wxSize\& }{size}}
2207fd21 171
e67635d4
RR
172\func{wxAuiPaneInfo\&}{FloatingSize}{\param{int }{x}, \param{int }{y}}
173
174FloatingSize() sets the size of the floating pane.
175
176\membersection{wxAuiPaneInfo::Gripper}\label{wxauipaneinfogripper}
177
178\func{wxAuiPaneInfo\&}{Gripper}{\param{bool }{visible = true}}
179
180Gripper() indicates that a gripper should be drawn for the pane.
181
182\membersection{wxAuiPaneInfo::GripperTop}\label{wxauipaneinfogrippertop}
183
184\func{wxAuiPaneInfo\&}{GripperTop}{\param{bool }{attop = true}}
185
186GripperTop() indicates that a gripper should be drawn at the top of the pane.
187
188\membersection{wxAuiPaneInfo::HasBorder}\label{wxauipaneinfohasborder}
189
190\constfunc{bool}{HasBorder}{\void}
191
192HasBorder() returns true if the pane displays a border.
193
194\membersection{wxAuiPaneInfo::HasCaption}\label{wxauipaneinfohascaption}
195
196\constfunc{bool}{HasCaption}{\void}
197
198HasCaption() returns true if the pane displays a caption.
199
200\membersection{wxAuiPaneInfo::HasCloseButton}\label{wxauipaneinfohasclosebutton}
201
202\constfunc{bool}{HasCloseButton}{\void}
203
204HasCloseButton() returns true if the pane displays a button to close the pane.
205
206\membersection{wxAuiPaneInfo::HasFlag}\label{wxauipaneinfohasflag}
207
208\constfunc{bool}{HasFlag}{\param{unsigned int }{flag}}
209
210HasFlag() returns true if the the property specified by flag is active for the pane.
211
212\membersection{wxAuiPaneInfo::HasGripper}\label{wxauipaneinfohasgripper}
213
214\constfunc{bool}{HasGripper}{\void}
215
216HasGripper() returns true if the pane displays a gripper.
217
218\membersection{wxAuiPaneInfo::HasGripperTop}\label{wxauipaneinfohasgrippertop}
219
220\constfunc{bool}{HasGripperTop}{\void}
221
222HasGripper() returns true if the pane displays a gripper at the top.
223
224\membersection{wxAuiPaneInfo::HasMaximizeButton}\label{wxauipaneinfohasmaximizebutton}
225
226\constfunc{bool}{HasMaximizeButton}{\void}
227
228HasMaximizeButton() returns true if the pane displays a button to maximize the pane.
229
230\membersection{wxAuiPaneInfo::HasMinimizeButton}\label{wxauipaneinfohasminimizebutton}
231
232\constfunc{bool}{HasMinimizeButton}{\void}
233
234HasMinimizeButton() returns true if the pane displays a button to minimize the pane.
235
236\membersection{wxAuiPaneInfo::HasPinButton}\label{wxauipaneinfohaspinbutton}
237
238\constfunc{bool}{HasPinButton}{\void}
239
240HasPinButton() returns true if the pane displays a button to float the pane.
241
242\membersection{wxAuiPaneInfo::Hide}\label{wxauipaneinfohide}
243
244\func{wxAuiPaneInfo\&}{Hide}{\void}
245
246Hide() indicates that a pane should be hidden.
247
248\membersection{wxAuiPaneInfo::IsBottomDockable}\label{wxauipaneinfoisbottomdockable}
249
250\constfunc{bool}{IsBottomDockable}{\void}
251
252IsBottomDockable() returns true if the pane can be docked at the bottom of the managed frame.
253
254\membersection{wxAuiPaneInfo::IsDocked}\label{wxauipaneinfoisdocked}
255
256\constfunc{bool}{IsDocked}{\void}
257
258IsDocked() returns true if the pane is docked.
259
260\membersection{wxAuiPaneInfo::IsFixed}\label{wxauipaneinfoisfixed}
261
262\constfunc{bool}{IsFixed}{\void}
263
264IsFixed() returns true if the pane cannot be resized.
265
266\membersection{wxAuiPaneInfo::IsFloatable}\label{wxauipaneinfoisfloatable}
267
268\constfunc{bool}{IsFloatable}{\void}
269
270IsFloatable() returns true if the pane can be undocked and displayed as a floating window.
271
272\membersection{wxAuiPaneInfo::IsFloating}\label{wxauipaneinfoisfloating}
273
274\constfunc{bool}{IsFloating}{\void}
275
276IsFloating() returns true if the pane is floating.
277
278\membersection{wxAuiPaneInfo::IsLeftDockable}\label{wxauipaneinfoisleftdockable}
279
280\constfunc{bool}{IsLeftDockable}{\void}
281
282IsLeftDockable() returns true if the pane can be docked on the left of the managed frame.
283
284\membersection{wxAuiPaneInfo::IsMovable}\label{wxauipaneinfoismovable}
285
286\constfunc{bool}{IsMovable}{\void}
287
288IsMoveable() returns true if the docked frame can be undocked or moved to another dock position.
289
290\membersection{wxAuiPaneInfo::IsOk}\label{wxauipaneinfoisok}
291
292\constfunc{bool}{IsOk}{\void}
293
2207fd21 294IsOk() returns true if the wxAuiPaneInfo structure is valid. A pane structure is valid if it has an associated window.
e67635d4
RR
295
296\membersection{wxAuiPaneInfo::IsResizable}\label{wxauipaneinfoisresizable}
297
298\constfunc{bool}{IsResizable}{\void}
299
300IsResizable() returns true if the pane can be resized.
301
302\membersection{wxAuiPaneInfo::IsRightDockable}\label{wxauipaneinfoisrightdockable}
303
304\constfunc{bool}{IsRightDockable}{\void}
305
306IsRightDockable() returns true if the pane can be docked on the right of the managed frame.
307
308\membersection{wxAuiPaneInfo::IsShown}\label{wxauipaneinfoisshown}
309
310\constfunc{bool}{IsShown}{\void}
311
312IsShown() returns true if the pane is currently shown.
313
314\membersection{wxAuiPaneInfo::IsToolbar}\label{wxauipaneinfoistoolbar}
315
316\constfunc{bool}{IsToolbar}{\void}
317
318IsToolbar() returns true if the pane contains a toolbar.
319
320\membersection{wxAuiPaneInfo::IsTopDockable}\label{wxauipaneinfoistopdockable}
321
322\constfunc{bool}{IsTopDockable}{\void}
323
324IsTopDockable() returns true if the pane can be docked at the top of the managed frame.
325
326\membersection{wxAuiPaneInfo::Layer}\label{wxauipaneinfolayer}
327
328\func{wxAuiPaneInfo\&}{Layer}{\param{int }{layer}}
329
2207fd21 330Layer() determines the layer of the docked pane. The dock layer is similar to an onion, the inner-most layer being layer 0. Each shell moving in the outward direction has a higher layer number. This allows for more complex docking layout formation.
e67635d4
RR
331
332\membersection{wxAuiPaneInfo::Left}\label{wxauipaneinfoleft}
333
334\func{wxAuiPaneInfo\&}{Left}{\void}
335
2207fd21 336Left() sets the pane dock position to the left side of the frame. This is the
e2622169 337same thing as calling Direction(wxAUI\_DOCK\_LEFT).
e67635d4
RR
338
339\membersection{wxAuiPaneInfo::LeftDockable}\label{wxauipaneinfoleftdockable}
340
341\func{wxAuiPaneInfo\&}{LeftDockable}{\param{bool }{b = true}}
342
343LeftDockable() indicates whether a pane can be docked on the left of the frame.
344
345\membersection{wxAuiPaneInfo::MaxSize}\label{wxauipaneinfomaxsize}
346
347\func{wxAuiPaneInfo\&}{MaxSize}{\param{const wxSize\& }{size}}
2207fd21 348
e67635d4
RR
349\func{wxAuiPaneInfo\&}{MaxSize}{\param{int }{x}, \param{int }{y}}
350
351MaxSize() sets the maximum size of the pane.
352
353\membersection{wxAuiPaneInfo::MaximizeButton}\label{wxauipaneinfomaximizebutton}
354
355\func{wxAuiPaneInfo\&}{MaximizeButton}{\param{bool }{visible = true}}
356
357MaximizeButton() indicates that a maximize button should be drawn for the pane.
358
359\membersection{wxAuiPaneInfo::MinSize}\label{wxauipaneinfominsize}
360
361\func{wxAuiPaneInfo\&}{MinSize}{\param{const wxSize\& }{size}}
2207fd21 362
e67635d4
RR
363\func{wxAuiPaneInfo\&}{MinSize}{\param{int }{x}, \param{int }{y}}
364
2207fd21 365MinSize() sets the minimum size of the pane. Please note that this is only partially supported as of this writing.
e67635d4
RR
366
367\membersection{wxAuiPaneInfo::MinimizeButton}\label{wxauipaneinfominimizebutton}
368
369\func{wxAuiPaneInfo\&}{MinimizeButton}{\param{bool }{visible = true}}
370
371MinimizeButton() indicates that a minimize button should be drawn for the pane.
372
373\membersection{wxAuiPaneInfo::Movable}\label{wxauipaneinfomovable}
374
375\func{wxAuiPaneInfo\&}{Movable}{\param{bool }{b = true}}
376
377Movable indicates whether a frame can be moved.
378
379\membersection{wxAuiPaneInfo::Name}\label{wxauipaneinfoname}
380
381\func{wxAuiPaneInfo\&}{Name}{\param{const wxString\& }{n}}
382
2207fd21 383Name() sets the name of the pane so it can be referenced in lookup functions. If a name is not specified by the user, a random name is assigned to the pane when it is added to the manager.
e67635d4
RR
384
385\membersection{wxAuiPaneInfo::PaneBorder}\label{wxauipaneinfopaneborder}
386
387\func{wxAuiPaneInfo\&}{PaneBorder}{\param{bool }{visible = true}}
388
389PaneBorder indicates that a border should be drawn for the pane.
390
391\membersection{wxAuiPaneInfo::PinButton}\label{wxauipaneinfopinbutton}
392
393\func{wxAuiPaneInfo\&}{PinButton}{\param{bool }{visible = true}}
394
395PinButton() indicates that a pin button should be drawn for the pane.
396
397\membersection{wxAuiPaneInfo::Position}\label{wxauipaneinfoposition}
398
399\func{wxAuiPaneInfo\&}{Position}{\param{int }{pos}}
400
401Position() determines the position of the docked pane.
402
403\membersection{wxAuiPaneInfo::Resizable}\label{wxauipaneinforesizable}
404
405\func{wxAuiPaneInfo\&}{Resizable}{\param{bool }{resizable = true}}
406
2207fd21 407Resizable() allows a pane to be resized if the parameter is true, and forces it to be a fixed size if the parameter is false. This is simply an antonym for Fixed().
e67635d4
RR
408
409\membersection{wxAuiPaneInfo::Right}\label{wxauipaneinforight}
410
411\func{wxAuiPaneInfo\&}{Right}{\void}
412
413Right() sets the pane dock position to the right side of the frame.
414
415\membersection{wxAuiPaneInfo::RightDockable}\label{wxauipaneinforightdockable}
416
417\func{wxAuiPaneInfo\&}{RightDockable}{\param{bool }{b = true}}
418
419RightDockable() indicates whether a pane can be docked on the right of the frame.
420
421\membersection{wxAuiPaneInfo::Row}\label{wxauipaneinforow}
422
423\func{wxAuiPaneInfo\&}{Row}{\param{int }{row}}
424
425Row() determines the row of the docked pane.
426
427\membersection{wxAuiPaneInfo::SafeSet}\label{wxauipaneinfosafeset}
428
429\func{void}{SafeSet}{\param{wxAuiPaneInfo }{source}}
430
431Write the safe parts of a newly loaded PaneInfo structure "source" into "this"
432used on loading perspectives etc.
433
434\membersection{wxAuiPaneInfo::SetFlag}\label{wxauipaneinfosetflag}
435
436\func{wxAuiPaneInfo\&}{SetFlag}{\param{unsigned int }{flag}, \param{bool }{option\_state}}
437
e2622169 438SetFlag() turns the property given by flag on or off with the option\_state parameter.
e67635d4
RR
439
440\membersection{wxAuiPaneInfo::Show}\label{wxauipaneinfoshow}
441
442\func{wxAuiPaneInfo\&}{Show}{\param{bool }{show = true}}
443
444Show() indicates that a pane should be shown.
445
446\membersection{wxAuiPaneInfo::ToolbarPane}\label{wxauipaneinfotoolbarpane}
447
448\func{wxAuiPaneInfo\&}{ToolbarPane}{\void}
449
450ToolbarPane() specifies that the pane should adopt the default toolbar pane settings.
451
452\membersection{wxAuiPaneInfo::Top}\label{wxauipaneinfotop}
453
454\func{wxAuiPaneInfo\&}{Top}{\void}
455
456Top() sets the pane dock position to the top of the frame.
457
458\membersection{wxAuiPaneInfo::TopDockable}\label{wxauipaneinfotopdockable}
459
460\func{wxAuiPaneInfo\&}{TopDockable}{\param{bool }{b = true}}
461
462TopDockable() indicates whether a pane can be docked at the top of the frame.
463
464\membersection{wxAuiPaneInfo::Window}\label{wxauipaneinfowindow}
465
466\func{wxAuiPaneInfo\&}{Window}{\param{wxWindow* }{w}}
467
2207fd21 468Window() assigns the window pointer that the wxAuiPaneInfo should use. This normally does not need to be specified, as the window pointer is automatically assigned to the wxAuiPaneInfo structure as soon as it is added to the manager.
e67635d4
RR
469
470\membersection{wxAuiPaneInfo::operator=}\label{wxauipaneinfooperatorassign}
471
472\func{wxAuiPaneInfo\& operator}{operator=}{\param{const wxAuiPaneInfo\& }{c}}
473
474Makes a copy of the wxAuiPaneInfo object.
475