Classes
AreaLayout | A layout object for defining a dock area layout. |
DockBarLayout | A layout object for defining a dock bar layout. |
DockLayout | The layout object for defining toplevel dock layouts. |
DockLayoutOp | A sentinel base class for defining dock layout operations. |
DockLayoutValidator | A node visitor which validates a layout. |
DockLayoutWarning | A custom user warning for use with dock layouts. |
ExtendItem | A layout operation which extends an item in a dock bar. |
FloatArea | A layout operation which creates a new floating dock area. |
FloatItem | A layout operation which creates a floating dock item. |
HSplitLayout | A split layout which defaults to ‘horizonal’ orientation. |
InsertItem | A layout operation which inserts an item into a layout. |
InsertBorderItem | A layout operation which inserts an item into an area border. |
InsertDockBarItem | A layout operation which inserts an item into a dock bar. |
InsertTab | A layout operation which inserts a tab into a tab group. |
ItemLayout | A layout object for defining an item layout. |
LayoutNode | A base class for defining layout nodes. |
RemoveItem | A layout operation which will remove an item from the layout. |
RetractItem | A layout operation which retracts an item into a dock bar. |
SplitLayout | A layout object for defining split dock layouts. |
TabLayout | A layout object for defining tabbed dock layouts. |
VSplitLayout | A split layout which defaults to ‘vertical’ orientation. |
Bases: enaml.layout.dock_layout.LayoutNode
A layout object for defining a dock area layout.
The main layout item to include in the area layout.
The dock bar layouts to include in the area layout.
Whether or not the area is floating. A DockLayout should have at most one non-floating area layout.
The geometry to apply to the area. This is expressed in desktop coordinates and only applies if the area is floating.
Whether or not the area is linked with its floating neighbors. This only has an effect if the area is a floating.
Whether or not the area is maximized. This only has an effect if the area is a floating.
Bases: enaml.layout.dock_layout.LayoutNode
A layout object for defining a dock bar layout.
The position of the tool bar in its area. Only one tool bar may occupy a given position at any one time.
The list of item layouts to include in the tab layout.
Bases: enaml.layout.dock_layout.LayoutNode
The layout object for defining toplevel dock layouts.
The layout items to include in the dock layout.
Bases: atom.atom.Atom
A sentinel base class for defining dock layout operations.
Bases: enaml.nodevisitor.NodeVisitor
A node visitor which validates a layout.
If an irregularity or invalid condition is found in the layout, a warning is emitted. Such conditions can result in undefined layout behavior.
Bases: exceptions.UserWarning
A custom user warning for use with dock layouts.
list of weak references to the object (if defined)
Bases: enaml.layout.dock_layout.DockLayoutOp
A layout operation which extends an item in a dock bar.
This layout operation will cause the named item to be extended to from its dock bar. If the item does not exist in a dock bar, this operation is a no-op.
The name of the dock item to extend from its dock bar.
Bases: enaml.layout.dock_layout.DockLayoutOp
A layout operation which creates a new floating dock area.
This layout operation will create a new floating dock area using the given area layout specification.
The area layout to use when building the new dock area.
Bases: enaml.layout.dock_layout.DockLayoutOp
A layout operation which creates a floating dock item.
This operation will remove an item from the current layout and insert convert it into a floating item. If the item does not exist, the operation is a no-op.
The item layout to use when configuring the floating item.
Bases: enaml.layout.dock_layout.SplitLayout
A split layout which defaults to ‘horizonal’ orientation.
Bases: enaml.layout.dock_layout.DockLayoutOp
A layout operation which inserts an item into a layout.
This operation will remove an item from the current layout and insert it next to a target item. If the item does not exist, the operation is a no-op.
If the target -
The item will be inserted as a new split item.
The item will be inserted as a neighbor of the tab group.
The item will be appended to the dock bar.
A new dock area will be created and the item will be inserted as a new split item.
The item is inserted into the border of the primary dock area.
The name of the dock item to insert into the layout.
The name of the dock item to use as the target location.
The position relative to the target at which to insert the item.
Bases: enaml.layout.dock_layout.DockLayoutOp
A layout operation which inserts an item into an area border.
This operation will remove an item from the current layout and insert it into the border of a dock area. If the item does not exist, the operation is a no-op.
If the target -
The item is inserted into the border of the dock area containing the target.
The item is inserted into the border of the dock area containing the tab group.
The item is inserted into the border of the dock area containing the dock bar.
A new dock area will be created and the item will be inserted into the border of the new dock area.
The item is inserted into the border of the primary dock area.
The name of the dock item to insert into the layout.
The name of the dock item to use as the target location.
The border position at which to insert the item.
Bases: enaml.layout.dock_layout.DockLayoutOp
A layout operation which inserts an item into a dock bar.
This operation will remove an item from the current layout and insert it into a dock bar in a dock area. If the item does not exist, the operation is a no-op.
If the target -
The item is inserted into the dock bar of the dock area containing the target.
The item is inserted into the dock bar of the dock area containing the tab group.
The item is inserted into the dock bar of the dock area containing the dock bar.
A new dock area will be created and the item will be inserted into the dock bar of the new dock area.
The item is inserted into the dock bar of the primary dock area.
The name of the dock item to insert into the layout.
The name of the dock item to use as the target location.
The dock bar position at which to insert the item.
The index at which to insert the dock bar item.
Bases: enaml.layout.dock_layout.DockLayoutOp
A layout operation which inserts a tab into a tab group.
This operation will remove an item from the current layout and insert it into a tab group in a dock area. If the item does not exist, the operation is a no-op.
If the target -
The target and item will be merged into a new tab group using the default tab position.
The item will be inserted into the tab group.
The item will be appended to the dock bar.
A new dock area will be created and the target and item will be merged into a new tab group.
The item is inserted into the left border of the primary dock area.
The name of the dock item to insert into the tab group.
The name of an existing dock item in the tab group of interest.
The index at which to insert the dock item.
The position of the tabs for a newly created tab group.
Bases: enaml.layout.dock_layout.LayoutNode
A layout object for defining an item layout.
The name of the DockItem to which this layout item applies.
Whether or not the item is floating. An ItemLayout defined as a toplevel item in a DockLayout should be marked as floating.
The geometry to apply to the item. This is expressed in desktop coordinates and only applies if the item is floating.
Whether or not the item is linked with its floating neighbors. This value will only have an effect if the item is floating.
Whether or not the item is maximized. This value will only have effect if the item is floating or docked in a SplitLayout.
Bases: atom.atom.Atom
A base class for defining layout nodes.
This class provides basic traversal functionality.
Get the children of the node.
Returns : | result : list
|
---|
Yield all of the nodes in the layout, from this node down.
Parameters : | depth_first : bool, optional
|
---|---|
Returns : | result : generator
|
Bases: enaml.layout.dock_layout.DockLayoutOp
A layout operation which will remove an item from the layout.
This layout operation will remove the dock item from the layout and hide it. It can be added back to layout later with one of the other layout operations.
The name of the dock item to remove from the layout.
Bases: enaml.layout.dock_layout.DockLayoutOp
A layout operation which retracts an item into a dock bar.
This layout operation will cause the named item to be retracted into its dock bar. If the item does not exist in a dock bar, this operation is a no-op.
The name of the dock item to retract into its dock bar.
Bases: enaml.layout.dock_layout.LayoutNode
A layout object for defining split dock layouts.
The orientation of the split layout.
The default sizes to apply to the items in the splitter. If provided, the length must be equal to the number of items.
This list of split layout items to include in the split layout.
Bases: enaml.layout.dock_layout.LayoutNode
A layout object for defining tabbed dock layouts.
The position of the tabs in the tab layout.
The index of the currently selected tab.
The list of item layouts to include in the tab layout.
Bases: enaml.layout.dock_layout.SplitLayout
A split layout which defaults to ‘vertical’ orientation.