Struct gabelstaplerwm::wm::layout::stack::DStack [] [src]

pub struct DStack { /* fields omitted */ }

Dual stack layout.

+-+---+-+
| |   | | A: left stack, hidden if fixed=false and num_windows <= 2
|A| B |C| B: master window
| |   | | C: right stack, hidden if fixed=false and num_windows <= 1
+-+---+-+

New windows are added as slaves to the right stack, being pushed to the left one to keep the amount of windows balanced. The following invariant holds: num_slaves_left <= num_slaves_right.

Methods

impl DStack
[src]

Construct a sane DStack.

Trait Implementations

impl Debug for DStack
[src]

Formats the value using the given formatter.

impl Default for DStack
[src]

Returns the "default value" for a type. Read more

impl Layout for DStack
[src]

Compute window geometries. Read more

Get the index of the window to the right of the nth window.

Get the index of the window to the left of the nth window.

Get the index of the window to the top of the nth window.

Get the index of the window to the bottom of the nth window.

Decide whether to insert new windows as master.

React to a LayoutMessage, returning true on change.

React to the first applicable LayoutMessage. Read more