Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates a port presentation whose position is measured in unscaled node coordinates.

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

public Inno.Editor.Graph.ImGui.GraphCanvasPort.GraphCanvasPort(Inno.Core.Graphs.GraphEndpoint endpoint, Inno.Core.Graphs.GraphPortDirection direction, System.Numerics.Vector2 position, string label, bool isOptional = false, bool isMissing = false, (System.Numerics.Vector2 minimum, System.Numerics.Vector2 maximum)? labelBounds = null)

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.

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.