Show / Hide Table of Contents

Class PalHandle

Base class for all PAL handle objects.

Inheritance
object
PalHandle
CursorHandle
DisplayHandle
IconHandle
JoystickHandle
MouseHandle
OpenGLContextHandle
SurfaceHandle
WindowHandle
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

In this article
Back to top Generated by DocFX