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::
\destruct{wxAuiPaneInfo
}}\label{wxauipaneinfodtor
}
52 \func{}{\destruct{wxAuiPaneInfo
}}{\void}
55 \membersection{wxAuiPaneInfo::BestSize
}\label{wxauipaneinfobestsize
}
57 \func{wxAuiPaneInfo\&
}{BestSize
}{\param{const wxSize\&
}{size
}}
58 \func{wxAuiPaneInfo\&
}{BestSize
}{\param{int
}{x
},
\param{int
}{y
}}
60 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.
62 \membersection{wxAuiPaneInfo::Bottom
}\label{wxauipaneinfobottom
}
64 \func{wxAuiPaneInfo\&
}{Bottom
}{\void}
66 Bottom() sets the pane dock position to the bottom side of the frame. This is
67 the same thing as calling Direction(wxAUI
\_DOCK\_BOTTOM).
69 \membersection{wxAuiPaneInfo::BottomDockable
}\label{wxauipaneinfobottomdockable
}
71 \func{wxAuiPaneInfo\&
}{BottomDockable
}{\param{bool
}{b = true
}}
73 BottomDockable() indicates whether a pane can be docked at the bottom of the frame.
75 \membersection{wxAuiPaneInfo::Caption
}\label{wxauipaneinfocaption
}
77 \func{wxAuiPaneInfo\&
}{Caption
}{\param{const wxString\&
}{c
}}
79 Caption() sets the caption of the pane.
81 \membersection{wxAuiPaneInfo::CaptionVisible
}\label{wxauipaneinfocaptionvisible
}
83 \func{wxAuiPaneInfo\&
}{CaptionVisible
}{\param{bool
}{visible = true
}}
85 CaptionVisible indicates that a pane caption should be visible. If false, no pane caption is drawn.
87 \membersection{wxAuiPaneInfo::Centre
}\label{wxauipaneinfocentre
}
89 \func{wxAuiPaneInfo\&
}{Centre
}{\void}
90 \func{wxAuiPaneInfo\&
}{Center
}{\void}
92 Center() sets the pane dock position to the left side of the frame. This is
93 the same thing as calling Direction(wxAUI
\_DOCK\_CENTRE).
95 \membersection{wxAuiPaneInfo::CentrePane
}\label{wxauipaneinfocentrepane
}
97 \func{wxAuiPaneInfo\&
}{CentrePane
}{\void}
98 \func{wxAuiPaneInfo\&
}{CenterPane
}{\void}
100 CentrePane() specifies that the pane should adopt the default centre pane settings.
102 \membersection{wxAuiPaneInfo::Centre
}\label{wxauipaneinfocentre
}
104 \func{wxAuiPaneInfo\&
}{Centre
}{\void}
105 \func{wxAuiPaneInfo\&
}{Center
}{\void}
107 Centre() sets the pane to the center position of the frame. The centre pane is the space in the middle after all border panes (left, top, right, bottom) are subtracted from the layout.
109 \membersection{wxAuiPaneInfo::CentrePane
}\label{wxauipaneinfocentrepane
}
111 \func{wxAuiPaneInfo\&
}{CentrePane
}{\void}
112 \func{wxAuiPaneInfo\&
}{CenterPane
}{\void}
114 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.
116 \membersection{wxAuiPaneInfo::CloseButton
}\label{wxauipaneinfoclosebutton
}
118 \func{wxAuiPaneInfo\&
}{CloseButton
}{\param{bool
}{visible = true
}}
120 CloseButton() indicates that a close button should be drawn for the pane.
122 \membersection{wxAuiPaneInfo::DefaultPane
}\label{wxauipaneinfodefaultpane
}
124 \func{wxAuiPaneInfo\&
}{DefaultPane
}{\void}
126 DefaultPane() specifies that the pane should adopt the default pane settings.
128 \membersection{wxAuiPaneInfo::DestroyOnClose
}\label{wxauipaneinfodestroyonclose
}
130 \func{wxAuiPaneInfo\&
}{DestroyOnClose
}{\param{bool
}{b = true
}}
132 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.
134 \membersection{wxAuiPaneInfo::Direction
}\label{wxauipaneinfodirection
}
136 \func{wxAuiPaneInfo\&
}{Direction
}{\param{int
}{direction
}}
138 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.
140 \membersection{wxAuiPaneInfo::Dock
}\label{wxauipaneinfodock
}
142 \func{wxAuiPaneInfo\&
}{Dock
}{\void}
145 \membersection{wxAuiPaneInfo::Dockable
}\label{wxauipaneinfodockable
}
147 \func{wxAuiPaneInfo\&
}{Dockable
}{\param{bool
}{b = true
}}
149 Dockable() specifies whether a frame can be docked or not. It is the same as specifying TopDockable(b).BottomDockable(b).LeftDockable(b).RightDockable(b).
151 \membersection{wxAuiPaneInfo::Fixed
}\label{wxauipaneinfofixed
}
153 \func{wxAuiPaneInfo\&
}{Fixed
}{\void}
155 Fixed() forces a pane to be fixed size so that it cannot be resized. After calling Fixed(), IsFixed() will return true.
157 \membersection{wxAuiPaneInfo::Float
}\label{wxauipaneinfofloat
}
159 \func{wxAuiPaneInfo\&
}{Float
}{\void}
161 Float() indicates that a pane should be floated.
163 \membersection{wxAuiPaneInfo::Floatable
}\label{wxauipaneinfofloatable
}
165 \func{wxAuiPaneInfo\&
}{Floatable
}{\param{bool
}{b = true
}}
167 Floatable() sets whether the user will be able to undock a pane and turn it into a floating window.
169 \membersection{wxAuiPaneInfo::FloatingPosition
}\label{wxauipaneinfofloatingposition
}
171 \func{wxAuiPaneInfo\&
}{FloatingPosition
}{\param{const wxPoint\&
}{pos
}}
172 \func{wxAuiPaneInfo\&
}{FloatingPosition
}{\param{int
}{x
},
\param{int
}{y
}}
174 FloatingPosition() sets the position of the floating pane.
176 \membersection{wxAuiPaneInfo::FloatingSize
}\label{wxauipaneinfofloatingsize
}
178 \func{wxAuiPaneInfo\&
}{FloatingSize
}{\param{const wxSize\&
}{size
}}
179 \func{wxAuiPaneInfo\&
}{FloatingSize
}{\param{int
}{x
},
\param{int
}{y
}}
181 FloatingSize() sets the size of the floating pane.
183 \membersection{wxAuiPaneInfo::Gripper
}\label{wxauipaneinfogripper
}
185 \func{wxAuiPaneInfo\&
}{Gripper
}{\param{bool
}{visible = true
}}
187 Gripper() indicates that a gripper should be drawn for the pane.
189 \membersection{wxAuiPaneInfo::GripperTop
}\label{wxauipaneinfogrippertop
}
191 \func{wxAuiPaneInfo\&
}{GripperTop
}{\param{bool
}{attop = true
}}
193 GripperTop() indicates that a gripper should be drawn at the top of the pane.
195 \membersection{wxAuiPaneInfo::HasBorder
}\label{wxauipaneinfohasborder
}
197 \constfunc{bool
}{HasBorder
}{\void}
199 HasBorder() returns true if the pane displays a border.
201 \membersection{wxAuiPaneInfo::HasCaption
}\label{wxauipaneinfohascaption
}
203 \constfunc{bool
}{HasCaption
}{\void}
205 HasCaption() returns true if the pane displays a caption.
207 \membersection{wxAuiPaneInfo::HasCloseButton
}\label{wxauipaneinfohasclosebutton
}
209 \constfunc{bool
}{HasCloseButton
}{\void}
211 HasCloseButton() returns true if the pane displays a button to close the pane.
213 \membersection{wxAuiPaneInfo::HasFlag
}\label{wxauipaneinfohasflag
}
215 \constfunc{bool
}{HasFlag
}{\param{unsigned int
}{flag
}}
217 HasFlag() returns true if the the property specified by flag is active for the pane.
219 \membersection{wxAuiPaneInfo::HasGripper
}\label{wxauipaneinfohasgripper
}
221 \constfunc{bool
}{HasGripper
}{\void}
223 HasGripper() returns true if the pane displays a gripper.
225 \membersection{wxAuiPaneInfo::HasGripperTop
}\label{wxauipaneinfohasgrippertop
}
227 \constfunc{bool
}{HasGripperTop
}{\void}
229 HasGripper() returns true if the pane displays a gripper at the top.
231 \membersection{wxAuiPaneInfo::HasMaximizeButton
}\label{wxauipaneinfohasmaximizebutton
}
233 \constfunc{bool
}{HasMaximizeButton
}{\void}
235 HasMaximizeButton() returns true if the pane displays a button to maximize the pane.
237 \membersection{wxAuiPaneInfo::HasMinimizeButton
}\label{wxauipaneinfohasminimizebutton
}
239 \constfunc{bool
}{HasMinimizeButton
}{\void}
241 HasMinimizeButton() returns true if the pane displays a button to minimize the pane.
243 \membersection{wxAuiPaneInfo::HasPinButton
}\label{wxauipaneinfohaspinbutton
}
245 \constfunc{bool
}{HasPinButton
}{\void}
247 HasPinButton() returns true if the pane displays a button to float the pane.
249 \membersection{wxAuiPaneInfo::Hide
}\label{wxauipaneinfohide
}
251 \func{wxAuiPaneInfo\&
}{Hide
}{\void}
253 Hide() indicates that a pane should be hidden.
255 \membersection{wxAuiPaneInfo::IsBottomDockable
}\label{wxauipaneinfoisbottomdockable
}
257 \constfunc{bool
}{IsBottomDockable
}{\void}
259 IsBottomDockable() returns true if the pane can be docked at the bottom of the managed frame.
261 \membersection{wxAuiPaneInfo::IsDocked
}\label{wxauipaneinfoisdocked
}
263 \constfunc{bool
}{IsDocked
}{\void}
265 IsDocked() returns true if the pane is docked.
267 \membersection{wxAuiPaneInfo::IsFixed
}\label{wxauipaneinfoisfixed
}
269 \constfunc{bool
}{IsFixed
}{\void}
271 IsFixed() returns true if the pane cannot be resized.
273 \membersection{wxAuiPaneInfo::IsFloatable
}\label{wxauipaneinfoisfloatable
}
275 \constfunc{bool
}{IsFloatable
}{\void}
277 IsFloatable() returns true if the pane can be undocked and displayed as a floating window.
279 \membersection{wxAuiPaneInfo::IsFloating
}\label{wxauipaneinfoisfloating
}
281 \constfunc{bool
}{IsFloating
}{\void}
283 IsFloating() returns true if the pane is floating.
285 \membersection{wxAuiPaneInfo::IsLeftDockable
}\label{wxauipaneinfoisleftdockable
}
287 \constfunc{bool
}{IsLeftDockable
}{\void}
289 IsLeftDockable() returns true if the pane can be docked on the left of the managed frame.
291 \membersection{wxAuiPaneInfo::IsMovable
}\label{wxauipaneinfoismovable
}
293 \constfunc{bool
}{IsMovable
}{\void}
295 IsMoveable() returns true if the docked frame can be undocked or moved to another dock position.
297 \membersection{wxAuiPaneInfo::IsOk
}\label{wxauipaneinfoisok
}
299 \constfunc{bool
}{IsOk
}{\void}
301 IsOk() returns true if the wxAuiPaneInfo structure is valid. A pane structure is valid if it has an associated window.
303 \membersection{wxAuiPaneInfo::IsResizable
}\label{wxauipaneinfoisresizable
}
305 \constfunc{bool
}{IsResizable
}{\void}
307 IsResizable() returns true if the pane can be resized.
309 \membersection{wxAuiPaneInfo::IsRightDockable
}\label{wxauipaneinfoisrightdockable
}
311 \constfunc{bool
}{IsRightDockable
}{\void}
313 IsRightDockable() returns true if the pane can be docked on the right of the managed frame.
315 \membersection{wxAuiPaneInfo::IsShown
}\label{wxauipaneinfoisshown
}
317 \constfunc{bool
}{IsShown
}{\void}
319 IsShown() returns true if the pane is currently shown.
321 \membersection{wxAuiPaneInfo::IsToolbar
}\label{wxauipaneinfoistoolbar
}
323 \constfunc{bool
}{IsToolbar
}{\void}
325 IsToolbar() returns true if the pane contains a toolbar.
327 \membersection{wxAuiPaneInfo::IsTopDockable
}\label{wxauipaneinfoistopdockable
}
329 \constfunc{bool
}{IsTopDockable
}{\void}
331 IsTopDockable() returns true if the pane can be docked at the top of the managed frame.
333 \membersection{wxAuiPaneInfo::Layer
}\label{wxauipaneinfolayer
}
335 \func{wxAuiPaneInfo\&
}{Layer
}{\param{int
}{layer
}}
337 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.
339 \membersection{wxAuiPaneInfo::Left
}\label{wxauipaneinfoleft
}
341 \func{wxAuiPaneInfo\&
}{Left
}{\void}
343 Left() sets the pane dock position to the left side of the frame. This is the
344 same thing as calling Direction(wxAUI
\_DOCK\_LEFT).
346 \membersection{wxAuiPaneInfo::LeftDockable
}\label{wxauipaneinfoleftdockable
}
348 \func{wxAuiPaneInfo\&
}{LeftDockable
}{\param{bool
}{b = true
}}
350 LeftDockable() indicates whether a pane can be docked on the left of the frame.
352 \membersection{wxAuiPaneInfo::MaxSize
}\label{wxauipaneinfomaxsize
}
354 \func{wxAuiPaneInfo\&
}{MaxSize
}{\param{const wxSize\&
}{size
}}
355 \func{wxAuiPaneInfo\&
}{MaxSize
}{\param{int
}{x
},
\param{int
}{y
}}
357 MaxSize() sets the maximum size of the pane.
359 \membersection{wxAuiPaneInfo::MaximizeButton
}\label{wxauipaneinfomaximizebutton
}
361 \func{wxAuiPaneInfo\&
}{MaximizeButton
}{\param{bool
}{visible = true
}}
363 MaximizeButton() indicates that a maximize button should be drawn for the pane.
365 \membersection{wxAuiPaneInfo::MinSize
}\label{wxauipaneinfominsize
}
367 \func{wxAuiPaneInfo\&
}{MinSize
}{\param{const wxSize\&
}{size
}}
368 \func{wxAuiPaneInfo\&
}{MinSize
}{\param{int
}{x
},
\param{int
}{y
}}
370 MinSize() sets the minimum size of the pane. Please note that this is only partially supported as of this writing.
372 \membersection{wxAuiPaneInfo::MinimizeButton
}\label{wxauipaneinfominimizebutton
}
374 \func{wxAuiPaneInfo\&
}{MinimizeButton
}{\param{bool
}{visible = true
}}
376 MinimizeButton() indicates that a minimize button should be drawn for the pane.
378 \membersection{wxAuiPaneInfo::Movable
}\label{wxauipaneinfomovable
}
380 \func{wxAuiPaneInfo\&
}{Movable
}{\param{bool
}{b = true
}}
382 Movable indicates whether a frame can be moved.
384 \membersection{wxAuiPaneInfo::Name
}\label{wxauipaneinfoname
}
386 \func{wxAuiPaneInfo\&
}{Name
}{\param{const wxString\&
}{n
}}
388 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.
390 \membersection{wxAuiPaneInfo::PaneBorder
}\label{wxauipaneinfopaneborder
}
392 \func{wxAuiPaneInfo\&
}{PaneBorder
}{\param{bool
}{visible = true
}}
394 PaneBorder indicates that a border should be drawn for the pane.
396 \membersection{wxAuiPaneInfo::PinButton
}\label{wxauipaneinfopinbutton
}
398 \func{wxAuiPaneInfo\&
}{PinButton
}{\param{bool
}{visible = true
}}
400 PinButton() indicates that a pin button should be drawn for the pane.
402 \membersection{wxAuiPaneInfo::Position
}\label{wxauipaneinfoposition
}
404 \func{wxAuiPaneInfo\&
}{Position
}{\param{int
}{pos
}}
406 Position() determines the position of the docked pane.
408 \membersection{wxAuiPaneInfo::Resizable
}\label{wxauipaneinforesizable
}
410 \func{wxAuiPaneInfo\&
}{Resizable
}{\param{bool
}{resizable = true
}}
412 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().
414 \membersection{wxAuiPaneInfo::Right
}\label{wxauipaneinforight
}
416 \func{wxAuiPaneInfo\&
}{Right
}{\void}
418 Right() sets the pane dock position to the right side of the frame.
420 \membersection{wxAuiPaneInfo::RightDockable
}\label{wxauipaneinforightdockable
}
422 \func{wxAuiPaneInfo\&
}{RightDockable
}{\param{bool
}{b = true
}}
424 RightDockable() indicates whether a pane can be docked on the right of the frame.
426 \membersection{wxAuiPaneInfo::Row
}\label{wxauipaneinforow
}
428 \func{wxAuiPaneInfo\&
}{Row
}{\param{int
}{row
}}
430 Row() determines the row of the docked pane.
432 \membersection{wxAuiPaneInfo::SafeSet
}\label{wxauipaneinfosafeset
}
434 \func{void
}{SafeSet
}{\param{wxAuiPaneInfo
}{source
}}
436 Write the safe parts of a newly loaded PaneInfo structure "source" into "this"
437 used on loading perspectives etc.
439 \membersection{wxAuiPaneInfo::SetFlag
}\label{wxauipaneinfosetflag
}
441 \func{wxAuiPaneInfo\&
}{SetFlag
}{\param{unsigned int
}{flag
},
\param{bool
}{option
\_state}}
443 SetFlag() turns the property given by flag on or off with the option
\_state parameter.
445 \membersection{wxAuiPaneInfo::Show
}\label{wxauipaneinfoshow
}
447 \func{wxAuiPaneInfo\&
}{Show
}{\param{bool
}{show = true
}}
449 Show() indicates that a pane should be shown.
451 \membersection{wxAuiPaneInfo::ToolbarPane
}\label{wxauipaneinfotoolbarpane
}
453 \func{wxAuiPaneInfo\&
}{ToolbarPane
}{\void}
455 ToolbarPane() specifies that the pane should adopt the default toolbar pane settings.
457 \membersection{wxAuiPaneInfo::Top
}\label{wxauipaneinfotop
}
459 \func{wxAuiPaneInfo\&
}{Top
}{\void}
461 Top() sets the pane dock position to the top of the frame.
463 \membersection{wxAuiPaneInfo::TopDockable
}\label{wxauipaneinfotopdockable
}
465 \func{wxAuiPaneInfo\&
}{TopDockable
}{\param{bool
}{b = true
}}
467 TopDockable() indicates whether a pane can be docked at the top of the frame.
469 \membersection{wxAuiPaneInfo::Window
}\label{wxauipaneinfowindow
}
471 \func{wxAuiPaneInfo\&
}{Window
}{\param{wxWindow*
}{w
}}
473 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.
475 \membersection{wxAuiPaneInfo::operator=
}\label{wxauipaneinfooperatorassign
}
477 \func{wxAuiPaneInfo\& operator
}{operator=
}{\param{const wxAuiPaneInfo\&
}{c
}}
479 Makes a copy of the wxAuiPaneInfo object.