change-cursor

command
v0.0.0-...-e2e9464 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

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.)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL