wxAuiPaneInfo(3erl)
π
wxAuiPaneInfo(3erl) β Erlang Module Definition π
πΈ NAME πΈ
wxAuiPaneInfo β Functions for wxAuiPaneInfo class. Periodt.
β¨ DESCRIPTION β¨
okay so bestie, wxAuiPaneInfo is part of the wxAUI class framework. See also overview_aui. π¦
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. Itβs giving very βpaneβs whole personality in one objectβ energy. π
See: wxAuiManager, wxAuiDockArt
wxWidgets docs: wxAuiPaneInfo
π§ DATA TYPES π§
wxAuiPaneInfo() = wx:wx_object()
π EXPORTS π
new()->wxAuiPaneInfo()new(C)->wxAuiPaneInfo()- Types:
C = wxAuiPaneInfo() - Copy constructor. It copies, bestie. No cap. β¨
- Types:
bestSize(This, Size)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Size = {W :: integer(), H :: integer()} bestSize/3sets 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. π
- Types:
bestSize(This, X, Y)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();X = Y = integer()
- Types:
bottom(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo() bottom/1sets the pane dock position to the bottom side of the frame. This is the same thing as callingDirection(wxAUI_DOCK_BOTTOM). π«Ά
- Types:
bottomDockable(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo()
- Types:
bottomDockable(This, Options :: [Option])->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Option = {b, boolean()} bottomDockable/2indicates whether a pane can be docked at the bottom of the frame. π
- Types:
caption(This, C)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();C = unicode:chardata() caption/2sets the caption of the pane. Cute little nameplate moment. π
- Types:
captionVisible(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo()
- Types:
captionVisible(This, Options :: [Option])->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Option = {visible, boolean()} CaptionVisibleindicates that a pane caption should be visible. If false, no pane caption is drawn. Simple as that. π
- Types:
centre(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo() Center()(not implemented in wx) sets the pane dock position to the left side of the frame. Yep, thatβs what the doc says β keeping it exactly like that, bestie. π- 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). π
- Types:
centrePane(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo() centrePane/1specifies 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. Iconic. β¨
- Types:
closeButton(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo()
- Types:
closeButton(This, Options :: [Option])->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Option = {visible, boolean()} closeButton/2indicates that a close button should be drawn for the pane. X to close, lowkey essential. π
- Types:
defaultPane(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo() defaultPane/1specifies that the pane should adopt the default pane settings. π
- Types:
destroyOnClose(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo()
- Types:
destroyOnClose(This, Options :: [Option])->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Option = {b, boolean()} destroyOnClose/2indicates whether a pane should be destroyed when it is closed. Normally a pane is simply hidden when the close button is clicked. SettingDestroyOnCloseto true will cause the window to be destroyed when the user clicks the pane's close button. So like, actually gone-gone. π«Ά
- Types:
direction(This, Direction)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Direction = integer() direction/2determines the direction of the docked pane. It is functionally the same as callingleft/1,right/1,top/1orbottom/1, except that docking direction may be specified programmatically via the parameter. π¦
- Types:
dock(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo() dock/1indicates that a pane should be docked. It is the opposite offloat/1. Slay, stay put. π
- Types:
dockable(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo()
- Types:
dockable(This, Options :: [Option])->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Option = {b, boolean()} dockable/2specifies whether a frame can be docked or not. It is the same as specifyingTopDockable(b).BottomDockable(b).LeftDockable(b).RightDockable(b). Periodt. π
- Types:
fixed(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo() fixed/1forces a pane to be fixed size so that it cannot be resized. After callingfixed/1,isFixed/1will return true. No resizing, no negotiating. π
- Types:
float(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo() float/1indicates that a pane should be floated. It is the opposite ofdock/1. Main character floating energy. π¦
- Types:
floatable(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo()
- Types:
floatable(This, Options :: [Option])->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Option = {b, boolean()} floatable/2sets whether the user will be able to undock a pane and turn it into a floating window. π
- Types:
floatingPosition(This, Pos)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Pos = {X :: integer(), Y :: integer()} floatingPosition/3sets the position of the floating pane. β¨
- Types:
floatingPosition(This, X, Y)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();X = Y = integer()
- Types:
floatingSize(This, Size)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Size = {W :: integer(), H :: integer()} floatingSize/3sets the size of the floating pane. π
- Types:
floatingSize(This, X, Y)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();X = Y = integer()
- Types:
gripper(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo()
- Types:
gripper(This, Options :: [Option])->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Option = {visible, boolean()} gripper/2indicates that a gripper should be drawn for the pane. Little grabby handle moment. π«Ά
- Types:
gripperTop(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo()
- Types:
gripperTop(This, Options :: [Option])->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo();Option = {attop, boolean()} gripperTop/2indicates that a gripper should be drawn at the top of the pane. β¨
- Types:
hasBorder(This)->boolean()- Types:
This = wxAuiPaneInfo() hasBorder/1returns true if the pane displays a border. π
- Types:
hasCaption(This)->boolean()- Types:
This = wxAuiPaneInfo() hasCaption/1returns true if the pane displays a caption. π
- Types:
hasCloseButton(This)->boolean()- Types:
This = wxAuiPaneInfo() hasCloseButton/1returns true if the pane displays a button to close the pane. π
- Types:
hasFlag(This, Flag)->boolean()- Types:
This = wxAuiPaneInfo();Flag = integer() hasFlag/2returns true if the property specified by flag is active for the pane. π¦
- Types:
hasGripper(This)->boolean()- Types:
This = wxAuiPaneInfo() hasGripper/1returns true if the pane displays a gripper. π«Ά
- Types:
hasGripperTop(This)->boolean()- Types:
This = wxAuiPaneInfo() hasGripper/1returns true if the pane displays a gripper at the top. (Yes, it sayshasGripper/1right there in the original β keeping it exact, bestie.) π
- Types:
hasMaximizeButton(This)->boolean()- Types:
This = wxAuiPaneInfo() hasMaximizeButton/1returns true if the pane displays a button to maximize the pane. π₯
- Types:
hasMinimizeButton(This)->boolean()- Types:
This = wxAuiPaneInfo() hasMinimizeButton/1returns true if the pane displays a button to minimize the pane. π
- Types:
hasPinButton(This)->boolean()- Types:
This = wxAuiPaneInfo() hasPinButton/1returns true if the pane displays a button to float the pane. πβ¨
- Types:
hide(This)->wxAuiPaneInfo()- Types:
This = wxAuiPaneInfo() hide/1indicates that a pane should be hidden. Ghost mode. π
- Types:
isBottomDockable(This)->boolean()- Types:
This = wxAuiPaneInfo() isBottomDockable/1returns true if the pane can be docked at the bottom of the managed frame. See:IsDockable() (not implemented in wx). π¦
- Types:
isDocked(This)->boolean()- Types:
This = wxAuiPaneInfo() isDocked/1returns true if the pane is currently docked. π
- Types:
isFixed(This)->boolean()- Types:
This = wxAuiPaneInfo() isFixed/1returns true if the pane cannot be resized. No cap. π
- Types:
isFloatable(This)->boolean()- Types:
This = wxAuiPaneInfo() isFloatable/1returns true if the pane can be undocked and displayed as a floating window. π¦
- Types:
isFloating(This)->boolean()- Types:
This = wxAuiPaneInfo() isFloating/1returns true if the pane is floating. Main character in the air. β¨
- Types:
isLeftDockable(This)->boolean()- Types:
This = wxAuiPaneInfo() isLeftDockable/1returns true if the pane can be docked on the left of the managed frame. See:IsDockable() (not implemented in wx). πΈ
- Types:
isMovable(This)->boolean()- Types:
This = wxAuiPaneInfo() IsMoveable()returns true if the docked frame can be undocked or moved to another dock position. π«Ά
- Types:
isOk(This)->boolean()- Types:
This = wxAuiPaneInfo()
- Types:
isOk(This) -> boolean()β types:This = wxAuiPaneInfo()
isOk/1 returns true if the wxAuiPaneInfo structure is valid.
And bestie, a pane structure is valid only if it has an associated window. No window, no validity. That's the whole vibe check π
isResizable(This) -> boolean()β types:This = wxAuiPaneInfo()
isResizable/1 returns true if the pane can be resized.
isRightDockable(This) -> boolean()β types:This = wxAuiPaneInfo()
isRightDockable/1 returns true if the pane can be docked on the right of the managed frame.
See: IsDockable() (not implemented in wx) π
isShown(This) -> boolean()β types:This = wxAuiPaneInfo()
isShown/1 returns true if the pane is currently shown.
isToolbar(This) -> boolean()β types:This = wxAuiPaneInfo()
isToolbar/1 returns true if the pane contains a toolbar.
isTopDockable(This) -> boolean()β types:This = wxAuiPaneInfo()
isTopDockable/1 returns true if the pane can be docked at the top of the managed frame.
See: IsDockable() (not implemented in wx) π
layer(This, Layer) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Layer = integer()
layer/2 determines the layer of the docked pane.
Okay so the dock layer is literally an onion π§ β the inner-most layer is layer 0, and every shell moving outward gets a higher layer number. This is what lets you build more complex docking layout formations. Layers of slay, fr.
left(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()
left/1 sets the pane dock position to the left side of the frame.
This is the same thing as calling Direction(wxAUI_DOCK_LEFT).
leftDockable(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()leftDockable(This, Options :: [Option]) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Option = {b, boolean()}
leftDockable/2 indicates whether a pane can be docked on the left of the frame.
maxSize(This, Size) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Size = {W :: integer(), H :: integer()}
maxSize/3 sets the maximum size of the pane.
maxSize(This, X, Y) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),X = Y = integer()maximizeButton(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()maximizeButton(This, Options :: [Option]) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Option = {visible, boolean()}
maximizeButton/2 indicates that a maximize button should be drawn for the pane.
minSize(This, Size) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Size = {W :: integer(), H :: integer()}
minSize/3 sets the minimum size of the pane.
Okay ngl, please note that this is only partially supported as of this writing. Cute in theory, kinda flaky in practice π
minSize(This, X, Y) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),X = Y = integer()minimizeButton(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()minimizeButton(This, Options :: [Option]) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Option = {visible, boolean()}
minimizeButton/2 indicates that a minimize button should be drawn for the pane.
movable(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()movable(This, Options :: [Option]) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Option = {b, boolean()}
Movable indicates whether a frame can be moved.
name(This, N) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),N = unicode:chardata()
name/2 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. Surprise name drop π
paneBorder(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()paneBorder(This, Options :: [Option]) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Option = {visible, boolean()}
PaneBorder indicates that a border should be drawn for the pane.
pinButton(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()pinButton(This, Options :: [Option]) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Option = {visible, boolean()}
pinButton/2 indicates that a pin button should be drawn for the pane.
position(This, Pos) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Pos = integer()
position/2 determines the position of the docked pane.
resizable(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()resizable(This, Options :: [Option]) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Option = {resizable, boolean()}
resizable/2 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/1. They're giving opposites-attract energy π«Ά
right(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()
right/1 sets the pane dock position to the right side of the frame.
This is the same thing as calling Direction(wxAUI_DOCK_RIGHT).
rightDockable(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()rightDockable(This, Options :: [Option]) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Option = {b, boolean()}
rightDockable/2 indicates whether a pane can be docked on the right of the frame.
row(This, Row) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Row = integer()
row/2 determines the row of the docked pane.
safeSet(This, Source) -> okβ types:This = Source = wxAuiPaneInfo()
Write the safe parts of a PaneInfo object "source" into "this".
And what counts as "safe parts"? All the non-UI elements β like, all the layout determining parameters such as the size, position, etc. The "unsafe parts" (pointers to button, frame and window) are not modified by this write operation. They stay exactly where they are, no touchy β
Remark: This method is used when loading perspectives.
setFlag(This, Flag, Option_state) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Flag = integer(),Option_state = boolean()
setFlag/3 turns the property given by flag on or off with the option_state parameter.
show(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()show(This, Options :: [Option]) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Option = {show, boolean()}
show/2 indicates that a pane should be shown.
toolbarPane(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()
toolbarPane/1 specifies that the pane should adopt the default toolbar pane settings.
top(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()
top/1 sets the pane dock position to the top of the frame.
This is the same thing as calling Direction(wxAUI_DOCK_TOP).
topDockable(This) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo()topDockable(This, Options :: [Option]) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),Option = {b, boolean()}
topDockable/2 indicates whether a pane can be docked at the top of the frame.
window(This, W) -> wxAuiPaneInfo()β types:This = wxAuiPaneInfo(),W = wxWindow:wxWindow()
window/2 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. It's basically set-and-forget, iykyk β¨
getWindow(This) -> wxWindow:wxWindow()β types:This = wxAuiPaneInfo()getFrame(This) -> wxFrame:wxFrame()β types:This = wxAuiPaneInfo()getDirection(This) -> integer()β types:This = wxAuiPaneInfo()getLayer(This) -> integer()β types:This = wxAuiPaneInfo()getRow(This) -> integer()β types:This = wxAuiPaneInfo()getPosition(This) -> integer()β types:This = wxAuiPaneInfo()getFloatingPosition(This) -> {X :: integer(), Y :: integer()}β types:This = wxAuiPaneInfo()getFloatingSize(This) -> {W :: integer(), H :: integer()}β types:This = wxAuiPaneInfo()destroy(This :: wxAuiPaneInfo()) -> ok
Destroys the object. Bye bestie, it was iconic πβ¨
And that's a wrap on the whole wxAuiPaneInfo journey! ππ¦ This page came to you courtesy of the wxWidgets team, straight from the wx 2.2.2.1 docs β go forth and dock those panes like the main character you are ππ
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms