Table of Contents

Interface ICommonEvent<TSelf>

Namespace
Sdl3Sharp.Events
Assembly
Sdl3Sharp.dll

A commonly shared interface, implemented by all *Event structures

public interface ICommonEvent<TSelf> : ICommonEvent where TSelf : unmanaged, ICommonEvent<TSelf>

Type Parameters

TSelf

The type of event structure that implements this interface itself

Inherited Members

Operators

explicit operator TSelf(in Event)

Converts a general Event to an event of type TSelf

public static abstract explicit operator TSelf(in Event @event)

Parameters

event Event

The general Event to convert to an event of type TSelf

Returns

TSelf

Remarks

This conversion usually requires that a certain part of the general Event structure given by event, which represents the event of type TSelf, to be copied from it. Note: This can impact performance!

implicit operator Event(in TSelf)

Converts an event of type TSelf to a general Event

public static abstract implicit operator Event(in TSelf @event)

Parameters

event TSelf

The event of type TSelf to convert to a general Event

Returns

Event

Remarks

This conversion usually requires the event to be copied into a new general Event structure. Note: This can impact performance!