XDefineCursor()XDefineCursor()NameXDefineCursor – assign a cursor to a window.
Synopsis
XDefineCursor(display, w, cursor)
Display *display;
Window w;
Cursor cursor;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
w Specifies the ID of the window in which the cursor is to be
displayed.
cursor Specifies the cursor to be displayed when the pointer is in
the specified window. Pass None to have the parent's cursor
displayed in the window, or for the root window, to have the
default cursor displayed.
Description
Sets the cursor attribute of a window, so that the specified cursor is
shown whenever this window is visible and the pointer is inside. If
XDefineCursor() is not called, the parent's cursor is used by default.
For more information on available cursors, see Appendix I, The Cursor
Font.
Errors
BadCursor
BadWindow
See AlsoXCreateFontCursor(), XCreateGlyphCursor(), XCreatePixmapCursor(),
XFreeCursor(), XQueryBestCursor(), XQueryBestSize(), XRecolorCursor(),
XUndefineCursor().
Xlib - Cursors XDefineCursor()