Skip to content
Bit Quirky Behavior Trees and
State Machines

Search documentation

All topics and APIs

Close returns focus to Search.

What are you looking for?

Try a common topic or enter a complete API identifier.

Browse the reference instead

Esc closes · Tab reaches results · Enter opens the focused link

v0.6.0
Menu

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.

Original lines: 25-1995

Declaration hash: sha256:19d9c526fe7bdf1668075d68258eb8e0f614f2028219ab62f368c68afddad1c0

C#
public class PortView : VisualElement
{
}

Original lines: 28

Declaration hash: sha256:ea45a9308297f9abfaaee81790d2d541738aa7935d0d6d1f7893aff67f38d87c

C#
public PortDefinition Port { get; }

Original lines: 30

Declaration hash: sha256:a567831bf0e21dd81a0c7add99910bcc6adfea825a61add8994c31e62f39454e

C#
public bool IsInput { get; }

Original lines: 32

Declaration hash: sha256:0bef9b08651d2ee6828271a868d3a8a98974c77b3557b176b44eb0e7ac95aefd

C#
public bool IsExecution { get; }

Original lines: 34

Declaration hash: sha256:0a11e685aa402c369e496e001fd398563fb80afc6a2a6e18b054f1d71285c609

C#
public bool IsAddPinButton { get; }

Original lines: 36

Declaration hash: sha256:de111b663d6a0ce434e33ac97ab7fc620dd6f9bc2dccd0ed3928653a5f06dbe1

C#
public VisualElement PortVisual { get; }

Original lines: 38

Declaration hash: sha256:17f2e8bfdca5481fd5d743e1ba7bcf0ce76f4af6deea01ff670c81d59e63d229

C#
public Label PortLabel { get; }

Original lines: 40

Declaration hash: sha256:3573da30c5c9c8a748e4dccb89fe6ce335e7c690d0c5037c979a042c077e3ec7

C#
public InlineLiteralElement InlineLiteral { get; }

Original lines: 46

Declaration hash: sha256:27d9264782294cf3c3de921333d961818aca30e51dd84e0023aa846ea89296c4

C#
public CompositeLiteralElement CompositeLiteral { get; }

Original lines: 48

Declaration hash: sha256:0f2df978ddf4f3e670dfdb37b543f34a7fbacbd13c7fe3eaa6159ff6120f157d

C#
public InlineReferenceElement InlineReference { get; }

Original lines: 55

Declaration hash: sha256:25783d640c9ecc0a4f577cb52aba2446040c48a3eb8b3b4dcc2731757b027f8c

C#
public InlineObjectReferenceElement InlineObjectReference { get; }

Original lines: 58

Declaration hash: sha256:a020fb125cbd97148b2e45d048a81910aaa01e363c93eeee875f1056a977d795

C#
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

C#
public PortView(PortDefinition port, bool isInput, Color? labelColor = null, bool showLabel = true, bool literalEditable = false, GraphPortGlyphStyle glyphStyle = GraphPortGlyphStyle.Filled, bool literalEntryInvited = false);

Original lines: 566

Declaration hash: sha256:b9be6568c518b23957e5ae4ee5ec1c11851d6cb85a25f28ee0e0ba9adfa3f2b3

C#
public GuardRingElement GuardRing { get; }

Original lines: 573

Declaration hash: sha256:8225890b2911bb0eb65855ecbec209d69e549adc1124fa6e148efbf8ac706d9e

C#
public GuardShieldElement GuardShield { get; }

Original lines: 579

Declaration hash: sha256:53b55ad16415b11be5535b8817b44a68069da57ebccb53784c82bc90a308d7e5

C#
public event System.Action GuardShieldClicked;

Original lines: 591

Declaration hash: sha256:5b3bcd6e6bac8975d1a02f9bd33aaf8d09876582da08a266754b5451f3009a98

C#
public bool LiteralEntryInvited { get; }

Original lines: 601-612

Declaration hash: sha256:76788ac01cd4d33951cb9cd22f974c456b96e627b1f497ee28f5ac1401f3563c

C#
public Func<string, LiteralValidationResult> LiteralValidator { get; set; }

Original lines: 621

Declaration hash: sha256:8f987a31bd1f8cdfa710acce0230ad1c7bdd96dcad066ece199ff368bebe32b3

C#
public VectorImage WiredLiteralNoEntryIcon { get; set; }

Original lines: 639

Declaration hash: sha256:2d254e7aa145fb461d2afc5fad20cb82bb2152fc87cac227ba7f22b054a4c63d

C#
public event System.Action<PortView, string> InlineLiteralCommitted;

Original lines: 650-663

Declaration hash: sha256:702d2f448e5bd240fa291fc1b6c6c25474f529d28a9b6cbe4225981c66e76a76

C#
public Func<PortDefinition, int, string, LiteralValidationResult> CompositeComponentValidator { get; set; }

Original lines: 670

Declaration hash: sha256:d4eaea037ac8d266d2d7c45f24574dbeb179e02aebd622df2b5899239bca2740

C#
public event System.Action<PortView, IReadOnlyList<string>> CompositeLiteralCommitted;

Original lines: 681-694

Declaration hash: sha256:a22a72adc9fc14a2cca6644c7483005cfd941cab243de36c553c71903fe229eb

C#
public Func<PortDefinition, LiteralValidationResult> CompositeClearValidator { get; set; }

Original lines: 700

Declaration hash: sha256:a8748e6e7e5cba4b1bbac915b80bf9656462efd67611a4e4396683ef22ebd56c

C#
public event System.Action<PortView, string> InlineReferenceCommitted;

Original lines: 707

Declaration hash: sha256:4b3949044c778371245112ecf6da65ec54cd97c12dd5a71bce610a5dc28b1263

C#
public event System.Action<PortView> ObjectReferenceClicked;

Original lines: 714

Declaration hash: sha256:dc44c200ca50c498a3749aa64407e6359cf8e6fcef77f3b23ceddb57bd975d87

C#
public event System.Action<PortView> ObjectReferenceLocateRequested;

Original lines: 717

Declaration hash: sha256:33db7b4debf62b0f96276846f2dda971e920ef0aea017bc67cc57d08387bf30f

C#
public event System.Action<PortView> ObjectReferenceClearRequested;

Original lines: 723

Declaration hash: sha256:75833c3777e890566aafa3753fbce6f0a0898d106c8f707164f74b6b1f127759

C#
public event System.Action<PortView, IReadOnlyList<UnityEngine.Object>> ObjectReferenceDropped;

Original lines: 730-741

Declaration hash: sha256:c14c9b31a0abad9012eb7d7168a72ba4f48a6f2dc581b2b72c009d5e3fabe30d

C#
public VectorImage ObjectReferenceLocateIcon { get; set; }

Original lines: 744-755

Declaration hash: sha256:fcd52b66c82b633980387c98447d8b7d602acd0dcdc4d4ea6899a8e8bfe71ae1

C#
public VectorImage ObjectReferenceClearIcon { get; set; }

Original lines: 761-772

Declaration hash: sha256:6f55e058b98b324dd2f2ddbcf92a7d328af61a15eeade8a1712b742fbe7814fb

C#
public Func<IReadOnlyList<UnityEngine.Object>, bool> ObjectReferenceDropFilter { get; set; }

Original lines: 783

Declaration hash: sha256:2431a0e187e00c9a5068c35c7811bfbd49091c86b9ee1c7983e743deaef372d4

C#
public static bool IsLocateModifier(IMouseEvent evt);

Original lines: 793

Declaration hash: sha256:b60010e293113ec54103115b670d150d75760b9400b09bf5910afcaec347bc4e

C#
public event Action<PortView> Clicked;

Original lines: 828

Declaration hash: sha256:487628cc5c595e5cd035fce8981c3aed8b2537c292dcbd646ef824f22a5337af

C#
public Label SplitToggle { get; }

Original lines: 831

Declaration hash: sha256:502c86cc34e91ac4dfdc9463a446110b4f4caadfca4ff5ed3adb0d2178f72c8a

C#
public const float SplitChildIndentPx = 12f;

Original lines: 850

Declaration hash: sha256:2269a0c4c4379684ff487b9b347316db1d71eacdae7c5dd10b6ab52a6b67bd52

C#
public const int MaxPinLabelChars = 12;

Original lines: 859-866

Declaration hash: sha256:d4f54305960b17b52ff8bef450827253ab33eb8ceed2fee8cc3bde85389caf2a

C#
public static string TruncateLabelForPin(string label);

Original lines: 877

Declaration hash: sha256:096a518c7a06c1d67cb426c7a5942012df91da76994df6b906dad22ee44dbf6f

C#
public const string DragCompatibleClassName = "port-drag-compatible";

Original lines: 880

Declaration hash: sha256:7be32ab21f45846a74e56312460de92bab7720aaa0e84eccbc8a62c8dae2f260

C#
public const string DragIncompatibleClassName = "port-drag-incompatible";

Original lines: 886

Declaration hash: sha256:ab10b87bcb3218d99d68e684b7490e388387cd61ecd4dacd7d8531391fdf5054

C#
public const float PassThroughPinOpacity = 0.55f;

Original lines: 891

Declaration hash: sha256:3912c73d8cd71d3ea36c05cca54d39ce013c543e2a20243871f923e0adb83686

C#
public const float DormantPinOpacity = 0.4f;

Original lines: 898

Declaration hash: sha256:34aa00a43d623e913cd1c3963aecc4857355d197db7b4d50eff7135fc2da97a7

C#
public const float DragIncompatibleOpacity = 0.4f;

Original lines: 904

Declaration hash: sha256:a7921d4c7b80c85391baacb8fdd424de31e6088bb84d0ae947499bf91e218c73

C#
public const float DragCompatibleOutlineWidth = 2f;

Original lines: 907

Declaration hash: sha256:035e88f3b7532b7926dacf0676e1f4db6d26e994c91ded4ff73de55761f7e81d

C#
public const float HollowGlyphStrokeWidth = 2f;

Method: ResolveValueGlyphStyle(PortDefinition port)

Section titled “Method: ResolveValueGlyphStyle(PortDefinition port)”

Original lines: 928-946

Declaration hash: sha256:e76b6bd2b265c2227d5201bba6c2530e6602e076c7b0be315fa7d141f422a1dd

C#
public static GraphPortGlyphStyle ResolveValueGlyphStyle(PortDefinition port);

Original lines: 998-1008

Declaration hash: sha256:dd72782dcea820bf55b41b006fe75997e38a6799a3b1f91c77e36b865fdfd8a3

C#
public void SetDragCompatible(Color tint);

Original lines: 1014-1024

Declaration hash: sha256:8c303bffe1fff7be674bfa21c0ef2882c6735f8f19fe260eda54c5a375d694d5

C#
public void SetDragIncompatible();

Original lines: 1030-1035

Declaration hash: sha256:4b80aeaa4990add675792f5a151fd0d6ef30befe9cc35de4a06fb630beba40b6

C#
public void ClearDragState();

Original lines: 1085-1113

Declaration hash: sha256:8cb36c767631b1bf824e465dff21c54eb776bdb44cb1c32097aaa310b7b33c5b

C#
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

C#
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

C#
public void AlignHeaderPortVisualToTextBaseline(float visualTopOffset);

Original lines: 1172

Declaration hash: sha256:057c25bde8235c77a737d15bbd833cd7c919e78ae58512c67a2ed888fbf617f8

C#
public event Action<PortView> SplitRequested;

Original lines: 1178

Declaration hash: sha256:477903e87d3e82b1582299d59cc195ebed8a290da96ecc3608482880da043988

C#
public event Action<PortView> RecombineRequested;

Original lines: 1185

Declaration hash: sha256:6a9d73f7990bcb7ac8b57278d1106d1369f71d9235db2a85390cbba97e035c9e

C#
public event Action<PortView> ShowInstanceAsWireRequested;

Original lines: 1192

Declaration hash: sha256:2037a566be0ff11d319d5f994181fe2f460c5e6e91428b4a4c0257de3fc103d6

C#
public event Action<PortView> ShowInstanceAsPillRequested;

Original lines: 1208-1232

Declaration hash: sha256:95c3de3bd1eef8c2a10bf66c52f12b74395b4961d252e3877fea8ad71f2f7500

C#
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

C#
public PortLinkTarget(string label, Guid counterpartNodeId, string counterpartPortId);

Original lines: 1225

Declaration hash: sha256:6bf8b9190dcd09762ff9f4ad324cbd2edc2c0d139eeec539332bbc6f3a5be0c6

C#
public string Label { get; }

Original lines: 1228

Declaration hash: sha256:391d03cb0c5d01d3100db9edae4c9957ded9aaa0f013ce6b77c49c0b1c78fd8c

C#
public Guid CounterpartNodeId { get; }

Original lines: 1231

Declaration hash: sha256:55ab9aae44494fe1698efdd4078863cb3cb4b692fe60ab44c5e8a7c3463c6c90

C#
public string CounterpartPortId { get; }

Original lines: 1235

Declaration hash: sha256:fe4b2185103f16672b2b99c1ed6d53b00d9e5b1f917ba7b2e9b97ad1d610b39c

C#
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

C#
public static string BreakLinkToLabel(string counterpart);

Original lines: 1245

Declaration hash: sha256:e2e716eb65c31fafdbf6eafa2bc01f5bcc3328759cb7a66d6d88025d19e0bc93

C#
public IReadOnlyList<PortLinkTarget> LinkTargets { get; }

Original lines: 1251

Declaration hash: sha256:2531b6295420e43907698b39643f86feb8f77a6fd9d860fdcee02dc1e24f4c5f

C#
public event Action<PortView> BreakAllLinksRequested;

Original lines: 1257

Declaration hash: sha256:ee2cdc35fdc1e612b6312d4558fa7017f534e9322ba21885e42e72872c303d28

C#
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

C#
public void SetLinkTargets(IReadOnlyList<PortLinkTarget> targets);

Original lines: 1275

Declaration hash: sha256:444e9e04e2aacb0a0dbbb204db132193e2a687b2d38939f70347bf7f461ad868

C#
public const string ShowAsWireLabel = "Show as Wire";

Original lines: 1278

Declaration hash: sha256:9484febc81dbb07f4a56184a15ab720431bd8d994eaaa7ba5892be5acd3767a3

C#
public const string ShowAsPillLabel = "Show as Pill";

Original lines: 1426-1435

Declaration hash: sha256:71b8f810aa21ff68bf4b614fc43cdcec3e27da54829671a9e7a185a1fec26a60

C#
public IReadOnlyList<string> GetContextMenuActionLabels();

Original lines: 1441-1445

Declaration hash: sha256:1cd52fab8ab8f775bf19956c038c567aeed3f0790d284fdf59b14c8ebecae67d

C#
public Vector2 GetWorldPositionForEdge();

Original lines: 1450-1453

Declaration hash: sha256:0e77a33c7c983eb3976b9c8cb2bb2347ddb97b7c8c17a38b8fc07b941c7767c2

C#
public void SetLabelColor(Color color);

Original lines: 1591-1615

Declaration hash: sha256:34f7c9cd7e59fefbb7055b66f9db324590d532fb1bdabec9187ce833cb18c328

C#
public InlineLiteralElement OpenLiteralEditor();

Method: OpenCompositeEditor(int componentIndex)

Section titled “Method: OpenCompositeEditor(int componentIndex)”

Original lines: 1625-1634

Declaration hash: sha256:622c4b25cbf3ef620f69603652d78ba73693431633e7ebeaf08e96770eb67894

C#
public CompositeLiteralElement OpenCompositeEditor(int componentIndex = 0);

Original lines: 1736

Declaration hash: sha256:8937d26170bd4e56d922ff48dad732241a7335a0ec31d30b699702036b92732b

C#
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

C#
public static float ExternalBadgeLeft(bool isInput, float anchorX, float width);

Original lines: 1851-1885

Declaration hash: sha256:126dc79d6b20d4e323dea5fbda4723d826aa3a55c9b42f0178f9ad43c7666563

C#
public void RefreshExternalBadgeLayer();
Full-size image