oa::viewer::WorkspaceItem
Content provider rendered inside one workspace leaf pane. Donor scope note: items are application-owned surfaces (figure views, media views, inspectors); the workspace only routes geometry and events.
Declaration
pub trait WorkspaceItem { // Required methods fn id(&self) -> &str; fn title(&self) -> &str; fn render(&mut self, ui: &mut Ui<'_>, rect: PixelRect) -> Result<()>; // Provided methods fn closable(&self) -> bool { ... } fn update(&mut self, _delta_ms: f32) -> Result<()> { ... } fn on_event(&mut self, _event: &InputEvent) -> Result<()> { ... } }Public Rust declaration.
Public Methods
Public Method Documentation
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.