Package: gdk

Accessor gdk:surface-cursor

Lambda List

gdk:surface-cursor (object)

Syntax

(gdk:surface-cursor object) => cursor
(setf (gdk:surface-cursor object) cursor)

Arguments

object -- a gdk:surface object
cursor -- a gdk:cursor object

Details

The accessor for the cursor slot of the gdk:surface class gets or sets the mouse pointer for a surface. If the return value is nil then there is no custom cursor set on the specified surface, and it is using the cursor for its parent surface. Note that cursor must be for the same display as surface.

Use the gdk:cursor-new-from-name function or the gdk:cursor-new-from-texture function to create the cursor. To make the cursor invisible, use a blank cursor. Passing nil for the cursor argument means that the surface will use the cursor of its parent surface. Most surfaces should use this default.
 

See also

2025-09-24