Method

GdkWindowset_cursor

Declaration [src]

void
gdk_window_set_cursor (
  GdkWindow* window,
  GdkCursor* cursor
)

Description [src]

Sets the default mouse pointer for a GdkWindow.

Note that cursor must be for the same display as window.

Use gdk_cursor_new_for_display() or gdk_cursor_new_from_pixbuf() to create the cursor. To make the cursor invisible, use GDK_BLANK_CURSOR. Passing NULL for the cursor argument to gdk_window_set_cursor() means that window will use the cursor of its parent window. Most windows should use this default.

Sets propertyGdk.Window:cursor

Parameters

cursor

Type: GdkCursor

A cursor.

The argument can be NULL.
The data is owned by the caller of the method.