pub fn render_card(
ui: &mut dyn UiBuilder,
entity: EntityId,
title: &str,
icon: Icon,
enabled: Option<bool>,
removable: bool,
card_x: f32,
card_w: f32,
theme: &UiTheme,
state: &mut EditorState,
body: &mut dyn FnMut(&mut dyn UiBuilder),
)Expand description
Renders one component as a flat collapsible group and calls body for its
content. Open/closed state persists in EditorState::inspector_card_open,
keyed by entity index + component title.