Documentation ¶
Overview ¶
Example change-cursor shows how to use the cursor package to change the X cursor in a particular window. To see the new cursor, move your cursor into the window created by this program. Note that this only shows how to use one of the pre-defined cursors built into X using the "cursor" font. Creating your own cursor with your own image is a bit more complex, and probably not an instructive example.
While this example shows how to set a cursor in an entire window, the cursor value returned from xcursor.CreateCursor[Extra] can be used in pointer grab requests too. (So that the cursor changes during the grab.)
Click to show internal directories.
Click to hide internal directories.