1 \section{\class{wxAuiPaneInfo
}}\label{wxauipaneinfo
}
3 wxAuiPaneInfo is part of the wxAUI class framework.
4 See also
\helpref{wxAUI overview
}{wxauioverview
}.
6 wxAuiPaneInfo specifies all the parameters for a pane.
7 These parameters specify where the pane is on the
8 screen, whether it is docked or floating, or hidden.
9 In addition, these parameters specify the pane's
10 docked position, floating position, preferred size,
11 minimum size, caption text among many other parameters.
13 \wxheading{Derived from
}
17 \wxheading{Include files
}
23 \helpref{wxAuiManager
}{wxauimanager
},
24 \helpref{wxAuiDockArt
}{wxauidockart
}
26 \wxheading{Data structures
}
29 enum wxAuiPaneInsertLevel
31 wxAUI_INSERT_PANE =
0,
37 \latexignore{\rtfignore{\wxheading{Members
}}}
40 \membersection{wxAuiPaneInfo::wxAuiPaneInfo
}\label{wxauipaneinfowxauipaneinfo
}
42 \func{}{wxAuiPaneInfo
}{\void}
46 \func{}{wxAuiPaneInfo
}{\param{const wxAuiPaneInfo\&
}{c
}}
50 \membersection{wxAuiPaneInfo::BestSize
}\label{wxauipaneinfobestsize
}
52 \func{wxAuiPaneInfo\&
}{BestSize
}{\param{const wxSize\&
}{size
}}
54 \func{wxAuiPaneInfo\&
}{BestSize
}{\param{int
}{x
},
\param{int
}{y
}}
56 BestSize() 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.
58 \membersection{wxAuiPaneInfo::Bottom
}\label{wxauipaneinfobottom
}
60 \func{wxAuiPaneInfo\&
}{Bottom
}{\void}
62 Bottom() sets the pane dock position to the bottom side of the frame. This is
63 the same thing as calling Direction(wxAUI
\_DOCK\_BOTTOM).
65 \membersection{wxAuiPaneInfo::BottomDockable
}\label{wxauipaneinfobottomdockable
}
67 \func{wxAuiPaneInfo\&
}{BottomDockable
}{\param{bool
}{b = true
}}
69 BottomDockable() indicates whether a pane can be docked at the bottom of the frame.
71 \membersection{wxAuiPaneInfo::Caption
}\label{wxauipaneinfocaption
}
73 \func{wxAuiPaneInfo\&
}{Caption
}{\param{const wxString\&
}{c
}}
75 Caption() sets the caption of the pane.
77 \membersection{wxAuiPaneInfo::CaptionVisible
}\label{wxauipaneinfocaptionvisible
}
79 \func{wxAuiPaneInfo\&
}{CaptionVisible
}{\param{bool
}{visible = true
}}
81 CaptionVisible indicates that a pane caption should be visible. If false, no pane caption is drawn.
83 \membersection{wxAuiPaneInfo::Centre
}\label{wxauipaneinfocentre
}
85 \func{wxAuiPaneInfo\&
}{Centre
}{\void}
87 \func{wxAuiPaneInfo\&
}{Center
}{\void}
89 Center() sets the pane dock position to the left side of the frame.
90 The centre pane is the space in the middle after all border panes (left, top, right, bottom) are subtracted from the layout.
92 This is the same thing as calling Direction(wxAUI
\_DOCK\_CENTRE).
94 \membersection{wxAuiPaneInfo::CentrePane
}\label{wxauipaneinfocentrepane
}
96 \func{wxAuiPaneInfo\&
}{CentrePane
}{\void}
98 \func{wxAuiPaneInfo\&
}{CenterPane
}{\void}
100 CentrePane() 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.
102 \membersection{wxAuiPaneInfo::CloseButton
}\label{wxauipaneinfoclosebutton
}
104 \func{wxAuiPaneInfo\&
}{CloseButton
}{\param{bool
}{visible = true
}}
106 CloseButton() indicates that a close button should be drawn for the pane.
108 \membersection{wxAuiPaneInfo::DefaultPane
}\label{wxauipaneinfodefaultpane
}
110 \func{wxAuiPaneInfo\&
}{DefaultPane
}{\void}
112 DefaultPane() specifies that the pane should adopt the default pane settings.
114 \membersection{wxAuiPaneInfo::DestroyOnClose
}\label{wxauipaneinfodestroyonclose
}
116 \func{wxAuiPaneInfo\&
}{DestroyOnClose
}{\param{bool
}{b = true
}}
118 DestroyOnClose() 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.
120 \membersection{wxAuiPaneInfo::Direction
}\label{wxauipaneinfodirection
}
122 \func{wxAuiPaneInfo\&
}{Direction
}{\param{int
}{direction
}}
124 Direction() 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.
126 \membersection{wxAuiPaneInfo::Dock
}\label{wxauipaneinfodock
}
128 \func{wxAuiPaneInfo\&
}{Dock
}{\void}
131 \membersection{wxAuiPaneInfo::Dockable
}\label{wxauipaneinfodockable
}
133 \func{wxAuiPaneInfo\&
}{Dockable
}{\param{bool
}{b = true
}}
135 Dockable() specifies whether a frame can be docked or not. It is the same as specifying TopDockable(b).BottomDockable(b).LeftDockable(b).RightDockable(b).
137 \membersection{wxAuiPaneInfo::Fixed
}\label{wxauipaneinfofixed
}
139 \func{wxAuiPaneInfo\&
}{Fixed
}{\void}
141 Fixed() forces a pane to be fixed size so that it cannot be resized. After calling Fixed(), IsFixed() will return true.
143 \membersection{wxAuiPaneInfo::Float
}\label{wxauipaneinfofloat
}
145 \func{wxAuiPaneInfo\&
}{Float
}{\void}
147 Float() indicates that a pane should be floated.
149 \membersection{wxAuiPaneInfo::Floatable
}\label{wxauipaneinfofloatable
}
151 \func{wxAuiPaneInfo\&
}{Floatable
}{\param{bool
}{b = true
}}
153 Floatable() sets whether the user will be able to undock a pane and turn it into a floating window.
155 \membersection{wxAuiPaneInfo::FloatingPosition
}\label{wxauipaneinfofloatingposition
}
157 \func{wxAuiPaneInfo\&
}{FloatingPosition
}{\param{const wxPoint\&
}{pos
}}
159 \func{wxAuiPaneInfo\&
}{FloatingPosition
}{\param{int
}{x
},
\param{int
}{y
}}
161 FloatingPosition() sets the position of the floating pane.
163 \membersection{wxAuiPaneInfo::FloatingSize
}\label{wxauipaneinfofloatingsize
}
165 \func{wxAuiPaneInfo\&
}{FloatingSize
}{\param{const wxSize\&
}{size
}}
167 \func{wxAuiPaneInfo\&
}{FloatingSize
}{\param{int
}{x
},
\param{int
}{y
}}
169 FloatingSize() sets the size of the floating pane.
171 \membersection{wxAuiPaneInfo::Gripper
}\label{wxauipaneinfogripper
}
173 \func{wxAuiPaneInfo\&
}{Gripper
}{\param{bool
}{visible = true
}}
175 Gripper() indicates that a gripper should be drawn for the pane.
177 \membersection{wxAuiPaneInfo::GripperTop
}\label{wxauipaneinfogrippertop
}
179 \func{wxAuiPaneInfo\&
}{GripperTop
}{\param{bool
}{attop = true
}}
181 GripperTop() indicates that a gripper should be drawn at the top of the pane.
183 \membersection{wxAuiPaneInfo::HasBorder
}\label{wxauipaneinfohasborder
}
185 \constfunc{bool
}{HasBorder
}{\void}
187 HasBorder() returns true if the pane displays a border.
189 \membersection{wxAuiPaneInfo::HasCaption
}\label{wxauipaneinfohascaption
}
191 \constfunc{bool
}{HasCaption
}{\void}
193 HasCaption() returns true if the pane displays a caption.
195 \membersection{wxAuiPaneInfo::HasCloseButton
}\label{wxauipaneinfohasclosebutton
}
197 \constfunc{bool
}{HasCloseButton
}{\void}
199 HasCloseButton() returns true if the pane displays a button to close the pane.
201 \membersection{wxAuiPaneInfo::HasFlag
}\label{wxauipaneinfohasflag
}
203 \constfunc{bool
}{HasFlag
}{\param{unsigned int
}{flag
}}
205 HasFlag() returns true if the the property specified by flag is active for the pane.
207 \membersection{wxAuiPaneInfo::HasGripper
}\label{wxauipaneinfohasgripper
}
209 \constfunc{bool
}{HasGripper
}{\void}
211 HasGripper() returns true if the pane displays a gripper.
213 \membersection{wxAuiPaneInfo::HasGripperTop
}\label{wxauipaneinfohasgrippertop
}
215 \constfunc{bool
}{HasGripperTop
}{\void}
217 HasGripper() returns true if the pane displays a gripper at the top.
219 \membersection{wxAuiPaneInfo::HasMaximizeButton
}\label{wxauipaneinfohasmaximizebutton
}
221 \constfunc{bool
}{HasMaximizeButton
}{\void}
223 HasMaximizeButton() returns true if the pane displays a button to maximize the pane.
225 \membersection{wxAuiPaneInfo::HasMinimizeButton
}\label{wxauipaneinfohasminimizebutton
}
227 \constfunc{bool
}{HasMinimizeButton
}{\void}
229 HasMinimizeButton() returns true if the pane displays a button to minimize the pane.
231 \membersection{wxAuiPaneInfo::HasPinButton
}\label{wxauipaneinfohaspinbutton
}
233 \constfunc{bool
}{HasPinButton
}{\void}
235 HasPinButton() returns true if the pane displays a button to float the pane.
237 \membersection{wxAuiPaneInfo::Hide
}\label{wxauipaneinfohide
}
239 \func{wxAuiPaneInfo\&
}{Hide
}{\void}
241 Hide() indicates that a pane should be hidden.
243 \membersection{wxAuiPaneInfo::IsBottomDockable
}\label{wxauipaneinfoisbottomdockable
}
245 \constfunc{bool
}{IsBottomDockable
}{\void}
247 IsBottomDockable() returns true if the pane can be docked at the bottom of the managed frame.
249 \membersection{wxAuiPaneInfo::IsDocked
}\label{wxauipaneinfoisdocked
}
251 \constfunc{bool
}{IsDocked
}{\void}
253 IsDocked() returns true if the pane is docked.
255 \membersection{wxAuiPaneInfo::IsFixed
}\label{wxauipaneinfoisfixed
}
257 \constfunc{bool
}{IsFixed
}{\void}
259 IsFixed() returns true if the pane cannot be resized.
261 \membersection{wxAuiPaneInfo::IsFloatable
}\label{wxauipaneinfoisfloatable
}
263 \constfunc{bool
}{IsFloatable
}{\void}
265 IsFloatable() returns true if the pane can be undocked and displayed as a floating window.
267 \membersection{wxAuiPaneInfo::IsFloating
}\label{wxauipaneinfoisfloating
}
269 \constfunc{bool
}{IsFloating
}{\void}
271 IsFloating() returns true if the pane is floating.
273 \membersection{wxAuiPaneInfo::IsLeftDockable
}\label{wxauipaneinfoisleftdockable
}
275 \constfunc{bool
}{IsLeftDockable
}{\void}
277 IsLeftDockable() returns true if the pane can be docked on the left of the managed frame.
279 \membersection{wxAuiPaneInfo::IsMovable
}\label{wxauipaneinfoismovable
}
281 \constfunc{bool
}{IsMovable
}{\void}
283 IsMoveable() returns true if the docked frame can be undocked or moved to another dock position.
285 \membersection{wxAuiPaneInfo::IsOk
}\label{wxauipaneinfoisok
}
287 \constfunc{bool
}{IsOk
}{\void}
289 IsOk() returns true if the wxAuiPaneInfo structure is valid. A pane structure is valid if it has an associated window.
291 \membersection{wxAuiPaneInfo::IsResizable
}\label{wxauipaneinfoisresizable
}
293 \constfunc{bool
}{IsResizable
}{\void}
295 IsResizable() returns true if the pane can be resized.
297 \membersection{wxAuiPaneInfo::IsRightDockable
}\label{wxauipaneinfoisrightdockable
}
299 \constfunc{bool
}{IsRightDockable
}{\void}
301 IsRightDockable() returns true if the pane can be docked on the right of the managed frame.
303 \membersection{wxAuiPaneInfo::IsShown
}\label{wxauipaneinfoisshown
}
305 \constfunc{bool
}{IsShown
}{\void}
307 IsShown() returns true if the pane is currently shown.
309 \membersection{wxAuiPaneInfo::IsToolbar
}\label{wxauipaneinfoistoolbar
}
311 \constfunc{bool
}{IsToolbar
}{\void}
313 IsToolbar() returns true if the pane contains a toolbar.
315 \membersection{wxAuiPaneInfo::IsTopDockable
}\label{wxauipaneinfoistopdockable
}
317 \constfunc{bool
}{IsTopDockable
}{\void}
319 IsTopDockable() returns true if the pane can be docked at the top of the managed frame.
321 \membersection{wxAuiPaneInfo::Layer
}\label{wxauipaneinfolayer
}
323 \func{wxAuiPaneInfo\&
}{Layer
}{\param{int
}{layer
}}
325 Layer() 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.
327 \membersection{wxAuiPaneInfo::Left
}\label{wxauipaneinfoleft
}
329 \func{wxAuiPaneInfo\&
}{Left
}{\void}
331 Left() sets the pane dock position to the left side of the frame. This is the
332 same thing as calling Direction(wxAUI
\_DOCK\_LEFT).
334 \membersection{wxAuiPaneInfo::LeftDockable
}\label{wxauipaneinfoleftdockable
}
336 \func{wxAuiPaneInfo\&
}{LeftDockable
}{\param{bool
}{b = true
}}
338 LeftDockable() indicates whether a pane can be docked on the left of the frame.
340 \membersection{wxAuiPaneInfo::MaxSize
}\label{wxauipaneinfomaxsize
}
342 \func{wxAuiPaneInfo\&
}{MaxSize
}{\param{const wxSize\&
}{size
}}
344 \func{wxAuiPaneInfo\&
}{MaxSize
}{\param{int
}{x
},
\param{int
}{y
}}
346 MaxSize() sets the maximum size of the pane.
348 \membersection{wxAuiPaneInfo::MaximizeButton
}\label{wxauipaneinfomaximizebutton
}
350 \func{wxAuiPaneInfo\&
}{MaximizeButton
}{\param{bool
}{visible = true
}}
352 MaximizeButton() indicates that a maximize button should be drawn for the pane.
354 \membersection{wxAuiPaneInfo::MinSize
}\label{wxauipaneinfominsize
}
356 \func{wxAuiPaneInfo\&
}{MinSize
}{\param{const wxSize\&
}{size
}}
358 \func{wxAuiPaneInfo\&
}{MinSize
}{\param{int
}{x
},
\param{int
}{y
}}
360 MinSize() sets the minimum size of the pane. Please note that this is only partially supported as of this writing.
362 \membersection{wxAuiPaneInfo::MinimizeButton
}\label{wxauipaneinfominimizebutton
}
364 \func{wxAuiPaneInfo\&
}{MinimizeButton
}{\param{bool
}{visible = true
}}
366 MinimizeButton() indicates that a minimize button should be drawn for the pane.
368 \membersection{wxAuiPaneInfo::Movable
}\label{wxauipaneinfomovable
}
370 \func{wxAuiPaneInfo\&
}{Movable
}{\param{bool
}{b = true
}}
372 Movable indicates whether a frame can be moved.
374 \membersection{wxAuiPaneInfo::Name
}\label{wxauipaneinfoname
}
376 \func{wxAuiPaneInfo\&
}{Name
}{\param{const wxString\&
}{n
}}
378 Name() 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.
380 \membersection{wxAuiPaneInfo::PaneBorder
}\label{wxauipaneinfopaneborder
}
382 \func{wxAuiPaneInfo\&
}{PaneBorder
}{\param{bool
}{visible = true
}}
384 PaneBorder indicates that a border should be drawn for the pane.
386 \membersection{wxAuiPaneInfo::PinButton
}\label{wxauipaneinfopinbutton
}
388 \func{wxAuiPaneInfo\&
}{PinButton
}{\param{bool
}{visible = true
}}
390 PinButton() indicates that a pin button should be drawn for the pane.
392 \membersection{wxAuiPaneInfo::Position
}\label{wxauipaneinfoposition
}
394 \func{wxAuiPaneInfo\&
}{Position
}{\param{int
}{pos
}}
396 Position() determines the position of the docked pane.
398 \membersection{wxAuiPaneInfo::Resizable
}\label{wxauipaneinforesizable
}
400 \func{wxAuiPaneInfo\&
}{Resizable
}{\param{bool
}{resizable = true
}}
402 Resizable() 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().
404 \membersection{wxAuiPaneInfo::Right
}\label{wxauipaneinforight
}
406 \func{wxAuiPaneInfo\&
}{Right
}{\void}
408 Right() sets the pane dock position to the right side of the frame.
410 \membersection{wxAuiPaneInfo::RightDockable
}\label{wxauipaneinforightdockable
}
412 \func{wxAuiPaneInfo\&
}{RightDockable
}{\param{bool
}{b = true
}}
414 RightDockable() indicates whether a pane can be docked on the right of the frame.
416 \membersection{wxAuiPaneInfo::Row
}\label{wxauipaneinforow
}
418 \func{wxAuiPaneInfo\&
}{Row
}{\param{int
}{row
}}
420 Row() determines the row of the docked pane.
422 \membersection{wxAuiPaneInfo::SafeSet
}\label{wxauipaneinfosafeset
}
424 \func{void
}{SafeSet
}{\param{wxAuiPaneInfo
}{source
}}
426 Write the safe parts of a newly loaded PaneInfo structure "source" into "this"
427 used on loading perspectives etc.
429 \membersection{wxAuiPaneInfo::SetFlag
}\label{wxauipaneinfosetflag
}
431 \func{wxAuiPaneInfo\&
}{SetFlag
}{\param{unsigned int
}{flag
},
\param{bool
}{option
\_state}}
433 SetFlag() turns the property given by flag on or off with the option
\_state parameter.
435 \membersection{wxAuiPaneInfo::Show
}\label{wxauipaneinfoshow
}
437 \func{wxAuiPaneInfo\&
}{Show
}{\param{bool
}{show = true
}}
439 Show() indicates that a pane should be shown.
441 \membersection{wxAuiPaneInfo::ToolbarPane
}\label{wxauipaneinfotoolbarpane
}
443 \func{wxAuiPaneInfo\&
}{ToolbarPane
}{\void}
445 ToolbarPane() specifies that the pane should adopt the default toolbar pane settings.
447 \membersection{wxAuiPaneInfo::Top
}\label{wxauipaneinfotop
}
449 \func{wxAuiPaneInfo\&
}{Top
}{\void}
451 Top() sets the pane dock position to the top of the frame.
453 \membersection{wxAuiPaneInfo::TopDockable
}\label{wxauipaneinfotopdockable
}
455 \func{wxAuiPaneInfo\&
}{TopDockable
}{\param{bool
}{b = true
}}
457 TopDockable() indicates whether a pane can be docked at the top of the frame.
459 \membersection{wxAuiPaneInfo::Window
}\label{wxauipaneinfowindow
}
461 \func{wxAuiPaneInfo\&
}{Window
}{\param{wxWindow*
}{w
}}
463 Window() 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.
465 \membersection{wxAuiPaneInfo::operator=
}\label{wxauipaneinfooperatorassign
}
467 \func{wxAuiPaneInfo\& operator
}{operator=
}{\param{const wxAuiPaneInfo\&
}{c
}}
469 Makes a copy of the wxAuiPaneInfo object.