Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Draws a component-style collapsible card header.

API: engine
Project: Inno.Editor.ImGui

public bool Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.CollapsingCard(string id, string title, System.Action? drawLeadingControl = null, System.Action? drawTrailingControl = null, bool defaultOpen = true, bool dimmed = false, float trailingControlWidth = 0, System.Action? drawContextMenu = null)

Parameter id: The stable card identifier.

Parameter title: The visible card title.

Parameter drawLeadingControl: An optional control drawn before the title.

Parameter drawTrailingControl: An optional control aligned to the right edge.

Parameter defaultOpen: Whether the card starts expanded.

Parameter dimmed: Whether header controls and title use the inactive text color.

Parameter trailingControlWidth: The optional width reserved for the trailing control group.

Parameter drawContextMenu: An optional callback that binds a context menu to the complete header item.

true when card content should be drawn; otherwise, false.