Struct MonitorHandle
Wrapper around an implementation-defined monitor struct.
Inherited Members
Namespace: OpenTK.Windowing.Common
Assembly: OpenTK.Windowing.Common.dll
Syntax
public struct MonitorHandle
Constructors
MonitorHandle(IntPtr)
Initializes a new instance of the MonitorHandle struct.
Declaration
public MonitorHandle(IntPtr ptr)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | ptr | A pointer to the underlying native Monitor. |
Properties
Pointer
Gets a pointer to the underlying native Monitor.
Declaration
public readonly IntPtr Pointer { get; }
Property Value
| Type | Description |
|---|---|
| IntPtr |
Methods
ToUnsafePtr<T>()
Converts the underlying Pointer to a unmanaged pointer.
Declaration
public T* ToUnsafePtr<T>() where T : unmanaged
Returns
| Type | Description |
|---|---|
| T* | A unmanaged pointer to the underlying native Monitor. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the object found at the Pointer memory address. |