Vixen
02b45cc4
csharp
public sealed class NodePortView

One socket, as an element.

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

Remarks

⚠ It exists to be hit, not to say where the wire goes. A wire's endpoint is worked out from the node's rectangle — see AnchorOf — because the node at the other end is very often culled and has no elements. What this is for is the pointer: a drag has to start on something, and a dot the theme can make bigger on hover is a better target than a coordinate the canvas compares against.

Fields and properties (6)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public GraphPort? Port

    The port it shows, or null if it is parked.

  • public UiElement Dot

    The dot a wire appears to come out of.

  • public UiElement Label

    The name beside it.

  • public NodePortEditor Fields

    The boxes an unconnected input's value is typed into.

Methods (1)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

Used by (7)

  • NodeCanvasVixen.Ui.Controls.Advanced
  • NodeCanvasTestsVixen.Ui.Controls.Advanced.Tests
  • NodeItemVixen.Ui.Controls.Advanced
  • NodeGraphViewVixen.Editor.NodeGraph
  • PortValueTestsVixen.Editor.NodeGraph.Tests
  • ViewFixtureVixen.Editor.NodeGraph.Tests
  • ViewTestsVixen.Editor.NodeGraph.Tests