Vixen
02b45cc4
csharp
public record class PortDefinition

One port of a node type.

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

Remarks

Named rather than numbered, and that is a compatibility decision. A node type that gains a port must not renumber the ones a saved graph is already connected to, and an author who renames a field would otherwise silently move every edge that pointed at it. Ports are matched by name on load; a name that is gone is an edge that is dropped, with a diagnostic, which is the failure that can be understood.

Fields and properties (5)

  • public string Name

    What it is called. A saved graph names its edges by this.

  • public PortDirection Direction

    Which way it faces.

  • public PortKind Kind

    What it carries.

  • public string Summary

    One line saying what it means.

  • public ImmutableArray<float> Default

    The default, or an empty span when the port has none.

Methods (1)

  • public PortDefinition(string Name, PortDirection Direction, PortKind Kind, ImmutableArray<float> Default = default(ImmutableArray<float>), string Summary = "")

    One port of a node type.

Used by (16)

  • FieldVixen.Editor.NodeGraph
  • FlattenerVixen.Editor.NodeGraph
  • NodeGraphCompilerVixen.Editor.NodeGraph
  • NodeGraphDocumentVixen.Editor.NodeGraph
  • NodeGraphLayoutVixen.Editor.NodeGraph
  • NodeGraphModelVixen.Editor.NodeGraph
  • NodeGraphViewVixen.Editor.NodeGraph
  • NodeInspectorVixen.Editor.NodeGraph
  • NodeSearchVixen.Editor.NodeGraph
  • NodeTypeDefinitionVixen.Editor.NodeGraph
  • NodeTypeRegistryVixen.Editor.NodeGraph
  • NodeTypingTestsVixen.Editor.NodeGraph.Tests
  • PortFilterVixen.Editor.NodeGraph
  • RecordingVixen.Editor.NodeGraph.Tests
  • SubGraphTestsVixen.Editor.NodeGraph.Tests
  • SubGraphsVixen.Editor.NodeGraph