glutSetCursor(3GLUT) GLUT glutSetCursor(3GLUT)
NAME
glutSetCursor - changes the cursor image of the current window.
SYNTAX
void glutSetCursor(int cursor);
ARGUMENTS
cursor Name of cursor image to change to. Possible values follow:
GLUTCURSORIGHTAROW
Arrow pointing up and to the right.
GLUTCURSORLEFTAROW
Arrow pointing up and to the left.
GLUTCURSORINFO
Pointing hand.
GLUTCURSORDESTROY
Skull & cross bones.
GLUTCURSORHELP
Question mark.
GLUTCURSORCYCLE
Arrows rotating in a circle.
GLUTCURSORSPRAY
Spray can.
GLUTCURSORWAIT
Wrist watch.
GLUTCURSORTEXT
Insertion point cursor for text.
GLUTCURSORCROSHAIR
Simple cross-hair.
GLUTCURSORUPDOWN
Bi-directional pointing up & down.
GLUTCURSORLEFTRIGHT
Bi-directional pointing left & right.
GLUTCURSORTOPSIDE
Arrow pointing to top side.
GLUTCURSORBOTOMSIDE
Arrow pointing to bottom side.
GLUTCURSORLEFTSIDE
Arrow pointing to left side.
GLUTCURSORIGHTSIDE
Arrow pointing to right side.
GLUTCURSORTOPLEFTCORNER
Arrow pointing to top-left corner.
GLUTCURSORTOPRIGHTCORNER
Arrow pointing to top-right corner.
GLUTCURSORBOTOMRIGHTCORNER
Arrow pointing to bottom-left corner.
GLUTCURSORBOTOMLEFTCORNER
Arrow pointing to bottom-right corner.
GLUTCURSORFULCROSHAIR
Full-screen cross-hair cursor (if possible, otherwise GLUTCUR-
SORCROSHAIR).
GLUTCURSORNONE
Invisible cursor.
GLUTCURSORINHERIT
Use parent's cursor.
DESCRIPTION
glutSetCursor changes the cursor image of the current window. Each
call requests the window system change the cursor appropriately. The
cursor image when a window is created is GLUTCURSORINHERIT. The exact
cursor images used are implementation dependent. The intent is for the
image to convey the meaning of the cursor name. For a top-level window,
GLUTCURSORINHERIT uses the default window system cursor.
X IMPLEMENTATION NOTES
GLUT for X uses SGI's SGICROSHAIRCURSOR convention to access a
full-screen cross-hair cursor if possible.
SEE ALSO
glutCreateWindow, glutCreateSubWindow
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutSetCursor(3GLUT)
|