pub enum LayoutKind {
EvenHorizontal,
EvenVertical,
MainHorizontal,
MainVertical,
Tiled,
Custom,
}Expand description
Named tmux-style layout presets. tmux ships five built-ins; tear
supports the same plus a tatami-style auto-balance.
Variants§
EvenHorizontal
All panes in one horizontal row.
EvenVertical
All panes in one vertical column.
MainHorizontal
One large pane on top, all others on the bottom row.
MainVertical
One large pane on the left, all others stacked on the right.
Tiled
Tiled: arrange panes in an approximate square grid.
Custom
Custom: the LayoutNode tree on the crate::TearWindow is
the source of truth. Operators reach this state after manual
splits / resizes; tear-core serialises the tree as the canonical
shape.
Trait Implementations§
Source§impl Clone for LayoutKind
impl Clone for LayoutKind
Source§fn clone(&self) -> LayoutKind
fn clone(&self) -> LayoutKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayoutKind
Source§impl Debug for LayoutKind
impl Debug for LayoutKind
Source§impl<'de> Deserialize<'de> for LayoutKind
impl<'de> Deserialize<'de> for LayoutKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LayoutKind
Source§impl Hash for LayoutKind
impl Hash for LayoutKind
Source§impl PartialEq for LayoutKind
impl PartialEq for LayoutKind
Source§impl Serialize for LayoutKind
impl Serialize for LayoutKind
impl StructuralPartialEq for LayoutKind
Auto Trait Implementations§
impl Freeze for LayoutKind
impl RefUnwindSafe for LayoutKind
impl Send for LayoutKind
impl Sync for LayoutKind
impl Unpin for LayoutKind
impl UnsafeUnpin for LayoutKind
impl UnwindSafe for LayoutKind
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