Skip to content

Cursor Utility Functions

To use the functions defined in this section, you should include the header file <X11/Xmu/CurUtil.h> and link against the libXmu or libXmuu library.

int XmuCursorNameToIndex(const char *name);
int XmuCursorNameToIndex(const char *name);

name

specifies the name of the cursor

This function takes the name of a standard cursor and returns its index in the standard cursor font. The cursor names are formed by removing the “XC_” prefix from the cursor defines listed in Appendix B of the Xlib manual.