gdk.cursor
Module for [Cursor] class
Types 3
classCursor : gobject.object.ObjectWrap
A #GdkCursor represents a cursor. Its contents are private.
Methods
Cursor self()Returns `this`, for use in `with` statements.CursorGidBuilder builder()Get builder for [gdk.cursor.Cursor] Returns: New builder objectgdk.types.CursorType cursorType() @propertygdk.display.Display display() @propertygdk.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 #GdkCursorTypegdk.display.Display getDisplay()Returns the display on which the #GdkCursor is defined. Returns: the #GdkDisplay associated to cursorgdkpixbuf.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(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()