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: engine
Project: Inno.Editor.ImGui
Declaration
Section titled “Declaration”public Inno.Editor.ImGui.ImGuiWidget.TreeNodeResult Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.TreeNode(string id, System.Action<Inno.Editor.ImGui.ImGuiWidget.TreeNodeDrawContext> onDraw, in Inno.Editor.ImGui.ImGuiWidget.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.