Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glutsetcursor(3glut) [osx man page]

glutSetCursor(3GLUT)						       GLUT						      glutSetCursor(3GLUT)

glutSetCursor - changes the cursor image of the current window. SYNTAX
#include <GLUT/glut.h> void glutSetCursor(int cursor); ARGUMENTS
cursor Name of cursor image to change to. Possible values follow: GLUT_CURSOR_RIGHT_ARROW Arrow pointing up and to the right. GLUT_CURSOR_LEFT_ARROW Arrow pointing up and to the left. GLUT_CURSOR_INFO Pointing hand. GLUT_CURSOR_DESTROY Skull & cross bones. GLUT_CURSOR_HELP Question mark. GLUT_CURSOR_CYCLE Arrows rotating in a circle. GLUT_CURSOR_SPRAY Spray can. GLUT_CURSOR_WAIT Wrist watch. GLUT_CURSOR_TEXT Insertion point cursor for text. GLUT_CURSOR_CROSSHAIR Simple cross-hair. GLUT_CURSOR_UP_DOWN Bi-directional pointing up & down. GLUT_CURSOR_LEFT_RIGHT Bi-directional pointing left & right. GLUT_CURSOR_TOP_SIDE Arrow pointing to top side. GLUT_CURSOR_BOTTOM_SIDE Arrow pointing to bottom side. GLUT_CURSOR_LEFT_SIDE Arrow pointing to left side. GLUT_CURSOR_RIGHT_SIDE Arrow pointing to right side. GLUT_CURSOR_TOP_LEFT_CORNER Arrow pointing to top-left corner. GLUT_CURSOR_TOP_RIGHT_CORNER Arrow pointing to top-right corner. GLUT_CURSOR_BOTTOM_RIGHT_CORNER Arrow pointing to bottom-left corner. GLUT_CURSOR_BOTTOM_LEFT_CORNER Arrow pointing to bottom-right corner. GLUT_CURSOR_FULL_CROSSHAIR Full-screen cross-hair cursor (if possible, otherwise GLUT_CURSOR_CROSSHAIR). GLUT_CURSOR_NONE Invisible cursor. GLUT_CURSOR_INHERIT 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 GLUT_CURSOR_INHERIT. 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, GLUT_CURSOR_INHERIT uses the default window system cursor. X IMPLEMENTATION NOTES
GLUT for X uses SGI's _SGI_CROSSHAIR_CURSOR convention to access a full-screen cross-hair cursor if possible. SEE ALSO
glutCreateWindow, glutCreateSubWindow AUTHOR
Mark J. Kilgard ( GLUT
3.7 glutSetCursor(3GLUT)

Check Out this Related Man Page

CURSES_ADDCH(3) 					   BSD Library Functions Manual 					   CURSES_ADDCH(3)

curses_addch, addch, waddch, mvaddch, mvwaddch -- curses add characters to windows routines LIBRARY
Curses Library (libcurses, -lcurses) SYNOPSIS
#include <curses.h> int addch(chtype ch); int waddch(WINDOW *win, chtype ch); int mvaddch(int y, int x, chtype ch); int mvwaddch(WINDOW *win, int y, int x, chtype ch); DESCRIPTION
These functions add characters to stdscr or to the specified window. The addch() function adds the character given in ch to stdscr at the current cursor position and advances the current cursor position by one. Any character attributes set in ch will be merged with the background attributes currently set on stdscr. The waddch() function is the same as the addch() function, excepting that the character is added to the window specified by win. The mvaddch() and mvwaddch() functions are the same as the addch() and waddch() functions, respectively, excepting that wmove() is called to move the cursor to the position specified by y, x before the character is added to the window. LINE DRAWING CHARACTERS Some terminals support the display of line drawing and graphics characters. These characters can be added using their defined names, as shown in the table below. Where the terminal does not support a specific character, the default (non-graphics) character is displayed instead. Name Default Description ACS_RARROW > Arrow pointing right ACS_LARROW < Arrow pointing left ACS_UARROW ^ Arrow pointing up ACS_DARROW v Arrow pointing down ACS_BLOCK # Solid square block ACS_DIAMOND + Diamond ACS_CKBOARD : Checker board (stipple) ACS_DEGREE ' Degree symbol ACS_PLMINUS # Plus/minus ACS_BOARD # Board of squares ACS_LANTERN # Lantern symbol ACS_LRCORNER + Lower right-hand corner ACS_URCORNER + Upper right-hand corner ACS_ULCORNER + Upper left-hand corner ACS_LLCORNER + Lower left-hand corner ACS_PLUS + Plus ACS_HLINE - Horizontal line ACS_S1 - Scan line 1 ACS_S9 - Scan line 9 ACS_LTEE + Left tee ACS_RTEE + Right tee ACS_BTEE + Bottom tee ACS_TTEE + Top tee ACS_VLINE | Vertical line ACS_BULLET o Bullet The following additional, ncurses compatible, characters are also supported. Name Default Description ACS_S3 - Scan line 3 ACS_S7 - Scan line 7 ACS_LEQUAL < Less than or equal to ACS_GEQUAL > Greater than or equal to ACS_PI * Pi symbol ACS_NEQUAL ! Not equal to ACS_STERLING f Sterling symbol For compatibility with some System V implementations, the following definitions are also supported. System V Name NetBSD Curses Name ACS_SBBS ACS_LRCORNER ACS_BBSS ACS_URCORNER ACS_BSSB ACS_ULCORNER ACS_SSBB ACS_LLCORNER ACS_SSSS ACS_PLUS ACS_BSBS ACS_HLINE ACS_SSSB ACS_LTEE ACS_SBSS ACS_RTEE ACS_SSBS ACS_BTEE ACS_BSSS ACS_TTEE ACS_SBSB ACS_VLINE RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following values: OK The function completed successfully. ERR An error occurred in the function. SEE ALSO
curses_addchstr(3), curses_addstr(3), curses_attributes(3), curses_cursor(3), curses_delch(3), curses_inch(3), curses_insertch(3) STANDARDS
The NetBSD Curses library complies with the X/Open Curses specification, part of the Single Unix Specification. HISTORY
The Curses package appeared in 4.0BSD. BSD
July 11, 2007 BSD
Man Page