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§
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
Sourcefn set_placement(
&mut self,
placement: CommandWorkSurfacePlacement,
persist: bool,
) -> ConfigReply
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).
fn set_panel(&mut self, panel: CommandRailPanel, persist: bool) -> ConfigReply
fn mark_redraw(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".