GraphCanvasView.DrawNode
Section titled “GraphCanvasView.DrawNode”
- Draws a visible neutral node and its ports, borrowing optional content only for this call.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Graph.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public bool InnoEditor.Graph.GraphCanvasView.DrawNode(InnoEditor.ImGui.EditorDrawList draw, InnoEditor.Graph.GraphCanvasNode node, uint headerColor, bool selected, System.Action? drawContent = null, InnoEngine.Graphs.GraphPosition? previewPosition = null)Parameters
Section titled “Parameters”Parameter draw: The current window’s frame-local drawing borrow; it is neither retained nor released by this call.
Parameter node: The immutable geometric and textual node input.
Parameter headerColor: The domain-selected packed header color; the presenter does not classify node types.
Parameter selected: Whether to display the current selection outline.
Parameter drawContent: Optional frame-local custom drawing. Exceptions propagate after restoring the node clip.
Parameter previewPosition: An uncommitted movement position, or null to draw the document position.
Returns
Section titled “Returns”True when the node intersects the canvas and effective window clip and was submitted; false when culled.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: The node is null.
Exception T:System.InvalidOperationException: The canvas is uninitialized or a visible node uses an expired or mismatched drawing borrow.