Class Toolkit.Event
Event component for interacting with platform events.
Inherited Members
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 |