Show / Hide Table of Contents

Class CallbackEventHandler

Inheritance
Object
CallbackEventHandler
Focusable
Implements
IEventHandler
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.UIElements
Assembly: UnityEngine.dll
Syntax
public abstract class CallbackEventHandler : IEventHandler

Methods

| Improve this Doc View Source

ExecuteDefaultAction(EventBase)

Declaration
protected virtual void ExecuteDefaultAction(EventBase evt)
Parameters
Type Name Description
EventBase evt
| Improve this Doc View Source

ExecuteDefaultActionAtTarget(EventBase)

Declaration
protected virtual void ExecuteDefaultActionAtTarget(EventBase evt)
Parameters
Type Name Description
EventBase evt
| Improve this Doc View Source

HandleEvent(EventBase)

Declaration
public virtual void HandleEvent(EventBase evt)
Parameters
Type Name Description
EventBase evt
| Improve this Doc View Source

HasBubbleHandlers()

Declaration
[Obsolete("Use HasBubbleUpHandlers instead of HasBubbleHandlers.")]
public bool HasBubbleHandlers()
Returns
Type Description
Boolean
| Improve this Doc View Source

HasBubbleUpHandlers()

Declaration
public bool HasBubbleUpHandlers()
Returns
Type Description
Boolean
| Improve this Doc View Source

HasCaptureHandlers()

Declaration
[Obsolete("Use HasTrickleDownHandlers instead of HasCaptureHandlers.")]
public bool HasCaptureHandlers()
Returns
Type Description
Boolean
| Improve this Doc View Source

HasTrickleDownHandlers()

Declaration
public bool HasTrickleDownHandlers()
Returns
Type Description
Boolean
| Improve this Doc View Source

RegisterCallback<TEventType>(EventCallback<TEventType>, Capture)

Declaration
[Obsolete("Use TrickleDown instead of Capture.")]
public void RegisterCallback<TEventType>(EventCallback<TEventType> callback, Capture useCapture)
    where TEventType : EventBase<TEventType>, new()
Parameters
Type Name Description
EventCallback<TEventType> callback
Capture useCapture
Type Parameters
Name Description
TEventType
| Improve this Doc View Source

RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)

Declaration
public void RegisterCallback<TEventType>(EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown)
    where TEventType : EventBase<TEventType>, new()
Parameters
Type Name Description
EventCallback<TEventType> callback
TrickleDown useTrickleDown
Type Parameters
Name Description
TEventType
| Improve this Doc View Source

RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, Capture)

Declaration
[Obsolete("Use TrickleDown instead of Capture.")]
public void RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, TUserArgsType userArgs, Capture useCapture)
    where TEventType : EventBase<TEventType>, new()
Parameters
Type Name Description
EventCallback<TEventType, TUserArgsType> callback
TUserArgsType userArgs
Capture useCapture
Type Parameters
Name Description
TEventType
TUserArgsType
| Improve this Doc View Source

RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)

Declaration
public void RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, TUserArgsType userArgs, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown)
    where TEventType : EventBase<TEventType>, new()
Parameters
Type Name Description
EventCallback<TEventType, TUserArgsType> callback
TUserArgsType userArgs
TrickleDown useTrickleDown
Type Parameters
Name Description
TEventType
TUserArgsType
| Improve this Doc View Source

SendEvent(EventBase)

Declaration
public abstract void SendEvent(EventBase e)
Parameters
Type Name Description
EventBase e
| Improve this Doc View Source

UnregisterCallback<TEventType>(EventCallback<TEventType>, Capture)

Declaration
[Obsolete("Use TrickleDown instead of Capture.")]
public void UnregisterCallback<TEventType>(EventCallback<TEventType> callback, Capture useCapture)
    where TEventType : EventBase<TEventType>, new()
Parameters
Type Name Description
EventCallback<TEventType> callback
Capture useCapture
Type Parameters
Name Description
TEventType
| Improve this Doc View Source

UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)

Declaration
public void UnregisterCallback<TEventType>(EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown)
    where TEventType : EventBase<TEventType>, new()
Parameters
Type Name Description
EventCallback<TEventType> callback
TrickleDown useTrickleDown
Type Parameters
Name Description
TEventType
| Improve this Doc View Source

UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, Capture)

Declaration
[Obsolete("Use TrickleDown instead of Capture.")]
public void UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, Capture useCapture)
    where TEventType : EventBase<TEventType>, new()
Parameters
Type Name Description
EventCallback<TEventType, TUserArgsType> callback
Capture useCapture
Type Parameters
Name Description
TEventType
TUserArgsType
| Improve this Doc View Source

UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)

Declaration
public void UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown)
    where TEventType : EventBase<TEventType>, new()
Parameters
Type Name Description
EventCallback<TEventType, TUserArgsType> callback
TrickleDown useTrickleDown
Type Parameters
Name Description
TEventType
TUserArgsType

Implements

IEventHandler

Extension Methods

MouseCaptureController.HasMouseCapture(IEventHandler)
MouseCaptureController.TakeMouseCapture(IEventHandler)
MouseCaptureController.CaptureMouse(IEventHandler)
MouseCaptureController.ReleaseMouseCapture(IEventHandler)
MouseCaptureController.ReleaseMouse(IEventHandler)
MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX