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
}}
59 \func{wxAuiPaneInfo\&
}{BestSize
}{\param{int
}{x
},
\param{int
}{y
}}
61 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.
63 \membersection{wxAuiPaneInfo::Bottom
}\label{wxauipaneinfobottom
}
65 \func{wxAuiPaneInfo\&
}{Bottom
}{\void}
67 Bottom() sets the pane dock position to the bottom side of the frame. This is
68 the same thing as calling Direction(wxAUI
\_DOCK\_BOTTOM).
70 \membersection{wxAuiPaneInfo::BottomDockable
}\label{wxauipaneinfobottomdockable
}
72 \func{wxAuiPaneInfo\&
}{BottomDockable
}{\param{bool
}{b = true
}}
74 BottomDockable() indicates whether a pane can be docked at the bottom of the frame.
76 \membersection{wxAuiPaneInfo::Caption
}\label{wxauipaneinfocaption
}
78 \func{wxAuiPaneInfo\&
}{Caption
}{\param{const wxString\&
}{c
}}
80 Caption() sets the caption of the pane.
82 \membersection{wxAuiPaneInfo::CaptionVisible
}\label{wxauipaneinfocaptionvisible
}
84 \func{wxAuiPaneInfo\&
}{CaptionVisible
}{\param{bool
}{visible = true
}}
86 CaptionVisible indicates that a pane caption should be visible. If false, no pane caption is drawn.
88 \membersection{wxAuiPaneInfo::Centre
}\label{wxauipaneinfocentre
}
90 \func{wxAuiPaneInfo\&
}{Centre
}{\void}
92 \func{wxAuiPaneInfo\&
}{Center
}{\void}
94 Center() sets the pane dock position to the left side of the frame.
95 The centre pane is the space in the middle after all border panes (left, top, right, bottom) are subtracted from the layout.
97 This is the same thing as calling Direction(wxAUI
\_DOCK\_CENTRE).
99 \membersection{wxAuiPaneInfo::CentrePane
}\label{wxauipaneinfocentrepane
}
101 \func{wxAuiPaneInfo\&
}{CentrePane
}{\void}
103 \func{wxAuiPaneInfo\&
}{CenterPane
}{\void}
105 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.
107 \membersection{wxAuiPaneInfo::CloseButton
}\label{wxauipaneinfoclosebutton
}
109 \func{wxAuiPaneInfo\&
}{CloseButton
}{\param{bool
}{visible = true
}}
111 CloseButton() indicates that a close button should be drawn for the pane.
113 \membersection{wxAuiPaneInfo::DefaultPane
}\label{wxauipaneinfodefaultpane
}
115 \func{wxAuiPaneInfo\&
}{DefaultPane
}{\void}
117 DefaultPane() specifies that the pane should adopt the default pane settings.
119 \membersection{wxAuiPaneInfo::DestroyOnClose
}\label{wxauipaneinfodestroyonclose
}
121 \func{wxAuiPaneInfo\&
}{DestroyOnClose
}{\param{bool
}{b = true
}}
123 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.
125 \membersection{wxAuiPaneInfo::Direction
}\label{wxauipaneinfodirection
}
127 \func{wxAuiPaneInfo\&
}{Direction
}{\param{int
}{direction
}}
129 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.
131 \membersection{wxAuiPaneInfo::Dock
}\label{wxauipaneinfodock
}
133 \func{wxAuiPaneInfo\&
}{Dock
}{\void}
136 \membersection{wxAuiPaneInfo::Dockable
}\label{wxauipaneinfodockable
}
138 \func{wxAuiPaneInfo\&
}{Dockable
}{\param{bool
}{b = true
}}
140 Dockable() specifies whether a frame can be docked or not. It is the same as specifying TopDockable(b).BottomDockable(b).LeftDockable(b).RightDockable(b).
142 \membersection{wxAuiPaneInfo::Fixed
}\label{wxauipaneinfofixed
}
144 \func{wxAuiPaneInfo\&
}{Fixed
}{\void}
146 Fixed() forces a pane to be fixed size so that it cannot be resized. After calling Fixed(), IsFixed() will return true.
148 \membersection{wxAuiPaneInfo::Float
}\label{wxauipaneinfofloat
}
150 \func{wxAuiPaneInfo\&
}{Float
}{\void}
152 Float() indicates that a pane should be floated.
154 \membersection{wxAuiPaneInfo::Floatable
}\label{wxauipaneinfofloatable
}
156 \func{wxAuiPaneInfo\&
}{Floatable
}{\param{bool
}{b = true
}}
158 Floatable() sets whether the user will be able to undock a pane and turn it into a floating window.
160 \membersection{wxAuiPaneInfo::FloatingPosition
}\label{wxauipaneinfofloatingposition
}
162 \func{wxAuiPaneInfo\&
}{FloatingPosition
}{\param{const wxPoint\&
}{pos
}}
164 \func{wxAuiPaneInfo\&
}{FloatingPosition
}{\param{int
}{x
},
\param{int
}{y
}}
166 FloatingPosition() sets the position of the floating pane.
168 \membersection{wxAuiPaneInfo::FloatingSize
}\label{wxauipaneinfofloatingsize
}
170 \func{wxAuiPaneInfo\&
}{FloatingSize
}{\param{const wxSize\&
}{size
}}
172 \func{wxAuiPaneInfo\&
}{FloatingSize
}{\param{int
}{x
},
\param{int
}{y
}}
174 FloatingSize() sets the size of the floating pane.
176 \membersection{wxAuiPaneInfo::Gripper
}\label{wxauipaneinfogripper
}
178 \func{wxAuiPaneInfo\&
}{Gripper
}{\param{bool
}{visible = true
}}
180 Gripper() indicates that a gripper should be drawn for the pane.
182 \membersection{wxAuiPaneInfo::GripperTop
}\label{wxauipaneinfogrippertop
}
184 \func{wxAuiPaneInfo\&
}{GripperTop
}{\param{bool
}{attop = true
}}
186 GripperTop() indicates that a gripper should be drawn at the top of the pane.
188 \membersection{wxAuiPaneInfo::HasBorder
}\label{wxauipaneinfohasborder
}
190 \constfunc{bool
}{HasBorder
}{\void}
192 HasBorder() returns true if the pane displays a border.
194 \membersection{wxAuiPaneInfo::HasCaption
}\label{wxauipaneinfohascaption
}
196 \constfunc{bool
}{HasCaption
}{\void}
198 HasCaption() returns true if the pane displays a caption.
200 \membersection{wxAuiPaneInfo::HasCloseButton
}\label{wxauipaneinfohasclosebutton
}
202 \constfunc{bool
}{HasCloseButton
}{\void}
204 HasCloseButton() returns true if the pane displays a button to close the pane.
206 \membersection{wxAuiPaneInfo::HasFlag
}\label{wxauipaneinfohasflag
}
208 \constfunc{bool
}{HasFlag
}{\param{unsigned int
}{flag
}}
210 HasFlag() returns true if the the property specified by flag is active for the pane.
212 \membersection{wxAuiPaneInfo::HasGripper
}\label{wxauipaneinfohasgripper
}
214 \constfunc{bool
}{HasGripper
}{\void}
216 HasGripper() returns true if the pane displays a gripper.
218 \membersection{wxAuiPaneInfo::HasGripperTop
}\label{wxauipaneinfohasgrippertop
}
220 \constfunc{bool
}{HasGripperTop
}{\void}
222 HasGripper() returns true if the pane displays a gripper at the top.
224 \membersection{wxAuiPaneInfo::HasMaximizeButton
}\label{wxauipaneinfohasmaximizebutton
}
226 \constfunc{bool
}{HasMaximizeButton
}{\void}
228 HasMaximizeButton() returns true if the pane displays a button to maximize the pane.
230 \membersection{wxAuiPaneInfo::HasMinimizeButton
}\label{wxauipaneinfohasminimizebutton
}
232 \constfunc{bool
}{HasMinimizeButton
}{\void}
234 HasMinimizeButton() returns true if the pane displays a button to minimize the pane.
236 \membersection{wxAuiPaneInfo::HasPinButton
}\label{wxauipaneinfohaspinbutton
}
238 \constfunc{bool
}{HasPinButton
}{\void}
240 HasPinButton() returns true if the pane displays a button to float the pane.
242 \membersection{wxAuiPaneInfo::Hide
}\label{wxauipaneinfohide
}
244 \func{wxAuiPaneInfo\&
}{Hide
}{\void}
246 Hide() indicates that a pane should be hidden.
248 \membersection{wxAuiPaneInfo::IsBottomDockable
}\label{wxauipaneinfoisbottomdockable
}
250 \constfunc{bool
}{IsBottomDockable
}{\void}
252 IsBottomDockable() returns true if the pane can be docked at the bottom of the managed frame.
254 \membersection{wxAuiPaneInfo::IsDocked
}\label{wxauipaneinfoisdocked
}
256 \constfunc{bool
}{IsDocked
}{\void}
258 IsDocked() returns true if the pane is docked.
260 \membersection{wxAuiPaneInfo::IsFixed
}\label{wxauipaneinfoisfixed
}
262 \constfunc{bool
}{IsFixed
}{\void}
264 IsFixed() returns true if the pane cannot be resized.
266 \membersection{wxAuiPaneInfo::IsFloatable
}\label{wxauipaneinfoisfloatable
}
268 \constfunc{bool
}{IsFloatable
}{\void}
270 IsFloatable() returns true if the pane can be undocked and displayed as a floating window.
272 \membersection{wxAuiPaneInfo::IsFloating
}\label{wxauipaneinfoisfloating
}
274 \constfunc{bool
}{IsFloating
}{\void}
276 IsFloating() returns true if the pane is floating.
278 \membersection{wxAuiPaneInfo::IsLeftDockable
}\label{wxauipaneinfoisleftdockable
}
280 \constfunc{bool
}{IsLeftDockable
}{\void}
282 IsLeftDockable() returns true if the pane can be docked on the left of the managed frame.
284 \membersection{wxAuiPaneInfo::IsMovable
}\label{wxauipaneinfoismovable
}
286 \constfunc{bool
}{IsMovable
}{\void}
288 IsMoveable() returns true if the docked frame can be undocked or moved to another dock position.
290 \membersection{wxAuiPaneInfo::IsOk
}\label{wxauipaneinfoisok
}
292 \constfunc{bool
}{IsOk
}{\void}
294 IsOk() returns true if the wxAuiPaneInfo structure is valid. A pane structure is valid if it has an associated window.
296 \membersection{wxAuiPaneInfo::IsResizable
}\label{wxauipaneinfoisresizable
}
298 \constfunc{bool
}{IsResizable
}{\void}
300 IsResizable() returns true if the pane can be resized.
302 \membersection{wxAuiPaneInfo::IsRightDockable
}\label{wxauipaneinfoisrightdockable
}
304 \constfunc{bool
}{IsRightDockable
}{\void}
306 IsRightDockable() returns true if the pane can be docked on the right of the managed frame.
308 \membersection{wxAuiPaneInfo::IsShown
}\label{wxauipaneinfoisshown
}
310 \constfunc{bool
}{IsShown
}{\void}
312 IsShown() returns true if the pane is currently shown.
314 \membersection{wxAuiPaneInfo::IsToolbar
}\label{wxauipaneinfoistoolbar
}
316 \constfunc{bool
}{IsToolbar
}{\void}
318 IsToolbar() returns true if the pane contains a toolbar.
320 \membersection{wxAuiPaneInfo::IsTopDockable
}\label{wxauipaneinfoistopdockable
}
322 \constfunc{bool
}{IsTopDockable
}{\void}
324 IsTopDockable() returns true if the pane can be docked at the top of the managed frame.
326 \membersection{wxAuiPaneInfo::Layer
}\label{wxauipaneinfolayer
}
328 \func{wxAuiPaneInfo\&
}{Layer
}{\param{int
}{layer
}}
330 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.
332 \membersection{wxAuiPaneInfo::Left
}\label{wxauipaneinfoleft
}
334 \func{wxAuiPaneInfo\&
}{Left
}{\void}
336 Left() sets the pane dock position to the left side of the frame. This is the
337 same thing as calling Direction(wxAUI
\_DOCK\_LEFT).
339 \membersection{wxAuiPaneInfo::LeftDockable
}\label{wxauipaneinfoleftdockable
}
341 \func{wxAuiPaneInfo\&
}{LeftDockable
}{\param{bool
}{b = true
}}
343 LeftDockable() indicates whether a pane can be docked on the left of the frame.
345 \membersection{wxAuiPaneInfo::MaxSize
}\label{wxauipaneinfomaxsize
}
347 \func{wxAuiPaneInfo\&
}{MaxSize
}{\param{const wxSize\&
}{size
}}
349 \func{wxAuiPaneInfo\&
}{MaxSize
}{\param{int
}{x
},
\param{int
}{y
}}
351 MaxSize() sets the maximum size of the pane.
353 \membersection{wxAuiPaneInfo::MaximizeButton
}\label{wxauipaneinfomaximizebutton
}
355 \func{wxAuiPaneInfo\&
}{MaximizeButton
}{\param{bool
}{visible = true
}}
357 MaximizeButton() indicates that a maximize button should be drawn for the pane.
359 \membersection{wxAuiPaneInfo::MinSize
}\label{wxauipaneinfominsize
}
361 \func{wxAuiPaneInfo\&
}{MinSize
}{\param{const wxSize\&
}{size
}}
363 \func{wxAuiPaneInfo\&
}{MinSize
}{\param{int
}{x
},
\param{int
}{y
}}
365 MinSize() sets the minimum size of the pane. Please note that this is only partially supported as of this writing.
367 \membersection{wxAuiPaneInfo::MinimizeButton
}\label{wxauipaneinfominimizebutton
}
369 \func{wxAuiPaneInfo\&
}{MinimizeButton
}{\param{bool
}{visible = true
}}
371 MinimizeButton() indicates that a minimize button should be drawn for the pane.
373 \membersection{wxAuiPaneInfo::Movable
}\label{wxauipaneinfomovable
}
375 \func{wxAuiPaneInfo\&
}{Movable
}{\param{bool
}{b = true
}}
377 Movable indicates whether a frame can be moved.
379 \membersection{wxAuiPaneInfo::Name
}\label{wxauipaneinfoname
}
381 \func{wxAuiPaneInfo\&
}{Name
}{\param{const wxString\&
}{n
}}
383 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.
385 \membersection{wxAuiPaneInfo::PaneBorder
}\label{wxauipaneinfopaneborder
}
387 \func{wxAuiPaneInfo\&
}{PaneBorder
}{\param{bool
}{visible = true
}}
389 PaneBorder indicates that a border should be drawn for the pane.
391 \membersection{wxAuiPaneInfo::PinButton
}\label{wxauipaneinfopinbutton
}
393 \func{wxAuiPaneInfo\&
}{PinButton
}{\param{bool
}{visible = true
}}
395 PinButton() indicates that a pin button should be drawn for the pane.
397 \membersection{wxAuiPaneInfo::Position
}\label{wxauipaneinfoposition
}
399 \func{wxAuiPaneInfo\&
}{Position
}{\param{int
}{pos
}}
401 Position() determines the position of the docked pane.
403 \membersection{wxAuiPaneInfo::Resizable
}\label{wxauipaneinforesizable
}
405 \func{wxAuiPaneInfo\&
}{Resizable
}{\param{bool
}{resizable = true
}}
407 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().
409 \membersection{wxAuiPaneInfo::Right
}\label{wxauipaneinforight
}
411 \func{wxAuiPaneInfo\&
}{Right
}{\void}
413 Right() sets the pane dock position to the right side of the frame.
415 \membersection{wxAuiPaneInfo::RightDockable
}\label{wxauipaneinforightdockable
}
417 \func{wxAuiPaneInfo\&
}{RightDockable
}{\param{bool
}{b = true
}}
419 RightDockable() indicates whether a pane can be docked on the right of the frame.
421 \membersection{wxAuiPaneInfo::Row
}\label{wxauipaneinforow
}
423 \func{wxAuiPaneInfo\&
}{Row
}{\param{int
}{row
}}
425 Row() determines the row of the docked pane.
427 \membersection{wxAuiPaneInfo::SafeSet
}\label{wxauipaneinfosafeset
}
429 \func{void
}{SafeSet
}{\param{wxAuiPaneInfo
}{source
}}
431 Write the safe parts of a newly loaded PaneInfo structure "source" into "this"
432 used on loading perspectives etc.
434 \membersection{wxAuiPaneInfo::SetFlag
}\label{wxauipaneinfosetflag
}
436 \func{wxAuiPaneInfo\&
}{SetFlag
}{\param{unsigned int
}{flag
},
\param{bool
}{option
\_state}}
438 SetFlag() turns the property given by flag on or off with the option
\_state parameter.
440 \membersection{wxAuiPaneInfo::Show
}\label{wxauipaneinfoshow
}
442 \func{wxAuiPaneInfo\&
}{Show
}{\param{bool
}{show = true
}}
444 Show() indicates that a pane should be shown.
446 \membersection{wxAuiPaneInfo::ToolbarPane
}\label{wxauipaneinfotoolbarpane
}
448 \func{wxAuiPaneInfo\&
}{ToolbarPane
}{\void}
450 ToolbarPane() specifies that the pane should adopt the default toolbar pane settings.
452 \membersection{wxAuiPaneInfo::Top
}\label{wxauipaneinfotop
}
454 \func{wxAuiPaneInfo\&
}{Top
}{\void}
456 Top() sets the pane dock position to the top of the frame.
458 \membersection{wxAuiPaneInfo::TopDockable
}\label{wxauipaneinfotopdockable
}
460 \func{wxAuiPaneInfo\&
}{TopDockable
}{\param{bool
}{b = true
}}
462 TopDockable() indicates whether a pane can be docked at the top of the frame.
464 \membersection{wxAuiPaneInfo::Window
}\label{wxauipaneinfowindow
}
466 \func{wxAuiPaneInfo\&
}{Window
}{\param{wxWindow*
}{w
}}
468 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.
470 \membersection{wxAuiPaneInfo::operator=
}\label{wxauipaneinfooperatorassign
}
472 \func{wxAuiPaneInfo\& operator
}{operator=
}{\param{const wxAuiPaneInfo\&
}{c
}}
474 Makes a copy of the wxAuiPaneInfo object.