set_cursor


Description:

public void set_cursor (Cursor? cursor)

Sets the default mouse pointer for a Surface.

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

Use Cursor.from_name or Cursor.from_texture to create the cursor. To make the cursor invisible, use gdk_blank_cursor. Passing null for the cursor argument to set_cursor means that this will use the cursor of its parent surface. Most surfaces should use this default.

Parameters:

this

a Surface

cursor

a cursor