Synced
ImGuiWidget.TreeNode
Section titled “ImGuiWidget.TreeNode”
- Draws a full-width interactive tree row whose non-leaf content toggles expansion when double-clicked, while preserving single-click disclosure-arrow behavior.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.ImGui.TreeNodeResult InnoEditor.ImGui.ImGuiWidget.TreeNode(string id, System.Action<InnoEditor.ImGui.TreeNodeDrawContext> onDraw, in InnoEditor.ImGui.TreeNodeOptions options)Parameters
Section titled “Parameters”Parameter id: Stable row identifier.
Parameter onDraw: Frame-local content drawing for visible or explicitly preserved rows; clipped ordinary rows do not invoke it.
Parameter options: Tree row options.
Returns
Section titled “Returns”Interaction and row geometry for the submitted item.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentOutOfRangeException: An explicit flattened depth is negative.