pub enum PaneLayoutMessage {
FocusNext,
FocusPrev,
FocusPane(String),
FocusPaneIndex(usize),
GrowFocused,
ShrinkFocused,
GrowPane(String),
ShrinkPane(String),
SetProportion {
id: String,
proportion: f32,
},
ResetProportions,
}Expand description
Messages that can be sent to a PaneLayout.
Variants§
FocusNext
Focus the next pane (wrapping).
FocusPrev
Focus the previous pane (wrapping).
FocusPane(String)
Focus a pane by ID.
FocusPaneIndex(usize)
Focus a pane by index.
GrowFocused
Grow the focused pane.
ShrinkFocused
Shrink the focused pane.
GrowPane(String)
Grow a specific pane by ID.
ShrinkPane(String)
Shrink a specific pane by ID.
SetProportion
Set a specific pane’s proportion.
ResetProportions
Reset all panes to equal proportions.
Trait Implementations§
Source§impl Clone for PaneLayoutMessage
impl Clone for PaneLayoutMessage
Source§fn clone(&self) -> PaneLayoutMessage
fn clone(&self) -> PaneLayoutMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaneLayoutMessage
impl Debug for PaneLayoutMessage
Source§impl PartialEq for PaneLayoutMessage
impl PartialEq for PaneLayoutMessage
impl StructuralPartialEq for PaneLayoutMessage
Auto Trait Implementations§
impl Freeze for PaneLayoutMessage
impl RefUnwindSafe for PaneLayoutMessage
impl Send for PaneLayoutMessage
impl Sync for PaneLayoutMessage
impl Unpin for PaneLayoutMessage
impl UnsafeUnpin for PaneLayoutMessage
impl UnwindSafe for PaneLayoutMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more