| Safe Haskell | None |
|---|
Vis.Vis
Documentation
Arguments
| :: Real b | |
| => Maybe ((Int, Int), (Int, Int)) | optional (window size, window position) |
| -> String | window name |
| -> Double | sample time |
| -> a | initial state |
| -> (FullState a -> IO a) | sim function |
| -> (FullState a -> IO (VisObject b, Maybe Cursor)) | draw function, can give a different cursor |
| -> (a -> IO ()) | set camera function |
| -> Maybe (a -> Key -> KeyState -> Modifiers -> Position -> a) | keyboard/mouse callback |
| -> Maybe (a -> Position -> a) | motion callback |
| -> Maybe (a -> Position -> a) | passive motion callback |
| -> IO () |