Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Draws a square-cornered editor header surface using the shared target-header palette, border, and padding.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public void InnoEditor.ImGui.ImGuiWidget.HeaderSurface(string id, System.Action drawContent, bool spanWindowPadding = false)

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.

Exception T:System.ArgumentException: Thrown when id is empty.

Exception T:System.ArgumentNullException: Thrown when drawContent is null.