Method AddEventCallback
AddEventCallback<TEventType>(Predicate<VisualElement>, EventCallback<TEventType>, TrickleDown)
Adds an event callback to the current manipulator.
Declaration
public void AddEventCallback<TEventType>(Predicate<VisualElement> predicate, EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()Parameters
| Type | Name | Description |
|---|---|---|
| Predicate<VisualElement> | predicate | Filter theVisualElementthat can use the callback. |
| EventCallback<TEventType> | callback | Callback to use for the registered event |
| TrickleDown | useTrickleDown | The direction in which the event should be called. |
Type Parameters
| Name | Description |
|---|---|
| TEventType | Type of event to register |
AddEventCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
Adds an event callback to the current manipulator.
Declaration
public void AddEventCallback<TEventType>(EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()Parameters
| Type | Name | Description |
|---|---|---|
| EventCallback<TEventType> | callback | Callback to use for the registered event |
| TrickleDown | useTrickleDown | The direction in which the event should be called. |
Type Parameters
| Name | Description |
|---|---|
| TEventType | Type of event to register |
AddEventCallback<TEventType>(Predicate<VisualElement>, Action, TrickleDown)
Adds an event callback to the current manipulator.
Declaration
public void AddEventCallback<TEventType>(Predicate<VisualElement> predicate, Action callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()Parameters
| Type | Name | Description |
|---|---|---|
| Predicate<VisualElement> | predicate | Filter theVisualElementthat can use the callback. |
| Action | callback | Callback to use for the registered event |
| TrickleDown | useTrickleDown | The direction in which the event should be called. |
Type Parameters
| Name | Description |
|---|---|
| TEventType | Type of event to register |
AddEventCallback<TEventType>(Action, TrickleDown)
Adds an event callback to the current manipulator.
Declaration
public void AddEventCallback<TEventType>(Action callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()Parameters
| Type | Name | Description |
|---|---|---|
| Action | callback | Callback to use for the registered event |
| TrickleDown | useTrickleDown | The direction in which the event should be called. |
Type Parameters
| Name | Description |
|---|---|
| TEventType | Type of event to register |
AddEventCallback<TEventType>(Predicate<VisualElement>, Action<PseudoClassManipulator>, TrickleDown)
Adds an event callback to the current manipulator.
Declaration
public void AddEventCallback<TEventType>(Predicate<VisualElement> predicate, Action<PseudoClassManipulator> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()Parameters
| Type | Name | Description |
|---|---|---|
| Predicate<VisualElement> | predicate | Filter theVisualElementthat can use the callback. |
| Action<PseudoClassManipulator> | callback | Callback to use for the registered event |
| TrickleDown | useTrickleDown | The direction in which the event should be called. |
Type Parameters
| Name | Description |
|---|---|
| TEventType | Type of event to register |
AddEventCallback<TEventType>(Action<PseudoClassManipulator>, TrickleDown)
Adds an event callback to the current manipulator.
Declaration
public void AddEventCallback<TEventType>(Action<PseudoClassManipulator> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()Parameters
| Type | Name | Description |
|---|---|---|
| Action<PseudoClassManipulator> | callback | Callback to use for the registered event |
| TrickleDown | useTrickleDown | The direction in which the event should be called. |
Type Parameters
| Name | Description |
|---|---|
| TEventType | Type of event to register |
AddEventCallback<TEventType>(Predicate<VisualElement>, Action<PseudoClassManipulator, TEventType>, TrickleDown)
Adds an event callback to the current manipulator.
Declaration
public void AddEventCallback<TEventType>(Predicate<VisualElement> predicate, Action<PseudoClassManipulator, TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()Parameters
| Type | Name | Description |
|---|---|---|
| Predicate<VisualElement> | predicate | Filter theVisualElementthat can use the callback. |
| Action<PseudoClassManipulator, TEventType> | callback | Callback to use for the registered event |
| TrickleDown | useTrickleDown | The direction in which the event should be called. |
Type Parameters
| Name | Description |
|---|---|
| TEventType | Type of event to register |
AddEventCallback<TEventType>(Action<PseudoClassManipulator, TEventType>, TrickleDown)
Adds an event callback to the current manipulator.
Declaration
public void AddEventCallback<TEventType>(Action<PseudoClassManipulator, TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()Parameters
| Type | Name | Description |
|---|---|---|
| Action<PseudoClassManipulator, TEventType> | callback | Callback to use for the registered event |
| TrickleDown | useTrickleDown | The direction in which the event should be called. |
Type Parameters
| Name | Description |
|---|---|
| TEventType | Type of event to register |
