Package: gdk

Accessor gdk-window-cursor

Lambda List

gdk-window-cursor (object)

Syntax

(gdk-window-cursor object) => cursor
(setf (gdk-window-cursor object) cursor)

Arguments

object -- a gdk-window object
cursor -- a gdk-cursor object

Details

Accessor of the cursor slot of the gdk-window class.

The gdk-window-cursor slot access function retrieves a gdk-cursor pointer for the cursor currently set on the specified window, 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-cursor) slot access function sets the default mouse pointer for a window.

Use the gdk-cursor-new-for-display, gdk-cursor-new-from-name, or gdk-cursor-new-from-pixbuf functions to create the cursor. To make the cursor invisible, use the :blank-cursor value of the gdk-cursor-type enumeration. Passing nil for the cursor argument means that the GDK window will use the cursor of its parent window. Most windows should use this default.
 

See also

*2021-10-31