Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Draws a visible neutral node and its ports, borrowing optional content only for this call.

API: engine
Project: Inno.Editor.Graph.ImGui

public bool Inno.Editor.Graph.ImGui.GraphCanvasView.DrawNode(Inno.Editor.ImGui.EditorDrawList draw, Inno.Editor.Graph.ImGui.GraphCanvasNode node, uint headerColor, bool selected, System.Action? drawContent = null, Inno.Core.Graphs.GraphPosition? previewPosition = null)

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.

True when the node intersects the canvas and effective window clip and was submitted; false when culled.

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.