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

 

See also

2020-9-25