[−][src]Struct split_controller::SplitLayoutSettings
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.
Methods
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]
fn clone(&self) -> SplitLayoutSettings
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<SplitLayoutSettings> for SplitLayoutSettings
[src]
fn eq(&self, other: &SplitLayoutSettings) -> bool
[src]
fn ne(&self, other: &SplitLayoutSettings) -> bool
[src]
impl Copy for SplitLayoutSettings
[src]
impl Debug for SplitLayoutSettings
[src]
Auto Trait Implementations
impl Send for SplitLayoutSettings
impl Sync for SplitLayoutSettings
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,