Skip to main content

CommandWorkSurfaceContext

Trait CommandWorkSurfaceContext 

Source
pub trait CommandWorkSurfaceContext {
    // Required methods
    fn placement(&self) -> CommandWorkSurfacePlacement;
    fn panel(&self) -> CommandRailPanel;
    fn effective_placement(&self) -> CommandWorkSurfacePlacement;
    fn area_present(&self) -> bool;
    fn panel_title(&self, panel: CommandRailPanel) -> String;
    fn set_placement(
        &mut self,
        placement: CommandWorkSurfacePlacement,
        persist: bool,
    ) -> ConfigReply;
    fn set_panel(
        &mut self,
        panel: CommandRailPanel,
        persist: bool,
    ) -> ConfigReply;
    fn mark_redraw(&mut self);
}
Expand description

Workbar placement/panel observation and mutation for /workbar.

Required Methods§

Source

fn placement(&self) -> CommandWorkSurfacePlacement

Source

fn panel(&self) -> CommandRailPanel

Source

fn effective_placement(&self) -> CommandWorkSurfacePlacement

Source

fn area_present(&self) -> bool

Source

fn panel_title(&self, panel: CommandRailPanel) -> String

Source

fn set_placement( &mut self, placement: CommandWorkSurfacePlacement, persist: bool, ) -> ConfigReply

Apply a placement; when persist, also writes the setting. The reply is the key-engine result (ignored on success, returned on error).

Source

fn set_panel(&mut self, panel: CommandRailPanel, persist: bool) -> ConfigReply

Source

fn mark_redraw(&mut self)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§