pub struct SplitController {
    pub value: f64,
    pub min_value: f64,
    pub border: f64,
    pub orientation: SplitOrientation,
    /* private fields */
}
Expand description

Stores information about an UI split.

Fields§

§value: f64

The value of split.

§min_value: f64

The minimum value of split.

§border: f64

The border width.

§orientation: SplitOrientation

The orientation of split.

Implementations§

Creates a new SplitController.

Gets whether the split is currently being dragged by the user.

Handles event.

Gets the current state of split.

Gets line rectangle [x, y, w, h] from rectangle [x, y, w, h] of parent panel.

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.