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

The gdk:surface-device-cursor function retrieves a gdk:cursor pointer for the device currently set on the specified surface, or nil. 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.

The (setf gdk:surface-device-cursor) function sets a specific cursor for a given device when it gets inside surface. Use the gdk:cursor-new-from-name or 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 surface will use the cursor of its parent surface. Most surfaces should use this default.
 

See also

#2023-4-8