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§
Source§impl SplitLayoutSettings
impl SplitLayoutSettings
Sourcepub fn new(border: f64, min_value: f64) -> SplitLayoutSettings
pub fn new(border: f64, min_value: f64) -> SplitLayoutSettings
Creates a new SplitLayoutSettings
object with values set to minimum.
Work area minimum size is set to 1x1.
Sourcepub fn left(self, value: f64, min_value: f64) -> SplitLayoutSettings
pub fn left(self, value: f64, min_value: f64) -> SplitLayoutSettings
Set the value and minimum value for left split.
Sourcepub fn right(self, value: f64, min_value: f64) -> SplitLayoutSettings
pub fn right(self, value: f64, min_value: f64) -> SplitLayoutSettings
Sets the value and minimum value for right split.
Sourcepub fn top(self, value: f64, min_value: f64) -> SplitLayoutSettings
pub fn top(self, value: f64, min_value: f64) -> SplitLayoutSettings
Sets the value and minimum value for top split.
Sourcepub fn bottom(self, value: f64, min_value: f64) -> SplitLayoutSettings
pub fn bottom(self, value: f64, min_value: f64) -> SplitLayoutSettings
Sets the value and minimum value for bottom split.
Sourcepub fn lock_left(self, value: f64) -> SplitLayoutSettings
pub fn lock_left(self, value: f64) -> SplitLayoutSettings
Locks left split, sets the minimum value at the same time.
Sourcepub fn lock_right(self, value: f64) -> SplitLayoutSettings
pub fn lock_right(self, value: f64) -> SplitLayoutSettings
Locks right split, sets the minimum value at the same time.
Sourcepub fn lock_top(self, value: f64) -> SplitLayoutSettings
pub fn lock_top(self, value: f64) -> SplitLayoutSettings
Locks top split, sets the minimum value at the same time.
Sourcepub fn lock_bottom(self, value: f64) -> SplitLayoutSettings
pub fn lock_bottom(self, value: f64) -> SplitLayoutSettings
Locks bottom split, sets the minimum value at the same time.
Trait Implementations§
Source§impl Clone for SplitLayoutSettings
impl Clone for SplitLayoutSettings
Source§fn clone(&self) -> SplitLayoutSettings
fn clone(&self) -> SplitLayoutSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more