-
public Cursor (CursorType cursor_type)
Creates a new cursor from the set of builtin cursors for the default display. See
Cursor.for_display.
-
public Cursor.for_display (Display display, CursorType cursor_type)
-
public Cursor.from_name (Display display, string name)
Creates a new cursor by looking up name in the current cursor theme.
-
public Cursor.from_pixbuf (Display display, Pixbuf pixbuf, int x, int y)
Creates a new cursor from a pixbuf.
-
public Cursor.from_pixmap (Pixmap source, Pixmap mask, Color fg, Color bg, int x, int y)
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.