Cursor.this

Creates a new cursor from a given pixmap and mask. Both the pixmap and mask must have a depth of 1 (i.e. each pixel has only 2 values - on or off). The standard cursor size is 16 by 16 pixels. You can create a bitmap from inline data as in the below example.

Parameters

source Pixmap

the pixmap specifying the cursor.

mask Pixmap

the pixmap specifying the mask, which must be the same size as source.

fg Color

the foreground color, used for the bits in the source which are 1. The color does not have to be allocated first.

bg Color

the background color, used for the bits in the source which are 0. The color does not have to be allocated first.

x int

the horizontal offset of the 'hotspot' of the cursor.

y int

the vertical offset of the 'hotspot' of the cursor.

Throws

ConstructionException GTK+ fails to create the object.

Meta