Package: gdk

Function gdk:surface-device-cursor

Lambda List

gdk:surface-device-cursor (surface device)

Syntax

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

Arguments

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

Details

Gets or sets a specific cursor for a given device when it gets inside 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.

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

See also

2025-09-24