Synced
ImGuiWidget.ConstrainedContent
Section titled “ImGuiWidget.ConstrainedContent”
- Draws a vertically auto-sized content region that is constrained to the current available width and cannot create an independent scroll range.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public void InnoEditor.ImGui.ImGuiWidget.ConstrainedContent(string id, System.Action drawContent, bool useWindowPadding = true)Parameters
Section titled “Parameters”Parameter id: Stable identifier used by ImGui to track the content region.
Parameter drawContent: Callback that draws the complete region contents.
Parameter useWindowPadding: Whether the region should apply the centralized standard window padding exactly once.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when id is empty.
Exception T:System.ArgumentNullException: Thrown when drawContent is null.