Show / Hide Table of Contents

Class Toolkit.Event

Event component for interacting with platform events.

Inheritance
object
Toolkit.Event
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public static class Toolkit.Event

Methods

ProcessEvents(bool)

Process platform events and send them to the EventRaised callback.

Declaration
public static void ProcessEvents(bool waitForEvents)
Parameters
Type Name Description
bool waitForEvents

Specifies if this function should wait for events or return immediately if there are no events.

RaiseEvent(EventArgs)

Raise an event without notifying waiters.

Declaration
public static void RaiseEvent(EventArgs args)
Parameters
Type Name Description
EventArgs args

The event to raise.

RaiseEventNotify(EventArgs)

Raise an event and notify anyone waiting for events.

Declaration
public static void RaiseEventNotify(EventArgs args)
Parameters
Type Name Description
EventArgs args

The event to raise.

Events

EventRaised

Invoked when an event is raised.

Declaration
public static event PlatformEventHandler? EventRaised
Event Type
Type Description
PlatformEventHandler
In this article
Back to top Generated by DocFX