gdk.cursor

Module for [Cursor] class

Types 3

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

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Cursor self() nothrowReturns `this`, for use in `with` statements.
CursorGidBuilder builder() static nothrowGet builder for [gdk.cursor.Cursor] Returns: New builder object
gdk.types.CursorType cursorType() @property nothrow
gdk.display.Display display() @property nothrow
gdk.cursor.Cursor newForDisplay(gdk.display.Display display, gdk.types.CursorType cursorType) static nothrowCreates a new cursor from the set of builtin cursors.
gdk.cursor.Cursor newFromName(gdk.display.Display display, string name) static nothrowCreates 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) static nothrowCreates a new cursor from a pixbuf.
gdk.cursor.Cursor newFromSurface(gdk.display.Display display, cairo.surface.Surface surface, double x, double y) static nothrowCreates a new cursor from a cairo image surface.
gdk.types.CursorType getCursorType() nothrowReturns the cursor type for this cursor. Returns: a #GdkCursorType
gdk.display.Display getDisplay() nothrowReturns the display on which the #GdkCursor is defined. Returns: the #GdkDisplay associated to cursor
gdkpixbuf.pixbuf.Pixbuf getImage() nothrowReturns a #GdkPixbuf with the image used to display the cursor.
cairo.surface.Surface getSurface(out double xHot, out double yHot) nothrowReturns 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 implementation template for gdk.cursor.Cursor

Methods
T cursorType(gdk.types.CursorType propval) nothrow
T display(gdk.display.Display propval) nothrow

Fluent builder for gdk.cursor.Cursor

Methods
Cursor build() nothrowCreate object from builder. Returns: New object