Struct split_controller::SplitLayoutController [] [src]

pub struct SplitLayoutController {
    pub left: SplitController,
    pub right: SplitController,
    pub top: SplitController,
    pub bottom: SplitController,
    // some fields omitted
}

Stores information about split layout.

The layout is split into left, right, top and bottom panel.

Fields

The left split controller.

The right split controller.

The top split controller.

The bottom split controller.

Methods

impl SplitLayoutController
[src]

[src]

Creates a new SplitLayoutController.

[src]

Handles event.

[src]

Returns the left/right split layout.

The left/right split layout depends on whether your purpose is to draw something or handle events. When handling events, the rectangle overlaps with the top and bottom split.

[src]

Returns the top/bottom split layout.

[src]

Computes split rectangles for drawing [left, right, top, bottom].

[src]

Returns the split controller states [left, right, top, bottom].

[src]

Computes panel rectangles for layout [left, right, top, bottom, center].

[src]

Computes the minimum size using current values in split controls.

The current values in the split controls are used instead of the minimum values, because the splits should appear visually with the same current value.

[src]

Computes the bounds from window bounds [x, y, w, h].

Does not get less in size than specified by min_size.