GraphCanvasPort.Constructor
Section titled “GraphCanvasPort.Constructor”
- Creates a port presentation whose position is measured in unscaled node coordinates.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Graph.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.Graph.GraphCanvasPort.GraphCanvasPort(InnoEngine.Graphs.GraphEndpoint endpoint, InnoEngine.Graphs.GraphPortDirection direction, System.Numerics.Vector2 position, string label, bool isOptional = false, bool isMissing = false, (System.Numerics.Vector2, System.Numerics.Vector2)? labelBounds = null)Parameters
Section titled “Parameters”Parameter endpoint: The existing document endpoint represented by this port.
Parameter direction: The connection direction, independent of any domain-specific type system.
Parameter position: Node-relative graph coordinates of the port center.
Parameter label: The current display label, without domain objects or callbacks.
Parameter isOptional: Whether to distinguish an optional input visually.
Parameter isMissing: Whether retained document structure currently lacks its domain implementation.
Parameter labelBounds: Optional node-relative label bounds used by drawing and row hit testing; null limits hits to the socket.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: An endpoint identity is empty.
Exception T:System.ArgumentNullException: The label is null.
Exception T:System.ArgumentOutOfRangeException: The position or direction is invalid.