| Method | Description |
| HasBubbleUpHandlers |
Return true if event handlers for the event propagation BubbleUp phase have been attached to this object.
|
| HasTrickleDownHandlers |
Returns true if event handlers, for the event propagation TrickleDown phase, are attached to this object.
|
| RegisterCallback |
Adds an event handler to the instance.
|
| RegisterCallbackOnce |
Adds an event handler to the instance.
The event handler is automatically unregistered after it has been invoked exactly once.
|
| UnregisterAllRemovableCallbacks |
Removes all callbacks registered with CallbackOptions.Removable from the instance.
|
| UnregisterCallback |
Remove callback from the instance.
|
| Blur |
Tell the element to release the focus.
|
| Focus |
Attempts to give the focus to this element.
|
| GetGlobalCenter | Get the GraphElement's center point. |
| GetPosition | Get the GraphElement position. |
| HitTest | See if point is over the GraphElement. |
| IsAscendable | Checks if the GraphElement is automatically brought to front when selected. |
| IsCopiable | Checks whether the GraphElement is copiable. |
| IsDroppable | The GraphElement is drag&droppable. |
| IsGroupable | Checks whether the GraphElement is groupable. |
| IsMovable | The GraphElement is movable. |
| IsRenamable | The GraphElement is renamable. |
| IsResizable | The GraphElement is resizable. |
| IsSelectable | The GraphElement is selectable. |
| IsSelected | The GraphElement is currently selected in specific container. |
| IsSnappable | Checks whether the GraphElement is snappable. |
| IsStackable | Checks whether the GraphElement is stackable. |
| OnSelected | Called when the GraphElement is selected. |
| OnUnselected | Called when the GraphElement is unselected. |
| ResetLayer | Reset the GraphElement to its original layer. |
| Select | Select the GraphElement. |
| SetPosition | Set the GraphElement position. |
| Unselect | Deselect the GraphElement. |
| BuildContextualMenu | Add menu items to the node contextual menu. |
| CollectElements | Retrieves the set of edges that match a specified condition. The tested edges are connected to this node. |
| InstantiatePort | Create a new port specific to this node. |
| RefreshExpandedState | After adding custom elements to the extensionContainer, call this method in order for them to become visible. |
| RefreshPorts | Refresh the layout of the ports. |
| SetPosition | Set node position. |
| Add |
Adds an element to the contentContainer of this element.
|
| AddComponent |
Attaches a component of type T to this element.
|
| AddMeshModifier |
Registers a modifier that runs after this element's mesh generation completes, before
its vertex data is copied to the GPU.
|
| AddToClassList |
Adds a class to the class list of the element in order to assign styles from USS. Note the class name is case-sensitive.
|
| BringToFront |
Brings this element to the end of its parent children list. The element will be visually in front of any overlapping sibling elements.
|
| Children |
Returns the elements from its contentContainer.
|
| ClassListContains |
Searches for a class in the class list of this element.
|
| Clear |
Removes all child elements from this element's VisualElement.contentContainer.
|
| ClearBinding |
Removes a binding from the element.
|
| ClearBindings |
Removes all bindings from the element.
|
| ClearClassList |
Removes all classes from the class list of this element.
VisualElement.AddToClassList |
| ClearMeshModifiers |
Removes every modifier previously registered on this element. No-op if none are registered.
|
| Contains |
Checks if this element is an ancestor of the specified child element.
|
| ContainsPoint |
Checks if the specified point intersects with this VisualElement's layout.
|
| ElementAt |
Retrieves the child element at a specific index.
|
| EnableInClassList |
Enables or disables the class with the given name.
|
| FindAncestorUserData |
Searches up the hierarchy of this VisualElement and retrieves stored userData, if any is found.
|
| FindCommonAncestor |
Finds the lowest common ancestor between two VisualElements inside the VisualTree hierarchy.
|
| GetBinding |
Gets the binding instance for the provided targeted property.
|
| GetBindingInfos |
Gets information on all the bindings of the current element.
|
| GetClasses |
Retrieve the classes for this element.
|
| GetClassNames |
Retrieve the classes for this element.
|
| GetComponent |
Returns a reference to the attached component of type T.
|
| GetComponentRefOrNullRef |
Returns a reference to the component of type T attached to this
element, or a null reference when the component is not attached. This method never adds
a component.
|
| GetDataSourceContext |
Queries the VisualElement.dataSource and VisualElement.dataSourcePath of a binding object.
|
| GetFirstAncestorOfType |
Walks up the hierarchy, starting from this element's parent, and returns the first VisualElement of this type
|
| GetFirstOfType |
Walks up the hierarchy, starting from this element, and returns the first VisualElement of this type
|
| GetHierarchicalDataSourceContext |
Queries the VisualElement.dataSource and VisualElement.dataSourcePath inherited from the hierarchy.
|
| GetOrAddComponent |
Returns a reference to the component of type T attached to this
element. If the component is not attached yet, it is added first.
|
| HasBinding |
Allows to know if a target property has a binding associated to it.
|
| HasComponent |
Checks whether a component of type T is attached to this element.
|
| IndexOf |
Retrieves the child index of the specified VisualElement.
|
| Insert |
Insert an element into this element's contentContainer
|
| IsMarkedForRepaint |
Checks if the VisualElement is marked dirty for repaint.
|
| MarkComponentDirty |
Marks the attached component of type T as changed, so that its
[OnComponentChanged] handler runs once during the next update.
|
| MarkDirtyRepaint |
Marks that the VisualElement requires a repaint.
|
| MarkDirtyStyles |
Marks the element's resolved styles dirty so the next update re-resolves them, re-reading
USS custom property values. The style counterpart of VisualElement.MarkDirtyRepaint.
|
| NotifyComponentChanged |
Notifies the data binding system that a field of an attached component changed, so a binding
targeting that field (for example ${component:Tooltip}.text) can publish the new value.
|
| PlaceBehind |
Places this element right before the sibling element in their parent children list. If the element and the sibling position overlap, the element will be visually behind of its sibling.
|
| PlaceInFront |
Places this element right after the sibling element in their parent children list. If the element and the sibling position overlap, the element will be visually in front of its sibling.
|
| ReleaseResources |
Releases reusable resources associated with this element and makes the element unusable.
|
| Remove |
Removes this child from the VisualElement.hierarchy of its VisualElement.contentContainer.
|
| RemoveAt |
Removes a child, at the provided index, from the list of children of the current element.
|
| RemoveComponent |
Removes the attached component of type T.
|
| RemoveFromClassList |
Removes a class from the class list of the element.
|
| RemoveFromHierarchy |
Removes this element from its parent hierarchy.
|
| RemoveMeshModifier |
Removes a previously-registered modifier. The registration is identified by delegate
equality; pass the same callback reference that was registered. No-op if the callback is not
registered. If the callback was registered more than once, only the first matching registration
is removed.
|
| SendEvent |
Sends an event to the event handler.
|
| SendToBack |
Sends this element to the beginning of its parent children list. The element will be visually behind any overlapping sibling elements.
|
| SetActivePseudoState |
Sets whether or not this element is displayed as being active.
|
| SetBinding |
Assigns a binding between a target and a source.
|
| SetCheckedPseudoState |
Sets whether or not this element is displayed as being checked.
|
| SetEnabled |
Changes the VisualElement enabled state. A disabled visual element does not receive most events.
|
| Sort |
Reorders child elements from this VisualElement contentContainer.
|
| ToggleInClassList |
Toggles between adding and removing the given class name from the class list.
|
| TryGetBinding |
Gets the binding instance for the provided targeted property.
|
| TryGetDataSourceContext |
Queries the VisualElement.dataSource and VisualElement.dataSourcePath of a binding object.
|
| TryGetLastBindingToSourceResult |
Returns the last BindingResult of a binding object from the UI to the data source.
|
| TryGetLastBindingToUIResult |
Returns the last BindingResult of a binding object from the data source to the UI.
|
| TryRemoveComponent |
Removes the attached component of type T, if one is attached.
|