NAME
XDefineCursor − assign a cursor to a window.
Synopsis
XDefineCursor(display, w, cursor)
Display *display;
Window w;
Cursor cursor;
Arguments
displaySpecifies a connection to an X server; returned from XOpenDisplay().
wSpecifies the ID of the window in which the cursor is to be displayed.
cursorSpecifies 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 Also
XCreateFontCursor(), XCreateGlyphCursor(), XCreatePixmapCursor(), XFreeCursor(), XQueryBestCursor(), XQueryBestSize(), XRecolorCursor(), XUndefineCursor().
Copyright O’Reilly & Assoc. —