Class CancellableEventArgs<T>
Provides data for cancellable events with associated data.
public class CancellableEventArgs<T> : MyraEventArgs
Type Parameters
TThe type of data associated with the event.
- Inheritance
-
CancellableEventArgs<T>
- Inherited Members
Constructors
CancellableEventArgs(T, InputEventType)
Initializes a new instance of the CancellableEventArgs<T> class.
public CancellableEventArgs(T data, InputEventType inputEventType)
Parameters
dataTThe data to associate with the event.
inputEventTypeInputEventTypeThe type of the input event.
Properties
Cancel
Gets or sets a value indicating whether the event should be cancelled.
public bool Cancel { get; set; }
Property Value
Data
Gets the data associated with the event.
public T Data { get; }
Property Value
- T