pub struct TearWindow {
pub id: WindowId,
pub name: String,
pub layout: LayoutNode,
pub active_pane: PaneId,
pub size_cells: (u16, u16),
pub state: WindowState,
}Expand description
One window: a named tab that holds a binary-tree layout of panes. Windows are created/destroyed independently of their parent session and have their own active-pane focus.
Fields§
§id: WindowId§name: StringDisplay name shown in the status bar’s window list.
layout: LayoutNodePane layout. Pane ids referenced here must exist in the parent session’s pane map.
active_pane: PaneIdWhich pane gets keystrokes. Must be a leaf in layout.
size_cells: (u16, u16)Window size in terminal cells (cols, rows).
state: WindowStateLifecycle state.
Trait Implementations§
Source§impl Clone for TearWindow
impl Clone for TearWindow
Source§fn clone(&self) -> TearWindow
fn clone(&self) -> TearWindow
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 moreSource§impl Debug for TearWindow
impl Debug for TearWindow
Source§impl<'de> Deserialize<'de> for TearWindow
impl<'de> Deserialize<'de> for TearWindow
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
Source§impl PartialEq for TearWindow
impl PartialEq for TearWindow
Source§impl Serialize for TearWindow
impl Serialize for TearWindow
impl StructuralPartialEq for TearWindow
Auto Trait Implementations§
impl Freeze for TearWindow
impl RefUnwindSafe for TearWindow
impl Send for TearWindow
impl Sync for TearWindow
impl Unpin for TearWindow
impl UnsafeUnpin for TearWindow
impl UnwindSafe for TearWindow
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