pub struct Window {
pub id: WindowId,
pub panes: Vec<Pane>,
pub active_pane: usize,
pub layout: Layout,
}Fields§
§id: WindowId§panes: Vec<Pane>§active_pane: usize§layout: LayoutImplementations§
Source§impl Window
impl Window
pub fn split_pane(&mut self, pane: Pane, horizontal: bool)
pub fn compute_pane_positions( &self, area_width: u16, area_height: u16, ) -> Vec<(PaneId, PanePosition)>
Sourcepub fn kill_pane(
&mut self,
pane_id: &str,
) -> Result<(bool, Box<dyn PtyBackend>)>
pub fn kill_pane( &mut self, pane_id: &str, ) -> Result<(bool, Box<dyn PtyBackend>)>
Remove a pane by ID. Returns (window_empty, backend) so the caller can close the backend outside the session manager lock.
pub fn to_info(&self) -> WindowInfo
Auto Trait Implementations§
impl Freeze for Window
impl !RefUnwindSafe for Window
impl Send for Window
impl !Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl !UnwindSafe for Window
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