PortView.cs declarations
Public API declaration excerpts from ../bitquirky-graph/Editor/GraphView/Views/PortView.cs.
Source snapshot 29003d8b1658.
On this page
Original file: ../bitquirky-graph/Editor/GraphView/Views/PortView.cs
Source file hash: sha256:70d6b2aa138f3befcbdd1542fc8b9732e41862aff6bf5aa782b130dc7c59f4a5
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-2202
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-524
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: 567
Declaration hash: sha256:b9be6568c518b23957e5ae4ee5ec1c11851d6cb85a25f28ee0e0ba9adfa3f2b3
public GuardRingElement GuardRing { get; }Property: GuardShield
Section titled “Property: GuardShield”Original lines: 574
Declaration hash: sha256:8225890b2911bb0eb65855ecbec209d69e549adc1124fa6e148efbf8ac706d9e
public GuardShieldElement GuardShield { get; }Event: GuardShieldClicked
Section titled “Event: GuardShieldClicked”Original lines: 580
Declaration hash: sha256:53b55ad16415b11be5535b8817b44a68069da57ebccb53784c82bc90a308d7e5
public event System.Action GuardShieldClicked;Property: LiteralEntryInvited
Section titled “Property: LiteralEntryInvited”Original lines: 592
Declaration hash: sha256:5b3bcd6e6bac8975d1a02f9bd33aaf8d09876582da08a266754b5451f3009a98
public bool LiteralEntryInvited { get; }Property: LiteralValidator
Section titled “Property: LiteralValidator”Original lines: 602-613
Declaration hash: sha256:76788ac01cd4d33951cb9cd22f974c456b96e627b1f497ee28f5ac1401f3563c
public Func<string, LiteralValidationResult> LiteralValidator { get; set; }Property: WiredLiteralNoEntryIcon
Section titled “Property: WiredLiteralNoEntryIcon”Original lines: 622
Declaration hash: sha256:8f987a31bd1f8cdfa710acce0230ad1c7bdd96dcad066ece199ff368bebe32b3
public VectorImage WiredLiteralNoEntryIcon { get; set; }Event: InlineLiteralCommitted
Section titled “Event: InlineLiteralCommitted”Original lines: 640
Declaration hash: sha256:2d254e7aa145fb461d2afc5fad20cb82bb2152fc87cac227ba7f22b054a4c63d
public event System.Action<PortView, string> InlineLiteralCommitted;Property: CompositeComponentValidator
Section titled “Property: CompositeComponentValidator”Original lines: 651-664
Declaration hash: sha256:702d2f448e5bd240fa291fc1b6c6c25474f529d28a9b6cbe4225981c66e76a76
public Func<PortDefinition, int, string, LiteralValidationResult> CompositeComponentValidator { get; set; }Event: CompositeLiteralCommitted
Section titled “Event: CompositeLiteralCommitted”Original lines: 671
Declaration hash: sha256:d4eaea037ac8d266d2d7c45f24574dbeb179e02aebd622df2b5899239bca2740
public event System.Action<PortView, IReadOnlyList<string>> CompositeLiteralCommitted;Property: CompositeClearValidator
Section titled “Property: CompositeClearValidator”Original lines: 682-695
Declaration hash: sha256:a22a72adc9fc14a2cca6644c7483005cfd941cab243de36c553c71903fe229eb
public Func<PortDefinition, LiteralValidationResult> CompositeClearValidator { get; set; }Event: InlineReferenceCommitted
Section titled “Event: InlineReferenceCommitted”Original lines: 701
Declaration hash: sha256:a8748e6e7e5cba4b1bbac915b80bf9656462efd67611a4e4396683ef22ebd56c
public event System.Action<PortView, string> InlineReferenceCommitted;Event: ObjectReferenceClicked
Section titled “Event: ObjectReferenceClicked”Original lines: 708
Declaration hash: sha256:4b3949044c778371245112ecf6da65ec54cd97c12dd5a71bce610a5dc28b1263
public event System.Action<PortView> ObjectReferenceClicked;Event: ObjectReferenceLocateRequested
Section titled “Event: ObjectReferenceLocateRequested”Original lines: 715
Declaration hash: sha256:dc44c200ca50c498a3749aa64407e6359cf8e6fcef77f3b23ceddb57bd975d87
public event System.Action<PortView> ObjectReferenceLocateRequested;Event: ObjectReferenceClearRequested
Section titled “Event: ObjectReferenceClearRequested”Original lines: 718
Declaration hash: sha256:33db7b4debf62b0f96276846f2dda971e920ef0aea017bc67cc57d08387bf30f
public event System.Action<PortView> ObjectReferenceClearRequested;Event: ObjectReferenceDropped
Section titled “Event: ObjectReferenceDropped”Original lines: 724
Declaration hash: sha256:75833c3777e890566aafa3753fbce6f0a0898d106c8f707164f74b6b1f127759
public event System.Action<PortView, IReadOnlyList<UnityEngine.Object>> ObjectReferenceDropped;Property: ObjectReferenceLocateIcon
Section titled “Property: ObjectReferenceLocateIcon”Original lines: 731-742
Declaration hash: sha256:c14c9b31a0abad9012eb7d7168a72ba4f48a6f2dc581b2b72c009d5e3fabe30d
public VectorImage ObjectReferenceLocateIcon { get; set; }Property: ObjectReferenceClearIcon
Section titled “Property: ObjectReferenceClearIcon”Original lines: 745-756
Declaration hash: sha256:fcd52b66c82b633980387c98447d8b7d602acd0dcdc4d4ea6899a8e8bfe71ae1
public VectorImage ObjectReferenceClearIcon { get; set; }Property: ObjectReferenceDropFilter
Section titled “Property: ObjectReferenceDropFilter”Original lines: 762-773
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: 784
Declaration hash: sha256:2431a0e187e00c9a5068c35c7811bfbd49091c86b9ee1c7983e743deaef372d4
public static bool IsLocateModifier(IMouseEvent evt);Event: Clicked
Section titled “Event: Clicked”Original lines: 794
Declaration hash: sha256:b60010e293113ec54103115b670d150d75760b9400b09bf5910afcaec347bc4e
public event Action<PortView> Clicked;Property: SplitToggle
Section titled “Property: SplitToggle”Original lines: 829
Declaration hash: sha256:487628cc5c595e5cd035fce8981c3aed8b2537c292dcbd646ef824f22a5337af
public Label SplitToggle { get; }Field: SplitChildIndentPx
Section titled “Field: SplitChildIndentPx”Original lines: 832
Declaration hash: sha256:502c86cc34e91ac4dfdc9463a446110b4f4caadfca4ff5ed3adb0d2178f72c8a
public const float SplitChildIndentPx = 12f;Field: MaxPinLabelChars
Section titled “Field: MaxPinLabelChars”Original lines: 851
Declaration hash: sha256:2269a0c4c4379684ff487b9b347316db1d71eacdae7c5dd10b6ab52a6b67bd52
public const int MaxPinLabelChars = 12;Method: TruncateLabelForPin(string label)
Section titled “Method: TruncateLabelForPin(string label)”Original lines: 870-885
Declaration hash: sha256:d4f54305960b17b52ff8bef450827253ab33eb8ceed2fee8cc3bde85389caf2a
public static string TruncateLabelForPin(string label);Field: DragCompatibleClassName
Section titled “Field: DragCompatibleClassName”Original lines: 909
Declaration hash: sha256:096a518c7a06c1d67cb426c7a5942012df91da76994df6b906dad22ee44dbf6f
public const string DragCompatibleClassName = "port-drag-compatible";Field: DragIncompatibleClassName
Section titled “Field: DragIncompatibleClassName”Original lines: 912
Declaration hash: sha256:7be32ab21f45846a74e56312460de92bab7720aaa0e84eccbc8a62c8dae2f260
public const string DragIncompatibleClassName = "port-drag-incompatible";Field: PassThroughPinOpacity
Section titled “Field: PassThroughPinOpacity”Original lines: 918
Declaration hash: sha256:ab10b87bcb3218d99d68e684b7490e388387cd61ecd4dacd7d8531391fdf5054
public const float PassThroughPinOpacity = 0.55f;Field: DormantPinOpacity
Section titled “Field: DormantPinOpacity”Original lines: 923
Declaration hash: sha256:3912c73d8cd71d3ea36c05cca54d39ce013c543e2a20243871f923e0adb83686
public const float DormantPinOpacity = 0.4f;Field: DragIncompatibleOpacity
Section titled “Field: DragIncompatibleOpacity”Original lines: 930
Declaration hash: sha256:34aa00a43d623e913cd1c3963aecc4857355d197db7b4d50eff7135fc2da97a7
public const float DragIncompatibleOpacity = 0.4f;Field: DragCompatibleOutlineWidth
Section titled “Field: DragCompatibleOutlineWidth”Original lines: 936
Declaration hash: sha256:a7921d4c7b80c85391baacb8fdd424de31e6088bb84d0ae947499bf91e218c73
public const float DragCompatibleOutlineWidth = 2f;Field: HollowGlyphStrokeWidth
Section titled “Field: HollowGlyphStrokeWidth”Original lines: 939
Declaration hash: sha256:035e88f3b7532b7926dacf0676e1f4db6d26e994c91ded4ff73de55761f7e81d
public const float HollowGlyphStrokeWidth = 2f;Method: ResolveValueGlyphStyle(PortDefinition port)
Section titled “Method: ResolveValueGlyphStyle(PortDefinition port)”Original lines: 960-978
Declaration hash: sha256:e76b6bd2b265c2227d5201bba6c2530e6602e076c7b0be315fa7d141f422a1dd
public static GraphPortGlyphStyle ResolveValueGlyphStyle(PortDefinition port);Method: SetDragCompatible(Color tint)
Section titled “Method: SetDragCompatible(Color tint)”Original lines: 1030-1040
Declaration hash: sha256:dd72782dcea820bf55b41b006fe75997e38a6799a3b1f91c77e36b865fdfd8a3
public void SetDragCompatible(Color tint);Method: SetDragIncompatible()
Section titled “Method: SetDragIncompatible()”Original lines: 1046-1056
Declaration hash: sha256:8c303bffe1fff7be674bfa21c0ef2882c6735f8f19fe260eda54c5a375d694d5
public void SetDragIncompatible();Method: ClearDragState()
Section titled “Method: ClearDragState()”Original lines: 1062-1067
Declaration hash: sha256:4b80aeaa4990add675792f5a151fd0d6ef30befe9cc35de4a06fb630beba40b6
public void ClearDragState();Method: SetPortVisualColor(Color color)
Section titled “Method: SetPortVisualColor(Color color)”Original lines: 1117-1145
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: 1166-1181
Declaration hash: sha256:ac562c2a6906d674dc17d37b756569d9586211c5a6e292747cb7a09e1323183e
public void SetPortVisualOutline(Color color, float width);Method: AlignHeaderPortVisualToTextBaseline(float visualTopInset)
Section titled “Method: AlignHeaderPortVisualToTextBaseline(float visualTopInset)”Original lines: 1191-1201
Declaration hash: sha256:a30c08f653c091a5f66b585fec75ff4ef93b444b170913f8812b30654523b54d
public void AlignHeaderPortVisualToTextBaseline(float visualTopInset);Event: SplitRequested
Section titled “Event: SplitRequested”Original lines: 1209
Declaration hash: sha256:057c25bde8235c77a737d15bbd833cd7c919e78ae58512c67a2ed888fbf617f8
public event Action<PortView> SplitRequested;Event: RecombineRequested
Section titled “Event: RecombineRequested”Original lines: 1215
Declaration hash: sha256:477903e87d3e82b1582299d59cc195ebed8a290da96ecc3608482880da043988
public event Action<PortView> RecombineRequested;Event: ShowInstanceAsWireRequested
Section titled “Event: ShowInstanceAsWireRequested”Original lines: 1222
Declaration hash: sha256:6a9d73f7990bcb7ac8b57278d1106d1369f71d9235db2a85390cbba97e035c9e
public event Action<PortView> ShowInstanceAsWireRequested;Event: ShowInstanceAsPillRequested
Section titled “Event: ShowInstanceAsPillRequested”Original lines: 1229
Declaration hash: sha256:2037a566be0ff11d319d5f994181fe2f460c5e6e91428b4a4c0257de3fc103d6
public event Action<PortView> ShowInstanceAsPillRequested;Type: PortLinkTarget
Section titled “Type: PortLinkTarget”Original lines: 1245-1269
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: 1254-1259
Declaration hash: sha256:a1661bd8f13ad57fdaea66baecf8e5666d5daaa553e31b697b6e4fc620143228
public PortLinkTarget(string label, Guid counterpartNodeId, string counterpartPortId);Property: Label
Section titled “Property: Label”Original lines: 1262
Declaration hash: sha256:6bf8b9190dcd09762ff9f4ad324cbd2edc2c0d139eeec539332bbc6f3a5be0c6
public string Label { get; }Property: CounterpartNodeId
Section titled “Property: CounterpartNodeId”Original lines: 1265
Declaration hash: sha256:391d03cb0c5d01d3100db9edae4c9957ded9aaa0f013ce6b77c49c0b1c78fd8c
public Guid CounterpartNodeId { get; }Property: CounterpartPortId
Section titled “Property: CounterpartPortId”Original lines: 1268
Declaration hash: sha256:55ab9aae44494fe1698efdd4078863cb3cb4b692fe60ab44c5e8a7c3463c6c90
public string CounterpartPortId { get; }Field: BreakNodeLinksLabel
Section titled “Field: BreakNodeLinksLabel”Original lines: 1272
Declaration hash: sha256:a842a50b21653f5a17781b7b289febd78f014ee16d5aebf824171e0df51f7e71
public const string BreakNodeLinksLabel = "Break node link(s)";Method: BreakLinkToLabel(string counterpart)
Section titled “Method: BreakLinkToLabel(string counterpart)”Original lines: 1275
Declaration hash: sha256:6a63c2bc348416785ab24372d75f0cc90d73d6d7310bd75d7efa8faba266c952
public static string BreakLinkToLabel(string counterpart);Property: LinkTargets
Section titled “Property: LinkTargets”Original lines: 1282
Declaration hash: sha256:e2e716eb65c31fafdbf6eafa2bc01f5bcc3328759cb7a66d6d88025d19e0bc93
public IReadOnlyList<PortLinkTarget> LinkTargets { get; }Event: BreakAllLinksRequested
Section titled “Event: BreakAllLinksRequested”Original lines: 1288
Declaration hash: sha256:2531b6295420e43907698b39643f86feb8f77a6fd9d860fdcee02dc1e24f4c5f
public event Action<PortView> BreakAllLinksRequested;Event: BreakLinkToRequested
Section titled “Event: BreakLinkToRequested”Original lines: 1294
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: 1302-1309
Declaration hash: sha256:649d6e2a0a27fa7d8e8a32a4d73ff3b53fa213a086b7e47fe26b1cfa0d1ef49a
public void SetLinkTargets(IReadOnlyList<PortLinkTarget> targets);Field: ShowAsWireLabel
Section titled “Field: ShowAsWireLabel”Original lines: 1312
Declaration hash: sha256:e1db9168a76aa440348f928e1f71184843d53e0c14a53a83f2a4a6199c7bf1a6
public const string ShowAsWireLabel = "Show as wire";Field: ShowAsPillLabel
Section titled “Field: ShowAsPillLabel”Original lines: 1315
Declaration hash: sha256:2a646b589358e899813685b9d0f7358037d72fe213745091e23072c840fd96fa
public const string ShowAsPillLabel = "Show as pill";Field: SplitReadLabel
Section titled “Field: SplitReadLabel”Original lines: 1318
Declaration hash: sha256:363518d652106e1536b15261e288f844fa8c985f3d47c2ecf5cea05dfa6803cc
public const string SplitReadLabel = "Split into own pill";Field: RecombineReadLabel
Section titled “Field: RecombineReadLabel”Original lines: 1321
Declaration hash: sha256:013124965a2e9ead70b037b51faed542d32eb93ab49bd677caa24009f3a85d29
public const string RecombineReadLabel = "Recombine";Event: SplitReadRequested
Section titled “Event: SplitReadRequested”Original lines: 1327
Declaration hash: sha256:b6a0a552469226f55def9176e7745b83045a190093ddb4ff8ee99f076338a95f
public event Action<PortView> SplitReadRequested;Event: RecombineReadRequested
Section titled “Event: RecombineReadRequested”Original lines: 1334
Declaration hash: sha256:79f635e45f0a7eb70f6a456f13afb449f4d9c916cf9475a088997deb09a1e3e0
public event Action<PortView> RecombineReadRequested;Method: GetContextMenuActionLabels()
Section titled “Method: GetContextMenuActionLabels()”Original lines: 1589-1598
Declaration hash: sha256:71b8f810aa21ff68bf4b614fc43cdcec3e27da54829671a9e7a185a1fec26a60
public IReadOnlyList<string> GetContextMenuActionLabels();Method: GetWorldPositionForEdge()
Section titled “Method: GetWorldPositionForEdge()”Original lines: 1604-1608
Declaration hash: sha256:1cd52fab8ab8f775bf19956c038c567aeed3f0790d284fdf59b14c8ebecae67d
public Vector2 GetWorldPositionForEdge();Method: SetLabelColor(Color color)
Section titled “Method: SetLabelColor(Color color)”Original lines: 1613-1616
Declaration hash: sha256:0e77a33c7c983eb3976b9c8cb2bb2347ddb97b7c8c17a38b8fc07b941c7767c2
public void SetLabelColor(Color color);Method: OpenLiteralEditor()
Section titled “Method: OpenLiteralEditor()”Original lines: 1759-1785
Declaration hash: sha256:34f7c9cd7e59fefbb7055b66f9db324590d532fb1bdabec9187ce833cb18c328
public InlineLiteralElement OpenLiteralEditor();Method: OpenCompositeEditor(int componentIndex)
Section titled “Method: OpenCompositeEditor(int componentIndex)”Original lines: 1795-1804
Declaration hash: sha256:622c4b25cbf3ef620f69603652d78ba73693431633e7ebeaf08e96770eb67894
public CompositeLiteralElement OpenCompositeEditor(int componentIndex = 0);Property: ExternalBadgeContainer
Section titled “Property: ExternalBadgeContainer”Original lines: 1907
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: 1930-1931
Declaration hash: sha256:02b080c2e31727025229f7d38f30e7b10a0b0e337ad390651a5f9e4e9d464513
public static float ExternalBadgeLeft(bool isInput, float anchorX, float width);Event: ValuePressed
Section titled “Event: ValuePressed”Original lines: 2025
Declaration hash: sha256:e5d18d43da7a82c6792c4ac37faebfe8db8b5267dfef2f33ae179faf842b0faa
public event System.Action<PortView> ValuePressed;Method: RefreshExternalBadgeLayer()
Section titled “Method: RefreshExternalBadgeLayer()”Original lines: 2052-2086
Declaration hash: sha256:126dc79d6b20d4e323dea5fbda4723d826aa3a55c9b42f0178f9ad43c7666563
public void RefreshExternalBadgeLayer();