Synced
ImGuiWidget.HeaderSurface
Section titled “ImGuiWidget.HeaderSurface”
- Draws a square-cornered editor header surface using the shared target-header palette, border, and padding.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.ImGui
Declaration
Section titled “Declaration”public void Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.HeaderSurface(string id, System.Action drawContent, bool spanWindowPadding = false)Parameters
Section titled “Parameters”Parameter id: Stable identifier used by ImGui to track the header region.
Parameter drawContent: Callback that draws the complete header content.
Parameter spanWindowPadding: Whether the header should extend through the current parent window padding to both edges.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when id is empty.
Exception T:System.ArgumentNullException: Thrown when drawContent is null.