Cursor


Description:

[ CCode ( has_construct_function = false ) ]
public Cursor (uint8[] data, uint16 hotx, uint16 hoty, uint16 width, uint16 height)

Creates a new cursor using the bitmap data in data which should be width * height * 4 in size.

The data parameter should be in the RGBA format, so each pixel is 32-bits in size.

Parameters:

data

the bitmap data for the cursor

hotx

the horizontal position of the hot point

hoty

the vertical position of the hot point

width

the width of the cursor

height

the height of the cursor

Returns:

the new cursor




2022 vala-language.org