Synced
GraphCanvasView.DrawConnection
Section titled “GraphCanvasView.DrawConnection”
- Draws a horizontal-tangent connection using the same curve used for hit testing.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Graph.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public void InnoEditor.Graph.GraphCanvasView.DrawConnection(InnoEditor.ImGui.EditorDrawList draw, System.Numerics.Vector2 output, System.Numerics.Vector2 input, uint color, float thickness = 2)Parameters
Section titled “Parameters”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.
Exceptions
Section titled “Exceptions”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.