ContentsIndex
Graphics.Plot.Control
Description
Implements GLUT callbacks concerned with controlling the world view.
Synopsis
callbackKeyMouse :: IORef DisplayState -> Key -> KeyState -> Modifiers -> Position -> IO ()
callbackMotion :: IORef DisplayState -> Position -> IO ()
callbackIdle :: IORef DisplayState -> IO ()
Documentation
callbackKeyMouse
:: IORef DisplayStateThe current state.
-> KeyThe key/button that was pressed/released.
-> KeyStateWhether the key or button went Up or Down.
-> ModifiersWhether CTRL or SHIFT modifier keys were active.
-> PositionThe position of the mouse when this event occured.
-> IO ()
GLUT calls back on this function when a key or mouse button has been pressed or released. It inspects the event and modifies the state accordingly.
callbackMotion :: IORef DisplayState -> Position -> IO ()
GLUT calls back on this function when the mouse moves while a key or button has been pressed. It updates the state to manage translation or rotation of the world view.
callbackIdle :: IORef DisplayState -> IO ()
GLUT calls back on this function when it's in an idle state. It calls GLUT.postRedisplay, which instructs GLUT to call the display callback in the next iteration.
Produced by Haddock version 0.7