Contents Up Previous Next

wxAuiPaneInfo

wxAuiPaneInfo is part of the wxAUI class framework. See also wxAUI overview.

wxAuiPaneInfo specifies all the parameters for a pane. These parameters specify where the pane is on the screen, whether it is docked or floating, or hidden. In addition, these parameters specify the pane's docked position, floating position, preferred size, minimum size, caption text among many other parameters.

Derived from

No base class

Include files

<wx/aui/aui.h>

See also

wxAuiManager, wxAuiDockArt

Data structures

enum wxAuiPaneInsertLevel
{
    wxAUI_INSERT_PANE = 0,
    wxAUI_INSERT_ROW = 1,
    wxAUI_INSERT_DOCK = 2
}
Members

wxAuiPaneInfo::wxAuiPaneInfo
wxAuiPaneInfo::~wxAuiPaneInfo
wxAuiPaneInfo::BestSize
wxAuiPaneInfo::Bottom
wxAuiPaneInfo::BottomDockable
wxAuiPaneInfo::Caption
wxAuiPaneInfo::CaptionVisible
wxAuiPaneInfo::Centre
wxAuiPaneInfo::CentrePane
wxAuiPaneInfo::CloseButton
wxAuiPaneInfo::DefaultPane
wxAuiPaneInfo::DestroyOnClose
wxAuiPaneInfo::Direction
wxAuiPaneInfo::Dock
wxAuiPaneInfo::Dockable
wxAuiPaneInfo::Fixed
wxAuiPaneInfo::Float
wxAuiPaneInfo::Floatable
wxAuiPaneInfo::FloatingPosition
wxAuiPaneInfo::FloatingSize
wxAuiPaneInfo::Gripper
wxAuiPaneInfo::GripperTop
wxAuiPaneInfo::HasBorder
wxAuiPaneInfo::HasCaption
wxAuiPaneInfo::HasCloseButton
wxAuiPaneInfo::HasFlag
wxAuiPaneInfo::HasGripper
wxAuiPaneInfo::HasGripperTop
wxAuiPaneInfo::HasMaximizeButton
wxAuiPaneInfo::HasMinimizeButton
wxAuiPaneInfo::HasPinButton
wxAuiPaneInfo::Hide
wxAuiPaneInfo::IsBottomDockable
wxAuiPaneInfo::IsDocked
wxAuiPaneInfo::IsFixed
wxAuiPaneInfo::IsFloatable
wxAuiPaneInfo::IsFloating
wxAuiPaneInfo::IsLeftDockable
wxAuiPaneInfo::IsMovable
wxAuiPaneInfo::IsOk
wxAuiPaneInfo::IsResizable
wxAuiPaneInfo::IsRightDockable
wxAuiPaneInfo::IsShown
wxAuiPaneInfo::IsToolbar
wxAuiPaneInfo::IsTopDockable
wxAuiPaneInfo::Layer
wxAuiPaneInfo::Left
wxAuiPaneInfo::LeftDockable
wxAuiPaneInfo::MaxSize
wxAuiPaneInfo::MaximizeButton
wxAuiPaneInfo::MinSize
wxAuiPaneInfo::MinimizeButton
wxAuiPaneInfo::Movable
wxAuiPaneInfo::Name
wxAuiPaneInfo::PaneBorder
wxAuiPaneInfo::PinButton
wxAuiPaneInfo::Position
wxAuiPaneInfo::Resizable
wxAuiPaneInfo::Right
wxAuiPaneInfo::RightDockable
wxAuiPaneInfo::Row
wxAuiPaneInfo::SafeSet
wxAuiPaneInfo::SetFlag
wxAuiPaneInfo::Show
wxAuiPaneInfo::ToolbarPane
wxAuiPaneInfo::Top
wxAuiPaneInfo::TopDockable
wxAuiPaneInfo::Window
wxAuiPaneInfo::operator=


wxAuiPaneInfo::wxAuiPaneInfo

wxAuiPaneInfo()

Default constructor.

wxAuiPaneInfo(const wxAuiPaneInfo& c)

Copy constructor.


wxAuiPaneInfo::~wxAuiPaneInfo

~wxAuiPaneInfo()


wxAuiPaneInfo::BestSize

wxAuiPaneInfo& BestSize(const wxSize& size)

wxAuiPaneInfo& BestSize(int x, int y)

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.


wxAuiPaneInfo::Bottom

wxAuiPaneInfo& Bottom()

Bottom() sets the pane dock position to the bottom side of the frame. This is the same thing as calling Direction(wxAUI_DOCK_BOTTOM).


wxAuiPaneInfo::BottomDockable

wxAuiPaneInfo& BottomDockable(bool b = true)

BottomDockable() indicates whether a pane can be docked at the bottom of the frame.


wxAuiPaneInfo::Caption

wxAuiPaneInfo& Caption(const wxString& c)

Caption() sets the caption of the pane.


wxAuiPaneInfo::CaptionVisible

wxAuiPaneInfo& CaptionVisible(bool visible = true)

CaptionVisible indicates that a pane caption should be visible. If false, no pane caption is drawn.


wxAuiPaneInfo::Centre

wxAuiPaneInfo& Centre()

wxAuiPaneInfo& Center()

Center() sets the pane dock position to the left side 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.

This is the same thing as calling Direction(wxAUI_DOCK_CENTRE).


wxAuiPaneInfo::CentrePane

wxAuiPaneInfo& CentrePane()

wxAuiPaneInfo& CenterPane()

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.


wxAuiPaneInfo::CloseButton

wxAuiPaneInfo& CloseButton(bool visible = true)

CloseButton() indicates that a close button should be drawn for the pane.


wxAuiPaneInfo::DefaultPane

wxAuiPaneInfo& DefaultPane()

DefaultPane() specifies that the pane should adopt the default pane settings.


wxAuiPaneInfo::DestroyOnClose

wxAuiPaneInfo& DestroyOnClose(bool b = true)

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.


wxAuiPaneInfo::Direction

wxAuiPaneInfo& Direction(int direction)

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.


wxAuiPaneInfo::Dock

wxAuiPaneInfo& Dock()


wxAuiPaneInfo::Dockable

wxAuiPaneInfo& Dockable(bool b = true)

Dockable() specifies whether a frame can be docked or not. It is the same as specifying TopDockable(b).BottomDockable(b).LeftDockable(b).RightDockable(b).


wxAuiPaneInfo::Fixed

wxAuiPaneInfo& Fixed()

Fixed() forces a pane to be fixed size so that it cannot be resized. After calling Fixed(), IsFixed() will return true.


wxAuiPaneInfo::Float

wxAuiPaneInfo& Float()

Float() indicates that a pane should be floated.


wxAuiPaneInfo::Floatable

wxAuiPaneInfo& Floatable(bool b = true)

Floatable() sets whether the user will be able to undock a pane and turn it into a floating window.


wxAuiPaneInfo::FloatingPosition

wxAuiPaneInfo& FloatingPosition(const wxPoint& pos)

wxAuiPaneInfo& FloatingPosition(int x, int y)

FloatingPosition() sets the position of the floating pane.


wxAuiPaneInfo::FloatingSize

wxAuiPaneInfo& FloatingSize(const wxSize& size)

wxAuiPaneInfo& FloatingSize(int x, int y)

FloatingSize() sets the size of the floating pane.


wxAuiPaneInfo::Gripper

wxAuiPaneInfo& Gripper(bool visible = true)

Gripper() indicates that a gripper should be drawn for the pane.


wxAuiPaneInfo::GripperTop

wxAuiPaneInfo& GripperTop(bool attop = true)

GripperTop() indicates that a gripper should be drawn at the top of the pane.


wxAuiPaneInfo::HasBorder

bool HasBorder() const

HasBorder() returns true if the pane displays a border.


wxAuiPaneInfo::HasCaption

bool HasCaption() const

HasCaption() returns true if the pane displays a caption.


wxAuiPaneInfo::HasCloseButton

bool HasCloseButton() const

HasCloseButton() returns true if the pane displays a button to close the pane.


wxAuiPaneInfo::HasFlag

bool HasFlag(unsigned int flag) const

HasFlag() returns true if the the property specified by flag is active for the pane.


wxAuiPaneInfo::HasGripper

bool HasGripper() const

HasGripper() returns true if the pane displays a gripper.


wxAuiPaneInfo::HasGripperTop

bool HasGripperTop() const

HasGripper() returns true if the pane displays a gripper at the top.


wxAuiPaneInfo::HasMaximizeButton

bool HasMaximizeButton() const

HasMaximizeButton() returns true if the pane displays a button to maximize the pane.


wxAuiPaneInfo::HasMinimizeButton

bool HasMinimizeButton() const

HasMinimizeButton() returns true if the pane displays a button to minimize the pane.


wxAuiPaneInfo::HasPinButton

bool HasPinButton() const

HasPinButton() returns true if the pane displays a button to float the pane.


wxAuiPaneInfo::Hide

wxAuiPaneInfo& Hide()

Hide() indicates that a pane should be hidden.


wxAuiPaneInfo::IsBottomDockable

bool IsBottomDockable() const

IsBottomDockable() returns true if the pane can be docked at the bottom of the managed frame.


wxAuiPaneInfo::IsDocked

bool IsDocked() const

IsDocked() returns true if the pane is docked.


wxAuiPaneInfo::IsFixed

bool IsFixed() const

IsFixed() returns true if the pane cannot be resized.


wxAuiPaneInfo::IsFloatable

bool IsFloatable() const

IsFloatable() returns true if the pane can be undocked and displayed as a floating window.


wxAuiPaneInfo::IsFloating

bool IsFloating() const

IsFloating() returns true if the pane is floating.


wxAuiPaneInfo::IsLeftDockable

bool IsLeftDockable() const

IsLeftDockable() returns true if the pane can be docked on the left of the managed frame.


wxAuiPaneInfo::IsMovable

bool IsMovable() const

IsMoveable() returns true if the docked frame can be undocked or moved to another dock position.


wxAuiPaneInfo::IsOk

bool IsOk() const

IsOk() returns true if the wxAuiPaneInfo structure is valid. A pane structure is valid if it has an associated window.


wxAuiPaneInfo::IsResizable

bool IsResizable() const

IsResizable() returns true if the pane can be resized.


wxAuiPaneInfo::IsRightDockable

bool IsRightDockable() const

IsRightDockable() returns true if the pane can be docked on the right of the managed frame.


wxAuiPaneInfo::IsShown

bool IsShown() const

IsShown() returns true if the pane is currently shown.


wxAuiPaneInfo::IsToolbar

bool IsToolbar() const

IsToolbar() returns true if the pane contains a toolbar.


wxAuiPaneInfo::IsTopDockable

bool IsTopDockable() const

IsTopDockable() returns true if the pane can be docked at the top of the managed frame.


wxAuiPaneInfo::Layer

wxAuiPaneInfo& Layer(int layer)

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.


wxAuiPaneInfo::Left

wxAuiPaneInfo& Left()

Left() sets the pane dock position to the left side of the frame. This is the same thing as calling Direction(wxAUI_DOCK_LEFT).


wxAuiPaneInfo::LeftDockable

wxAuiPaneInfo& LeftDockable(bool b = true)

LeftDockable() indicates whether a pane can be docked on the left of the frame.


wxAuiPaneInfo::MaxSize

wxAuiPaneInfo& MaxSize(const wxSize& size)

wxAuiPaneInfo& MaxSize(int x, int y)

MaxSize() sets the maximum size of the pane.


wxAuiPaneInfo::MaximizeButton

wxAuiPaneInfo& MaximizeButton(bool visible = true)

MaximizeButton() indicates that a maximize button should be drawn for the pane.


wxAuiPaneInfo::MinSize

wxAuiPaneInfo& MinSize(const wxSize& size)

wxAuiPaneInfo& MinSize(int x, int y)

MinSize() sets the minimum size of the pane. Please note that this is only partially supported as of this writing.


wxAuiPaneInfo::MinimizeButton

wxAuiPaneInfo& MinimizeButton(bool visible = true)

MinimizeButton() indicates that a minimize button should be drawn for the pane.


wxAuiPaneInfo::Movable

wxAuiPaneInfo& Movable(bool b = true)

Movable indicates whether a frame can be moved.


wxAuiPaneInfo::Name

wxAuiPaneInfo& Name(const wxString& n)

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.


wxAuiPaneInfo::PaneBorder

wxAuiPaneInfo& PaneBorder(bool visible = true)

PaneBorder indicates that a border should be drawn for the pane.


wxAuiPaneInfo::PinButton

wxAuiPaneInfo& PinButton(bool visible = true)

PinButton() indicates that a pin button should be drawn for the pane.


wxAuiPaneInfo::Position

wxAuiPaneInfo& Position(int pos)

Position() determines the position of the docked pane.


wxAuiPaneInfo::Resizable

wxAuiPaneInfo& Resizable(bool resizable = true)

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().


wxAuiPaneInfo::Right

wxAuiPaneInfo& Right()

Right() sets the pane dock position to the right side of the frame.


wxAuiPaneInfo::RightDockable

wxAuiPaneInfo& RightDockable(bool b = true)

RightDockable() indicates whether a pane can be docked on the right of the frame.


wxAuiPaneInfo::Row

wxAuiPaneInfo& Row(int row)

Row() determines the row of the docked pane.


wxAuiPaneInfo::SafeSet

void SafeSet(wxAuiPaneInfo source)

Write the safe parts of a newly loaded PaneInfo structure "source" into "this" used on loading perspectives etc.


wxAuiPaneInfo::SetFlag

wxAuiPaneInfo& SetFlag(unsigned int flag, bool option_state)

SetFlag() turns the property given by flag on or off with the option_state parameter.


wxAuiPaneInfo::Show

wxAuiPaneInfo& Show(bool show = true)

Show() indicates that a pane should be shown.


wxAuiPaneInfo::ToolbarPane

wxAuiPaneInfo& ToolbarPane()

ToolbarPane() specifies that the pane should adopt the default toolbar pane settings.


wxAuiPaneInfo::Top

wxAuiPaneInfo& Top()

Top() sets the pane dock position to the top of the frame.


wxAuiPaneInfo::TopDockable

wxAuiPaneInfo& TopDockable(bool b = true)

TopDockable() indicates whether a pane can be docked at the top of the frame.


wxAuiPaneInfo::Window

wxAuiPaneInfo& Window(wxWindow* w)

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.


wxAuiPaneInfo::operator=

wxAuiPaneInfo& operator operator=(const wxAuiPaneInfo& c)

Makes a copy of the wxAuiPaneInfo object.