Synced
ImGuiWidget.CollapsingCard
Section titled “ImGuiWidget.CollapsingCard”
- Draws a component-style collapsible card header.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public bool InnoEditor.ImGui.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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”true when card content should be drawn; otherwise, false.