pub struct Compositor {
pub chrome: ShellChrome,
pub layout: LayoutTree,
/* private fields */
}Expand description
The central compositor state machine.
Fields§
§chrome: ShellChrome§layout: LayoutTreeImplementations§
Source§impl Compositor
impl Compositor
pub fn new( cols: u16, rows: u16, session_id: u32, viewer_id: u32, windows: Vec<WindowSummary>, models: Vec<ModelEntry>, ) -> Self
Sourcepub fn pane_block_area(&self, frame_area: Rect) -> Rect
pub fn pane_block_area(&self, frame_area: Rect) -> Rect
Returns the area occupied by the pane block (inside border) for the given frame area. Used by shell_handlers to position overlay widgets that aren’t WASM-safe.
Sourcepub fn active_pane_id(&self) -> u32
pub fn active_pane_id(&self) -> u32
The active pane ID (from the focused window’s active pane).
Sourcepub fn render(&self, frame: &mut Frame<'_>)
pub fn render(&self, frame: &mut Frame<'_>)
Render the full chrome + pane content into a ratatui frame.
Sourcepub fn handle(&mut self, input: CompositorInput) -> Vec<CompositorOutput>
pub fn handle(&mut self, input: CompositorInput) -> Vec<CompositorOutput>
Process a compositor input event, returning a list of actions for the event loop to dispatch.
Auto Trait Implementations§
impl Freeze for Compositor
impl RefUnwindSafe for Compositor
impl Send for Compositor
impl Sync for Compositor
impl Unpin for Compositor
impl UnsafeUnpin for Compositor
impl UnwindSafe for Compositor
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