Method

GdkCursorget_surface

since: 3.10

Declaration [src]

cairo_surface_t*
gdk_cursor_get_surface (
  GdkCursor* cursor,
  gdouble* x_hot,
  gdouble* y_hot
)

Description [src]

Returns a cairo image surface with the image used to display the cursor.

Note that depending on the capabilities of the windowing system and on the cursor, GDK may not be able to obtain the image data. In this case, NULL is returned.

Available since: 3.10

Parameters

x_hot

Type: gdouble*

Location to store the hotspot x position, or NULL.

The argument will be set by the function.
The argument can be NULL.
y_hot

Type: gdouble*

Location to store the hotspot y position, or NULL.

The argument will be set by the function.
The argument can be NULL.

Return value

Type: cairo_surface_t

A #cairo_surface_t representing cursor, or NULL.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.