pub struct SplitLayoutController {
    pub left: SplitController,
    pub right: SplitController,
    pub top: SplitController,
    pub bottom: SplitController,
    /* private fields */
}
Expand description

Stores information about split layout.

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

Fields§

§left: SplitController

The left split controller.

§right: SplitController

The right split controller.

§top: SplitController

The top split controller.

§bottom: SplitController

The bottom split controller.

Implementations§

Creates a new SplitLayoutController.

Handles event.

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.

Returns the top/bottom split layout.

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

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

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

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.

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

Does not get less in size than specified by min_size.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.