pub struct SplitLayoutSettings {
Show 14 fields pub border: f64, pub center_min_size: [f64; 2], pub left_value: f64, pub left_min_value: f64, pub right_value: f64, pub right_min_value: f64, pub top_value: f64, pub top_min_value: f64, pub bottom_value: f64, pub bottom_min_value: f64, pub lock_left: bool, pub lock_right: bool, pub lock_top: bool, pub lock_bottom: bool,
}
Expand description

Stores split layout settings.

Fields§

§border: f64

The border width.

§center_min_size: [f64; 2]

The minimum size of center.

§left_value: f64

The initial value for left split.

§left_min_value: f64

The minimum value for left split.

§right_value: f64

The initial value for right split.

§right_min_value: f64

The minimum value for right split.

§top_value: f64

The initial value for top split.

§top_min_value: f64

The minimum value for top split.

§bottom_value: f64

The initial value for bottom split.

§bottom_min_value: f64

The minimum value for bottom split.

§lock_left: bool

Locks left split.

§lock_right: bool

Locks right split.

§lock_top: bool

Locks top split.

§lock_bottom: bool

Locks bottom split.

Implementations§

Creates a new SplitLayoutSettings object with values set to minimum.

Work area minimum size is set to 1x1.

Set the value and minimum value for left split.

Sets the value and minimum value for right split.

Sets the value and minimum value for top split.

Sets the value and minimum value for bottom split.

Locks left split, sets the minimum value at the same time.

Locks right split, sets the minimum value at the same time.

Locks top split, sets the minimum value at the same time.

Locks bottom split, sets the minimum value at the same time.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.