Skip to main content

InspectorTab

Trait InspectorTab 

Source
pub trait InspectorTab: Send + Sync {
    // Required methods
    fn label(&self) -> &str;
    fn render(
        &mut self,
        ui: &mut dyn UiBuilder,
        body_rect: [f32; 4],
        ctx: &mut InspectorTabContext<'_>,
    );
}
Expand description

A self-contained body for one Inspector sub-tab. The panel iterates the registered tabs and dispatches the active one’s render.

Required Methods§

Source

fn label(&self) -> &str

Source

fn render( &mut self, ui: &mut dyn UiBuilder, body_rect: [f32; 4], ctx: &mut InspectorTabContext<'_>, )

Implementors§