[][src]Struct split_controller::SplitLayoutSettings

pub struct SplitLayoutSettings {
    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,
}

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

impl SplitLayoutSettings[src]

pub fn new(border: f64, min_value: f64) -> SplitLayoutSettings[src]

Creates a new SplitLayoutSettings object with values set to minimum.

Work area minimum size is set to 1x1.

pub fn left(self, value: f64, min_value: f64) -> SplitLayoutSettings[src]

Set the value and minimum value for left split.

pub fn right(self, value: f64, min_value: f64) -> SplitLayoutSettings[src]

Sets the value and minimum value for right split.

pub fn top(self, value: f64, min_value: f64) -> SplitLayoutSettings[src]

Sets the value and minimum value for top split.

pub fn bottom(self, value: f64, min_value: f64) -> SplitLayoutSettings[src]

Sets the value and minimum value for bottom split.

pub fn lock_left(self, value: f64) -> SplitLayoutSettings[src]

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

pub fn lock_right(self, value: f64) -> SplitLayoutSettings[src]

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

pub fn lock_top(self, value: f64) -> SplitLayoutSettings[src]

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

pub fn lock_bottom(self, value: f64) -> SplitLayoutSettings[src]

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

Trait Implementations

impl Clone for SplitLayoutSettings[src]

impl Copy for SplitLayoutSettings[src]

impl Debug for SplitLayoutSettings[src]

impl PartialEq<SplitLayoutSettings> for SplitLayoutSettings[src]

impl StructuralPartialEq for SplitLayoutSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.