Table of Contents

Class CancellableEventArgs<T>

Namespace
Myra.Events
Assembly
Myra.dll

Provides data for cancellable events with associated data.

public class CancellableEventArgs<T> : MyraEventArgs

Type Parameters

T

The 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

data T

The data to associate with the event.

inputEventType InputEventType

The 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

bool

Data

Gets the data associated with the event.

public T Data { get; }

Property Value

T