Debian Codegraph @

src/Graphics/UI/GLUT/Callbacks.hs

raw
1 --------------------------------------------------------------------------------
2 -- |
3 -- Module : Graphics.UI.GLUT.Callbacks
4 -- Copyright : (c) Sven Panne 2002-2018
5 -- License : BSD3
6 --
7 -- Maintainer : Sven Panne <[email protected]>
8 -- Stability : stable
9 -- Portability : portable
10 --
11 --
12 -- GLUT supports a number of callbacks to respond to events. There are three
13 -- types of callbacks: window, menu, and global. Window callbacks indicate when
14 -- to redisplay or reshape a window, when the visibility of the window changes,
15 -- and when input is available for the window. Menu callbacks are described in
16 -- "Graphics.UI.GLUT.Menu". The global callbacks manage the passing of time and
17 -- menu usage. The calling order of callbacks between different windows is
18 -- undefined.
19 --
20 -- Callbacks for input events should be delivered to the window the event occurs
21 -- in. Events should not propagate to parent windows.
22 --
23 -- A callback of type @Foo@ can registered by setting @fooCallback@ to 'Just'
24 -- the callback. Almost all callbacks can be de-registered by setting
25 -- the corresponding @fooCallback@ to 'Nothing', the only exceptions being
26 -- 'Graphics.UI.GLUT.Callbacks.Window.DisplayCallback' (can only be
27 -- re-registered) and 'Graphics.UI.GLUT.Callbacks.Global.TimerCallback' (can\'t
28 -- be unregistered).
29 --
30 -- /X Implementation Notes:/ The X GLUT implementation uses the X Input
31 -- extension to support sophisticated input devices: Spaceball, dial & button
32 -- box, and digitizing tablet. Because the X Input extension does not mandate
33 -- how particular types of devices are advertised through the extension, it is
34 -- possible GLUT for X may not correctly support input devices that would
35 -- otherwise be of the correct type. The X GLUT implementation will support the
36 -- Silicon Graphics Spaceball, dial & button box, and digitizing tablet as
37 -- advertised through the X Input extension.
38 --
39 --------------------------------------------------------------------------------
40
41 module Graphics.UI.GLUT.Callbacks (
42 module Graphics.UI.GLUT.Callbacks.Window,
43 module Graphics.UI.GLUT.Callbacks.Global
44 ) where
45
46 import Graphics.UI.GLUT.Callbacks.Window
47 import Graphics.UI.GLUT.Callbacks.Global