gdk.cursor

Module for [Cursor] class

Types 3

A #GdkCursor represents a cursor. Its contents are private.

Methods
GType _gType() @property
Cursor self()Returns `this`, for use in `with` statements.
CursorGidBuilder builder()Get builder for [gdk.cursor.Cursor] Returns: New builder object
gdk.cursor.Cursor newForDisplay(gdk.display.Display display, gdk.types.CursorType cursorType)Creates a new cursor from the set of builtin cursors.
gdk.cursor.Cursor newFromName(gdk.display.Display display, string name)Creates a new cursor by looking up name in the current cursor theme.
gdk.cursor.Cursor newFromPixbuf(gdk.display.Display display, gdkpixbuf.pixbuf.Pixbuf pixbuf, int x, int y)Creates a new cursor from a pixbuf.
gdk.cursor.Cursor newFromSurface(gdk.display.Display display, cairo.surface.Surface surface, double x, double y)Creates a new cursor from a cairo image surface.
gdk.types.CursorType getCursorType()Returns the cursor type for this cursor. Returns: a #GdkCursorType
gdk.display.Display getDisplay()Returns the display on which the #GdkCursor is defined. Returns: the #GdkDisplay associated to cursor
gdkpixbuf.pixbuf.Pixbuf getImage()Returns a #GdkPixbuf with the image used to display the cursor.
cairo.surface.Surface getSurface(out double xHot, out double yHot)Returns a cairo image surface with the image used to display the cursor.
Constructors
this(void * ptr, Flag!"Take" take)
this(gdk.types.CursorType cursorType)Creates a new cursor from the set of builtin cursors for the default display. See [gdk.cursor.Cursor.newForDisplay].

Fluent builder for [gdk.cursor.Cursor]

Methods
Cursor build()