GraphCanvasNode.Constructor
Section titled “GraphCanvasNode.Constructor”
- Creates immutable display data that can safely outlive the extension that described it.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Graph.ImGui
Declaration
Section titled “Declaration”public Inno.Editor.Graph.ImGui.GraphCanvasNode.GraphCanvasNode(Inno.Core.Graphs.GraphNodeId id, Inno.Core.Graphs.GraphPosition position, System.Numerics.Vector2 size, float headerHeight, string title, System.Collections.Generic.IEnumerable<Inno.Editor.Graph.ImGui.GraphCanvasPort> ports)Parameters
Section titled “Parameters”Parameter id: The existing graph node identity.
Parameter position: The node’s document position in graph coordinates.
Parameter size: Finite positive width and height in graph coordinates.
Parameter headerHeight: The header extent, within the node height.
Parameter title: A display title already interpreted by its domain owner.
Parameter ports: Immutable neutral endpoint descriptions; the collection is copied.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: The title or port collection is null.
Exception T:System.ArgumentException: A node or port identity is invalid, duplicated or owned by a different node.
Exception T:System.ArgumentOutOfRangeException: The node’s geometry is nonfinite or has an invalid extent.