pub struct SplitState { /* private fields */ }Expand description
Cloneable, observable split-pane state.
Applications may persist Self::snapshot in their own settings system
and later restore it with Self::apply_snapshot. SUI owns no storage or
serialization policy.
Implementations§
Source§impl SplitState
impl SplitState
pub fn new(extent: SplitExtent) -> Self
pub fn fraction(fraction: f32) -> Self
pub fn pixels(pixels: f32) -> Self
pub fn snapshot(&self) -> SplitStateSnapshot
pub fn apply_snapshot(&self, snapshot: SplitStateSnapshot) -> bool
pub fn set_extent(&self, extent: SplitExtent) -> bool
pub fn set_fraction(&self, fraction: f32) -> bool
pub fn set_pixels(&self, pixels: f32) -> bool
pub fn collapse(&self, side: SplitPaneSide) -> bool
pub fn expand(&self) -> bool
pub fn toggle(&self, side: SplitPaneSide) -> bool
Trait Implementations§
Source§impl Clone for SplitState
impl Clone for SplitState
Source§impl Debug for SplitState
impl Debug for SplitState
Auto Trait Implementations§
impl Forget for SplitState
impl Freeze for SplitState
impl Move for SplitState
impl RefUnwindSafe for SplitState
impl Send for SplitState
impl Sync for SplitState
impl Unpin for SplitState
impl UnsafeUnpin for SplitState
impl UnwindSafe for SplitState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more