Skip to main content

InspectorRenderer

Type Alias InspectorRenderer 

Source
pub type InspectorRenderer = Box<dyn Fn(&mut Inspector, &mut Window, &mut Context<'_, Inspector>) -> AnyElement>;
Expand description

The function that builds the inspector panel. Install it with App::set_inspector_renderer.

GPUI passes the Inspector, window and inspector context to the renderer. It returns the panel’s element, and GPUI calls it on each draw of the inspector view.

Aliased Type§

pub struct InspectorRenderer(/* private fields */);