pub struct WindowProxy { /* private fields */ }Expand description
Proxy for a terminal window
Implementations§
Source§impl WindowProxy
impl WindowProxy
pub fn new(handle: ObjectHandle) -> Result<Self>
pub fn handle(&self) -> ObjectHandle
pub fn id(&self) -> u64
Sourcepub fn active_pane<T>(
&self,
registry: &impl ObjectRegistry<T>,
) -> Result<PaneProxy>
pub fn active_pane<T>( &self, registry: &impl ObjectRegistry<T>, ) -> Result<PaneProxy>
Sourcepub fn active_tab<T>(
&self,
registry: &impl ObjectRegistry<T>,
) -> Result<TabProxy>
pub fn active_tab<T>( &self, registry: &impl ObjectRegistry<T>, ) -> Result<TabProxy>
Get the active tab in this window
This method returns the first tab in the window. In a full implementation, this would query which tab is actually active.
§Arguments
registry- The object registry to use for navigation
§Returns
Ok(TabProxy)- The active tab in this windowErr(ObjectError)- If the window has no tabs or navigation fails
Sourcepub fn get_dimensions(&self) -> Result<(u32, u32)>
pub fn get_dimensions(&self) -> Result<(u32, u32)>
Get window dimensions
Sourcepub fn is_focused(&self) -> Result<bool>
pub fn is_focused(&self) -> Result<bool>
Check if window is focused
Sourcepub fn set_right_status(&self, items: Vec<RenderItem>) -> Result<()>
pub fn set_right_status(&self, items: Vec<RenderItem>) -> Result<()>
Set right status bar content
Stores the render items for later IPC transmission to the client. The items will be sent to the UI when the next status update is triggered.
§Arguments
items- Vector of RenderItem elements to display on the right side
§Returns
Ok(())- Items stored successfullyErr(ObjectError)- If storage fails
Sourcepub fn set_left_status(&self, items: Vec<RenderItem>) -> Result<()>
pub fn set_left_status(&self, items: Vec<RenderItem>) -> Result<()>
Set left status bar content
Stores the render items for later IPC transmission to the client. The items will be sent to the UI when the next status update is triggered.
§Arguments
items- Vector of RenderItem elements to display on the left side
§Returns
Ok(())- Items stored successfullyErr(ObjectError)- If storage fails
Sourcepub fn clear_status(&self) -> Result<()>
pub fn clear_status(&self) -> Result<()>
Clear all status bar content
Clears both left and right status bar sections.
§Returns
Ok(())- Status cleared successfullyErr(ObjectError)- If clearing fails
Sourcepub fn drain_pending_status(&self) -> Vec<(StatusBarSide, Vec<RenderItem>)>
pub fn drain_pending_status(&self) -> Vec<(StatusBarSide, Vec<RenderItem>)>
Drain pending status updates for IPC transmission
Returns and clears all pending status updates that need to be sent to the client. This is called internally by the daemon’s IPC layer.
§Returns
Vector of (side, items) tuples representing pending updates
Trait Implementations§
Source§impl Clone for WindowProxy
impl Clone for WindowProxy
Source§fn clone(&self) -> WindowProxy
fn clone(&self) -> WindowProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more