Struct MacOSCursorComponent.Frame
Struct defining data for one frame of an custom animated cursor.
Inherited Members
Namespace: OpenTK.Platform.Native.macOS
Assembly: OpenTK.Platform.dll
Syntax
public struct MacOSCursorComponent.Frame
Constructors
Frame(int, int, Bitmap, int, int)
Creates a animated cursor frame.
Declaration
public Frame(int width, int height, Bitmap image, int hotspotX, int hotspotY)
Parameters
Type | Name | Description |
---|---|---|
int | width | The width in window coordinates of the cursor. |
int | height | The height in window coordinates of the cursor. |
Bitmap | image | The frame image data. |
int | hotspotX | The x-coordinate of the image to use as the hotspot. |
int | hotspotY | The y-coordinate of the image to use as the hotspot. |
Remarks
Calling this constructor will create a copy of the image data array.
Fields
Height
Height of the cursor in window coordinates.
Declaration
public float Height
Field Value
Type | Description |
---|---|
float |
HotspotX
The x axis pixel of the image to be the hotspot.
Declaration
public int HotspotX
Field Value
Type | Description |
---|---|
int |
HotspotY
The y axis pixel of the image to be the hotspot.
Declaration
public int HotspotY
Field Value
Type | Description |
---|---|
int |
Image
The frame image data in RGBA format.
Declaration
public byte[] Image
Field Value
Type | Description |
---|---|
byte[] |
ResX
X resolution of Image
Declaration
public int ResX
Field Value
Type | Description |
---|---|
int |
ResY
Y resolution of Image
Declaration
public int ResY
Field Value
Type | Description |
---|---|
int |
Width
Width of the cursor in window coordinates.
Declaration
public float Width
Field Value
Type | Description |
---|---|
float |