pub struct LayoutTree { /* private fields */ }Expand description
Tracks per-pane buffer state keyed by pane_id (or app_id for private panes).
Implementations§
Source§impl LayoutTree
impl LayoutTree
pub fn new(cols: u16, rows: u16) -> Self
Sourcepub fn get_or_create_server(&mut self, pane_id: u32) -> &mut PaneState
pub fn get_or_create_server(&mut self, pane_id: u32) -> &mut PaneState
Get or create a server pane backed by ANSI VT (WASM / ANSI mode).
Sourcepub fn get_or_create_private(&mut self, app_id: u32) -> &mut PaneState
pub fn get_or_create_private(&mut self, app_id: u32) -> &mut PaneState
Get or create a private client-owned pane.
pub fn get_pane(&self, pane_id: u32) -> Option<&PaneState>
pub fn get_pane_mut(&mut self, pane_id: u32) -> Option<&mut PaneState>
pub fn remove_pane(&mut self, pane_id: u32)
Sourcepub fn apply_server_frame(&mut self, frame: &FrameUpdate)
pub fn apply_server_frame(&mut self, frame: &FrameUpdate)
Apply a decoded TuiFrame to a server pane buffer (native Capnp path).
Creates the pane as ServerBuf if it doesn’t exist yet.
Upgrades a ServerVt pane to ServerBuf on first Capnp frame.
pub fn resize(&mut self, cols: u16, rows: u16)
Auto Trait Implementations§
impl Freeze for LayoutTree
impl RefUnwindSafe for LayoutTree
impl Send for LayoutTree
impl Sync for LayoutTree
impl Unpin for LayoutTree
impl UnsafeUnpin for LayoutTree
impl UnwindSafe for LayoutTree
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> 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