Struct gabelstaplerwm::wm::layout::grid::Grid [] [src]

pub struct Grid {
    pub max_col: u8,
}

Grid Layout.

+-+---+-+
| | | | |
+-+-+-+-+
| | | | |
+-+---+-+

Places windows in a grid with a fixed number of columns, adding new lines as necessary. Number of columns is configurable. If the amount of windows present isn't evenly divisible by the number of columns, the leftover slots are left empty.

Fields

Maximum number of columns.

Trait Implementations

impl Debug for Grid
[src]

Formats the value using the given formatter.

impl Default for Grid
[src]

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

impl Layout for Grid
[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