PortView.cs declarations
Public API declaration excerpts from ../bitquirky-graph/Editor/GraphView/Views/PortView.cs.
Source snapshot ad0983d00d77.
On this page
Original file: ../bitquirky-graph/Editor/GraphView/Views/PortView.cs
Source file hash: sha256:77f7fb699c75ced379219af4993a27f56bae6e16d8bbc6faf99238527aee0716
Only public declaration headers are shown. Implementation bodies, non-public code, and source comments are omitted.
Type: PortView
Section titled “Type: PortView”Original lines: 25-1995
Declaration hash: sha256:19d9c526fe7bdf1668075d68258eb8e0f614f2028219ab62f368c68afddad1c0
public class PortView : VisualElement{}Property: Port
Section titled “Property: Port”Original lines: 28
Declaration hash: sha256:ea45a9308297f9abfaaee81790d2d541738aa7935d0d6d1f7893aff67f38d87c
public PortDefinition Port { get; }Property: IsInput
Section titled “Property: IsInput”Original lines: 30
Declaration hash: sha256:a567831bf0e21dd81a0c7add99910bcc6adfea825a61add8994c31e62f39454e
public bool IsInput { get; }Property: IsExecution
Section titled “Property: IsExecution”Original lines: 32
Declaration hash: sha256:0bef9b08651d2ee6828271a868d3a8a98974c77b3557b176b44eb0e7ac95aefd
public bool IsExecution { get; }Property: IsAddPinButton
Section titled “Property: IsAddPinButton”Original lines: 34
Declaration hash: sha256:0a11e685aa402c369e496e001fd398563fb80afc6a2a6e18b054f1d71285c609
public bool IsAddPinButton { get; }Property: PortVisual
Section titled “Property: PortVisual”Original lines: 36
Declaration hash: sha256:de111b663d6a0ce434e33ac97ab7fc620dd6f9bc2dccd0ed3928653a5f06dbe1
public VisualElement PortVisual { get; }Property: PortLabel
Section titled “Property: PortLabel”Original lines: 38
Declaration hash: sha256:17f2e8bfdca5481fd5d743e1ba7bcf0ce76f4af6deea01ff670c81d59e63d229
public Label PortLabel { get; }Property: InlineLiteral
Section titled “Property: InlineLiteral”Original lines: 40
Declaration hash: sha256:3573da30c5c9c8a748e4dccb89fe6ce335e7c690d0c5037c979a042c077e3ec7
public InlineLiteralElement InlineLiteral { get; }Property: CompositeLiteral
Section titled “Property: CompositeLiteral”Original lines: 46
Declaration hash: sha256:27d9264782294cf3c3de921333d961818aca30e51dd84e0023aa846ea89296c4
public CompositeLiteralElement CompositeLiteral { get; }Property: InlineReference
Section titled “Property: InlineReference”Original lines: 48
Declaration hash: sha256:0f2df978ddf4f3e670dfdb37b543f34a7fbacbd13c7fe3eaa6159ff6120f157d
public InlineReferenceElement InlineReference { get; }Property: InlineObjectReference
Section titled “Property: InlineObjectReference”Original lines: 55
Declaration hash: sha256:25783d640c9ecc0a4f577cb52aba2446040c48a3eb8b3b4dcc2731757b027f8c
public InlineObjectReferenceElement InlineObjectReference { get; }Property: GlyphStyle
Section titled “Property: GlyphStyle”Original lines: 58
Declaration hash: sha256:a020fb125cbd97148b2e45d048a81910aaa01e363c93eeee875f1056a977d795
public GraphPortGlyphStyle GlyphStyle { get; }Method: PortView(PortDefinition port, bool isInput, Color? labelColor, bool showLabel, bool literalEditable, GraphPortGlyphStyle glyphStyle, bool literalEntryInvited)
Section titled “Method: PortView(PortDefinition port, bool isInput, Color? labelColor, bool showLabel, bool literalEditable, GraphPortGlyphStyle glyphStyle, bool literalEntryInvited)”Original lines: 70-523
Declaration hash: sha256:5617f70463ce90990f0d21ea9e2240db7d851a98d520bb8c9451cc159c6cb61e
public PortView(PortDefinition port, bool isInput, Color? labelColor = null, bool showLabel = true, bool literalEditable = false, GraphPortGlyphStyle glyphStyle = GraphPortGlyphStyle.Filled, bool literalEntryInvited = false);Property: GuardRing
Section titled “Property: GuardRing”Original lines: 566
Declaration hash: sha256:b9be6568c518b23957e5ae4ee5ec1c11851d6cb85a25f28ee0e0ba9adfa3f2b3
public GuardRingElement GuardRing { get; }Property: GuardShield
Section titled “Property: GuardShield”Original lines: 573
Declaration hash: sha256:8225890b2911bb0eb65855ecbec209d69e549adc1124fa6e148efbf8ac706d9e
public GuardShieldElement GuardShield { get; }Event: GuardShieldClicked
Section titled “Event: GuardShieldClicked”Original lines: 579
Declaration hash: sha256:53b55ad16415b11be5535b8817b44a68069da57ebccb53784c82bc90a308d7e5
public event System.Action GuardShieldClicked;Property: LiteralEntryInvited
Section titled “Property: LiteralEntryInvited”Original lines: 591
Declaration hash: sha256:5b3bcd6e6bac8975d1a02f9bd33aaf8d09876582da08a266754b5451f3009a98
public bool LiteralEntryInvited { get; }Property: LiteralValidator
Section titled “Property: LiteralValidator”Original lines: 601-612
Declaration hash: sha256:76788ac01cd4d33951cb9cd22f974c456b96e627b1f497ee28f5ac1401f3563c
public Func<string, LiteralValidationResult> LiteralValidator { get; set; }Property: WiredLiteralNoEntryIcon
Section titled “Property: WiredLiteralNoEntryIcon”Original lines: 621
Declaration hash: sha256:8f987a31bd1f8cdfa710acce0230ad1c7bdd96dcad066ece199ff368bebe32b3
public VectorImage WiredLiteralNoEntryIcon { get; set; }Event: InlineLiteralCommitted
Section titled “Event: InlineLiteralCommitted”Original lines: 639
Declaration hash: sha256:2d254e7aa145fb461d2afc5fad20cb82bb2152fc87cac227ba7f22b054a4c63d
public event System.Action<PortView, string> InlineLiteralCommitted;Property: CompositeComponentValidator
Section titled “Property: CompositeComponentValidator”Original lines: 650-663
Declaration hash: sha256:702d2f448e5bd240fa291fc1b6c6c25474f529d28a9b6cbe4225981c66e76a76
public Func<PortDefinition, int, string, LiteralValidationResult> CompositeComponentValidator { get; set; }Event: CompositeLiteralCommitted
Section titled “Event: CompositeLiteralCommitted”Original lines: 670
Declaration hash: sha256:d4eaea037ac8d266d2d7c45f24574dbeb179e02aebd622df2b5899239bca2740
public event System.Action<PortView, IReadOnlyList<string>> CompositeLiteralCommitted;Property: CompositeClearValidator
Section titled “Property: CompositeClearValidator”Original lines: 681-694
Declaration hash: sha256:a22a72adc9fc14a2cca6644c7483005cfd941cab243de36c553c71903fe229eb
public Func<PortDefinition, LiteralValidationResult> CompositeClearValidator { get; set; }Event: InlineReferenceCommitted
Section titled “Event: InlineReferenceCommitted”Original lines: 700
Declaration hash: sha256:a8748e6e7e5cba4b1bbac915b80bf9656462efd67611a4e4396683ef22ebd56c
public event System.Action<PortView, string> InlineReferenceCommitted;Event: ObjectReferenceClicked
Section titled “Event: ObjectReferenceClicked”Original lines: 707
Declaration hash: sha256:4b3949044c778371245112ecf6da65ec54cd97c12dd5a71bce610a5dc28b1263
public event System.Action<PortView> ObjectReferenceClicked;Event: ObjectReferenceLocateRequested
Section titled “Event: ObjectReferenceLocateRequested”Original lines: 714
Declaration hash: sha256:dc44c200ca50c498a3749aa64407e6359cf8e6fcef77f3b23ceddb57bd975d87
public event System.Action<PortView> ObjectReferenceLocateRequested;Event: ObjectReferenceClearRequested
Section titled “Event: ObjectReferenceClearRequested”Original lines: 717
Declaration hash: sha256:33db7b4debf62b0f96276846f2dda971e920ef0aea017bc67cc57d08387bf30f
public event System.Action<PortView> ObjectReferenceClearRequested;Event: ObjectReferenceDropped
Section titled “Event: ObjectReferenceDropped”Original lines: 723
Declaration hash: sha256:75833c3777e890566aafa3753fbce6f0a0898d106c8f707164f74b6b1f127759
public event System.Action<PortView, IReadOnlyList<UnityEngine.Object>> ObjectReferenceDropped;Property: ObjectReferenceLocateIcon
Section titled “Property: ObjectReferenceLocateIcon”Original lines: 730-741
Declaration hash: sha256:c14c9b31a0abad9012eb7d7168a72ba4f48a6f2dc581b2b72c009d5e3fabe30d
public VectorImage ObjectReferenceLocateIcon { get; set; }Property: ObjectReferenceClearIcon
Section titled “Property: ObjectReferenceClearIcon”Original lines: 744-755
Declaration hash: sha256:fcd52b66c82b633980387c98447d8b7d602acd0dcdc4d4ea6899a8e8bfe71ae1
public VectorImage ObjectReferenceClearIcon { get; set; }Property: ObjectReferenceDropFilter
Section titled “Property: ObjectReferenceDropFilter”Original lines: 761-772
Declaration hash: sha256:6f55e058b98b324dd2f2ddbcf92a7d328af61a15eeade8a1712b742fbe7814fb
public Func<IReadOnlyList<UnityEngine.Object>, bool> ObjectReferenceDropFilter { get; set; }Method: IsLocateModifier(IMouseEvent evt)
Section titled “Method: IsLocateModifier(IMouseEvent evt)”Original lines: 783
Declaration hash: sha256:2431a0e187e00c9a5068c35c7811bfbd49091c86b9ee1c7983e743deaef372d4
public static bool IsLocateModifier(IMouseEvent evt);Event: Clicked
Section titled “Event: Clicked”Original lines: 793
Declaration hash: sha256:b60010e293113ec54103115b670d150d75760b9400b09bf5910afcaec347bc4e
public event Action<PortView> Clicked;Property: SplitToggle
Section titled “Property: SplitToggle”Original lines: 828
Declaration hash: sha256:487628cc5c595e5cd035fce8981c3aed8b2537c292dcbd646ef824f22a5337af
public Label SplitToggle { get; }Field: SplitChildIndentPx
Section titled “Field: SplitChildIndentPx”Original lines: 831
Declaration hash: sha256:502c86cc34e91ac4dfdc9463a446110b4f4caadfca4ff5ed3adb0d2178f72c8a
public const float SplitChildIndentPx = 12f;Field: MaxPinLabelChars
Section titled “Field: MaxPinLabelChars”Original lines: 850
Declaration hash: sha256:2269a0c4c4379684ff487b9b347316db1d71eacdae7c5dd10b6ab52a6b67bd52
public const int MaxPinLabelChars = 12;Method: TruncateLabelForPin(string label)
Section titled “Method: TruncateLabelForPin(string label)”Original lines: 859-866
Declaration hash: sha256:d4f54305960b17b52ff8bef450827253ab33eb8ceed2fee8cc3bde85389caf2a
public static string TruncateLabelForPin(string label);Field: DragCompatibleClassName
Section titled “Field: DragCompatibleClassName”Original lines: 877
Declaration hash: sha256:096a518c7a06c1d67cb426c7a5942012df91da76994df6b906dad22ee44dbf6f
public const string DragCompatibleClassName = "port-drag-compatible";Field: DragIncompatibleClassName
Section titled “Field: DragIncompatibleClassName”Original lines: 880
Declaration hash: sha256:7be32ab21f45846a74e56312460de92bab7720aaa0e84eccbc8a62c8dae2f260
public const string DragIncompatibleClassName = "port-drag-incompatible";Field: PassThroughPinOpacity
Section titled “Field: PassThroughPinOpacity”Original lines: 886
Declaration hash: sha256:ab10b87bcb3218d99d68e684b7490e388387cd61ecd4dacd7d8531391fdf5054
public const float PassThroughPinOpacity = 0.55f;Field: DormantPinOpacity
Section titled “Field: DormantPinOpacity”Original lines: 891
Declaration hash: sha256:3912c73d8cd71d3ea36c05cca54d39ce013c543e2a20243871f923e0adb83686
public const float DormantPinOpacity = 0.4f;Field: DragIncompatibleOpacity
Section titled “Field: DragIncompatibleOpacity”Original lines: 898
Declaration hash: sha256:34aa00a43d623e913cd1c3963aecc4857355d197db7b4d50eff7135fc2da97a7
public const float DragIncompatibleOpacity = 0.4f;Field: DragCompatibleOutlineWidth
Section titled “Field: DragCompatibleOutlineWidth”Original lines: 904
Declaration hash: sha256:a7921d4c7b80c85391baacb8fdd424de31e6088bb84d0ae947499bf91e218c73
public const float DragCompatibleOutlineWidth = 2f;Field: HollowGlyphStrokeWidth
Section titled “Field: HollowGlyphStrokeWidth”Original lines: 907
Declaration hash: sha256:035e88f3b7532b7926dacf0676e1f4db6d26e994c91ded4ff73de55761f7e81d
public const float HollowGlyphStrokeWidth = 2f;Method: ResolveValueGlyphStyle(PortDefinition port)
Section titled “Method: ResolveValueGlyphStyle(PortDefinition port)”Original lines: 928-946
Declaration hash: sha256:e76b6bd2b265c2227d5201bba6c2530e6602e076c7b0be315fa7d141f422a1dd
public static GraphPortGlyphStyle ResolveValueGlyphStyle(PortDefinition port);Method: SetDragCompatible(Color tint)
Section titled “Method: SetDragCompatible(Color tint)”Original lines: 998-1008
Declaration hash: sha256:dd72782dcea820bf55b41b006fe75997e38a6799a3b1f91c77e36b865fdfd8a3
public void SetDragCompatible(Color tint);Method: SetDragIncompatible()
Section titled “Method: SetDragIncompatible()”Original lines: 1014-1024
Declaration hash: sha256:8c303bffe1fff7be674bfa21c0ef2882c6735f8f19fe260eda54c5a375d694d5
public void SetDragIncompatible();Method: ClearDragState()
Section titled “Method: ClearDragState()”Original lines: 1030-1035
Declaration hash: sha256:4b80aeaa4990add675792f5a151fd0d6ef30befe9cc35de4a06fb630beba40b6
public void ClearDragState();Method: SetPortVisualColor(Color color)
Section titled “Method: SetPortVisualColor(Color color)”Original lines: 1085-1113
Declaration hash: sha256:8cb36c767631b1bf824e465dff21c54eb776bdb44cb1c32097aaa310b7b33c5b
public void SetPortVisualColor(Color color);Method: SetPortVisualOutline(Color color, float width)
Section titled “Method: SetPortVisualOutline(Color color, float width)”Original lines: 1134-1149
Declaration hash: sha256:ac562c2a6906d674dc17d37b756569d9586211c5a6e292747cb7a09e1323183e
public void SetPortVisualOutline(Color color, float width);Method: AlignHeaderPortVisualToTextBaseline(float visualTopOffset)
Section titled “Method: AlignHeaderPortVisualToTextBaseline(float visualTopOffset)”Original lines: 1155-1164
Declaration hash: sha256:24feb440efcf9310b6f06b8b98180bab5c2fb659b6c7aac9f05921510e93dffe
public void AlignHeaderPortVisualToTextBaseline(float visualTopOffset);Event: SplitRequested
Section titled “Event: SplitRequested”Original lines: 1172
Declaration hash: sha256:057c25bde8235c77a737d15bbd833cd7c919e78ae58512c67a2ed888fbf617f8
public event Action<PortView> SplitRequested;Event: RecombineRequested
Section titled “Event: RecombineRequested”Original lines: 1178
Declaration hash: sha256:477903e87d3e82b1582299d59cc195ebed8a290da96ecc3608482880da043988
public event Action<PortView> RecombineRequested;Event: ShowInstanceAsWireRequested
Section titled “Event: ShowInstanceAsWireRequested”Original lines: 1185
Declaration hash: sha256:6a9d73f7990bcb7ac8b57278d1106d1369f71d9235db2a85390cbba97e035c9e
public event Action<PortView> ShowInstanceAsWireRequested;Event: ShowInstanceAsPillRequested
Section titled “Event: ShowInstanceAsPillRequested”Original lines: 1192
Declaration hash: sha256:2037a566be0ff11d319d5f994181fe2f460c5e6e91428b4a4c0257de3fc103d6
public event Action<PortView> ShowInstanceAsPillRequested;Type: PortLinkTarget
Section titled “Type: PortLinkTarget”Original lines: 1208-1232
Declaration hash: sha256:95c3de3bd1eef8c2a10bf66c52f12b74395b4961d252e3877fea8ad71f2f7500
public readonly struct PortLinkTarget{}Method: PortLinkTarget(string label, Guid counterpartNodeId, string counterpartPortId)
Section titled “Method: PortLinkTarget(string label, Guid counterpartNodeId, string counterpartPortId)”Original lines: 1217-1222
Declaration hash: sha256:a1661bd8f13ad57fdaea66baecf8e5666d5daaa553e31b697b6e4fc620143228
public PortLinkTarget(string label, Guid counterpartNodeId, string counterpartPortId);Property: Label
Section titled “Property: Label”Original lines: 1225
Declaration hash: sha256:6bf8b9190dcd09762ff9f4ad324cbd2edc2c0d139eeec539332bbc6f3a5be0c6
public string Label { get; }Property: CounterpartNodeId
Section titled “Property: CounterpartNodeId”Original lines: 1228
Declaration hash: sha256:391d03cb0c5d01d3100db9edae4c9957ded9aaa0f013ce6b77c49c0b1c78fd8c
public Guid CounterpartNodeId { get; }Property: CounterpartPortId
Section titled “Property: CounterpartPortId”Original lines: 1231
Declaration hash: sha256:55ab9aae44494fe1698efdd4078863cb3cb4b692fe60ab44c5e8a7c3463c6c90
public string CounterpartPortId { get; }Field: BreakNodeLinksLabel
Section titled “Field: BreakNodeLinksLabel”Original lines: 1235
Declaration hash: sha256:fe4b2185103f16672b2b99c1ed6d53b00d9e5b1f917ba7b2e9b97ad1d610b39c
public const string BreakNodeLinksLabel = "Break Node Link(s)";Method: BreakLinkToLabel(string counterpart)
Section titled “Method: BreakLinkToLabel(string counterpart)”Original lines: 1238
Declaration hash: sha256:6a63c2bc348416785ab24372d75f0cc90d73d6d7310bd75d7efa8faba266c952
public static string BreakLinkToLabel(string counterpart);Property: LinkTargets
Section titled “Property: LinkTargets”Original lines: 1245
Declaration hash: sha256:e2e716eb65c31fafdbf6eafa2bc01f5bcc3328759cb7a66d6d88025d19e0bc93
public IReadOnlyList<PortLinkTarget> LinkTargets { get; }Event: BreakAllLinksRequested
Section titled “Event: BreakAllLinksRequested”Original lines: 1251
Declaration hash: sha256:2531b6295420e43907698b39643f86feb8f77a6fd9d860fdcee02dc1e24f4c5f
public event Action<PortView> BreakAllLinksRequested;Event: BreakLinkToRequested
Section titled “Event: BreakLinkToRequested”Original lines: 1257
Declaration hash: sha256:ee2cdc35fdc1e612b6312d4558fa7017f534e9322ba21885e42e72872c303d28
public event Action<PortView, PortLinkTarget> BreakLinkToRequested;Method: SetLinkTargets(IReadOnlyList<PortView.PortLinkTarget> targets)
Section titled “Method: SetLinkTargets(IReadOnlyList<PortView.PortLinkTarget> targets)”Original lines: 1265-1272
Declaration hash: sha256:649d6e2a0a27fa7d8e8a32a4d73ff3b53fa213a086b7e47fe26b1cfa0d1ef49a
public void SetLinkTargets(IReadOnlyList<PortLinkTarget> targets);Field: ShowAsWireLabel
Section titled “Field: ShowAsWireLabel”Original lines: 1275
Declaration hash: sha256:444e9e04e2aacb0a0dbbb204db132193e2a687b2d38939f70347bf7f461ad868
public const string ShowAsWireLabel = "Show as Wire";Field: ShowAsPillLabel
Section titled “Field: ShowAsPillLabel”Original lines: 1278
Declaration hash: sha256:9484febc81dbb07f4a56184a15ab720431bd8d994eaaa7ba5892be5acd3767a3
public const string ShowAsPillLabel = "Show as Pill";Method: GetContextMenuActionLabels()
Section titled “Method: GetContextMenuActionLabels()”Original lines: 1426-1435
Declaration hash: sha256:71b8f810aa21ff68bf4b614fc43cdcec3e27da54829671a9e7a185a1fec26a60
public IReadOnlyList<string> GetContextMenuActionLabels();Method: GetWorldPositionForEdge()
Section titled “Method: GetWorldPositionForEdge()”Original lines: 1441-1445
Declaration hash: sha256:1cd52fab8ab8f775bf19956c038c567aeed3f0790d284fdf59b14c8ebecae67d
public Vector2 GetWorldPositionForEdge();Method: SetLabelColor(Color color)
Section titled “Method: SetLabelColor(Color color)”Original lines: 1450-1453
Declaration hash: sha256:0e77a33c7c983eb3976b9c8cb2bb2347ddb97b7c8c17a38b8fc07b941c7767c2
public void SetLabelColor(Color color);Method: OpenLiteralEditor()
Section titled “Method: OpenLiteralEditor()”Original lines: 1591-1615
Declaration hash: sha256:34f7c9cd7e59fefbb7055b66f9db324590d532fb1bdabec9187ce833cb18c328
public InlineLiteralElement OpenLiteralEditor();Method: OpenCompositeEditor(int componentIndex)
Section titled “Method: OpenCompositeEditor(int componentIndex)”Original lines: 1625-1634
Declaration hash: sha256:622c4b25cbf3ef620f69603652d78ba73693431633e7ebeaf08e96770eb67894
public CompositeLiteralElement OpenCompositeEditor(int componentIndex = 0);Property: ExternalBadgeContainer
Section titled “Property: ExternalBadgeContainer”Original lines: 1736
Declaration hash: sha256:8937d26170bd4e56d922ff48dad732241a7335a0ec31d30b699702036b92732b
public VisualElement ExternalBadgeContainer { get; }Method: ExternalBadgeLeft(bool isInput, float anchorX, float width)
Section titled “Method: ExternalBadgeLeft(bool isInput, float anchorX, float width)”Original lines: 1759-1760
Declaration hash: sha256:02b080c2e31727025229f7d38f30e7b10a0b0e337ad390651a5f9e4e9d464513
public static float ExternalBadgeLeft(bool isInput, float anchorX, float width);Method: RefreshExternalBadgeLayer()
Section titled “Method: RefreshExternalBadgeLayer()”Original lines: 1851-1885
Declaration hash: sha256:126dc79d6b20d4e323dea5fbda4723d826aa3a55c9b42f0178f9ad43c7666563
public void RefreshExternalBadgeLayer();