Class PalHandle
Base class for all PAL handle objects.
Inheritance
PalHandle
Inherited Members
Namespace: OpenTK.Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public abstract class PalHandle
Properties
UserData
General purpose object for your use.
Declaration
public object? UserData { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
As<T>(IPalComponent)
Tries to convert this PalHandle into a platform specific handle, throwing a HandleMismatchException if the types don't match.
Declaration
public T As<T>(IPalComponent component) where T : PalHandle
Parameters
Type | Name | Description |
---|---|---|
IPalComponent | component | The IPalComponent making this conversion. |
Returns
Type | Description |
---|---|
T | The platform specific handle. |
Type Parameters
Name | Description |
---|---|
T | The platform specific handle type. |
Exceptions
Type | Condition |
---|---|
HandleMismatchException<T> | If the handle wasn't of the platform specific handle type. |