Next: 7.1 glutDisplayFunc Up: GLUT APIversion 3 Previous: 6.9 glutAttachMenuglutDetachMenu

# 7 Callback Registration

GLUT supports a number of callbacks to respond to events. There are three types of callbacks: window, menu, and global. Window callbacks indicate when to redisplay or reshape a window, when the visibility of the window changes, and when input is available for the window. The menu callback is set by the `glutCreateMenu` call described already. The global callbacks manage the passing of time and menu usage. The calling order of callbacks between different windows is undefined.

Callbacks for input events should be delivered to the window the event occurs in. Events should not propagate to parent windows.

X Implementation Notes

The X GLUT implementation uses the X Input extension [11,12] to support sophisticated input devices: Spaceball, dial & button box, and digitizing tablet. Because the X Input extension does not mandate how particular types of devices are advertised through the extension, it is possible GLUT for X may not correctly support input devices that would otherwise be of the correct type. The X GLUT implementation will support the Silicon Graphics Spaceball, dial & button box, and digitizing tablet as advertised through the X Input extension.

- 7.1 glutDisplayFunc
- 7.2 glutOverlayDisplayFunc
- 7.3 glutReshapeFunc
- 7.4 glutKeyboardFunc
- 7.5 glutMouseFunc
- 7.6 glutMotionFunc, glutPassiveMotionFunc
- 7.7 glutVisibilityFunc
- 7.8 glutEntryFunc
- 7.9 glutSpecialFunc
- 7.10 glutSpaceballMotionFunc
- 7.11 glutSpaceballRotateFunc
- 7.12 glutSpaceballButtonFunc
- 7.13 glutButtonBoxFunc
- 7.14 glutDialsFunc
- 7.15 glutTabletMotionFunc
- 7.16 glutTabletButtonFunc
- 7.17 glutMenuStatusFunc
- 7.18 glutIdleFunc
- 7.19 glutTimerFunc

Next: 7.1 glutDisplayFunc Up: GLUT APIversion 3 Previous: 6.9 glutAttachMenuglutDetachMenu