pub fn panel_handle<P: Panel>(panel: Entity<P>) -> Arc<dyn PanelView> ⓘExpand description
Wrap panel so base carries its presentation across the renderer seam.
This is what every entry point into the dock wants:
DockLayout::tabs().panel_view(panel_handle(story), cx),
DockLayout::tiles().tile_view(panel_handle(story), bounds, cx),
DockArea::add_panel_view(panel_handle(story), ..),
DockArea::add_tile_view(panel_handle(story), ..), and the closure a
register_panel builder returns.
Base’s own DockLayout::panel / tile and DockArea::add_panel /
add_tile also accept a panel — a gpui_component::dock::Panel is a
gpui_base::dock::Panel — but they store the bare entity, and a skin
cannot recover presentation from one. Such a panel still docks, drags and
persists; it just draws its panel_name where its title would be.