6.3 GdkCursorGetTextureCallback

Callback: GdkCursorGetTextureCallback

A procedure given for it is called as (procedure cursor cursor-size scale) ⇒ %return width height hotspot-x hotspot-y. If the function that it is given to has no user data for it, it is also passed data, last.

The type of callback used by a dynamic <GdkCursor> to generate a texture for the cursor image at the given cursor-size and scale.

The actual cursor size in application pixels may be different from cursor-size x cursor-size, and will be returned in width, height. The returned texture should have a size that corresponds to the actual cursor size, in device pixels (i.e. application pixels, multiplied by scale).

This function may fail and return NULL, in which case the fallback cursor will be used.

cursor

Passed: a <GdkCursor>.

the <GdkCursor>

cursor-size

Passed: a 32-bit integer.

the nominal cursor size, in application pixels

scale

Passed: a real number.

the device scale

%return

Returned: a <GdkTexture>, or #f.

the cursor image, or NULL if none could be produced.

width

Returned: a 32-bit integer.

return location for the actual cursor width, in application pixels

height

Returned: a 32-bit integer.

return location for the actual cursor height, in application pixels

hotspot-x

Returned: a 32-bit integer.

return location for the hotspot X position, in application pixels

hotspot-y

Returned: a 32-bit integer.

return location for the hotspot Y position, in application pixels

data

Not passed: it is the user data that guile-gi supplied.

User data for the callback