Vixen
02b45cc4
csharp
public sealed class GraphNode

One box on the canvas.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (8)

  • public string Title

    What is written across the top of it.

  • public Vector2 Position

    Its top-left corner, in graph space.

  • public float Width

    How wide it is, in graph units.

  • public IReadOnlyList<GraphPort> Inputs

    Its ports, in order down the left side.

  • public IReadOnlyList<GraphPort> Outputs

    Its ports, in order down the right side.

  • public GraphGroup? Group

    The group it is in, if any.

  • public object? Tag

    Whatever the application wants to hang off it.

  • public int Rows

    How many ports the taller of its two sides has.

Methods (4)

  • public GraphNode(string title = "")

    Creates a node.

  • public GraphPort AddInput(string name)

    Adds a port on the left.

  • public GraphPort AddOutput(string name)

    Adds a port on the right.

  • public override string ToString()

    Returns a string that represents the current object.

Used by (13)

  • GraphGroupVixen.Ui.Controls.Advanced
  • GraphPortVixen.Ui.Controls.Advanced
  • NodeCanvasVixen.Ui.Controls.Advanced
  • NodeCanvasTestsVixen.Ui.Controls.Advanced.Tests
  • NodeGraphVixen.Ui.Controls.Advanced
  • NodeGraphTestsVixen.Ui.Controls.Advanced.Tests
  • NodeItemVixen.Ui.Controls.Advanced
  • NodeMinimapVixen.Ui.Controls.Advanced
  • GraphPairVixen.Editor.NodeGraph.Tests
  • NodeGraphViewVixen.Editor.NodeGraph
  • NodePreviewLayerVixen.Editor.NodeGraph
  • ViewFixtureVixen.Editor.NodeGraph.Tests
  • ViewTestsVixen.Editor.NodeGraph.Tests