Package: gdk

Function gdk:window-device-cursor

Lambda List

gdk:window-device-cursor (window device)

Syntax

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

Arguments

window -- a gdk:window object
device -- a master gdk:device object
cursor -- a gdk:cursor object

Return Value

A gdk:cursor object, or nil.

Details

The gdk:window-device-cursor function retrieves a gdk:cursor pointer for the device currently set on the specified gdk:window object, or nil. If the return value is nil then there is no custom cursor set on the specified window, and it is using the cursor for its parent window.

The (setf gdk:window-device-cursor) function sets a specific gdk:cursor object for a given device when it gets inside window. Use the gdk:cursor-new-for-display or gdk:cursor-new-from-pixbuf functions to create the cursor. To make the cursor invisible, use :blank-cursor. Passing nil for the cursor argument to the gdk:window-cursor function means that the window will use the cursor of its parent window. Most windows should use this default.
 

See also

#2023-2-26