Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Draws a horizontal-tangent connection using the same curve used for hit testing.

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

public void Inno.Editor.Graph.ImGui.GraphCanvasView.DrawConnection(Inno.Editor.ImGui.EditorDrawList draw, System.Numerics.Vector2 output, System.Numerics.Vector2 input, uint color, float thickness = 2)

Parameter draw: The current window’s frame-local drawing borrow; it is neither retained nor released by this call.

Parameter output: The output endpoint in screen space.

Parameter input: The input endpoint in screen space.

Parameter color: The packed connection color.

Parameter thickness: The positive screen-space stroke width.

Exception T:System.ArgumentOutOfRangeException: An endpoint or derived control point is nonfinite, or the stroke width is not positive and finite.

Exception T:System.InvalidOperationException: The canvas is uninitialized or a visible connection uses an expired or mismatched drawing borrow.