Graphics.UI.GLFW
Contents
- initialize :: IO Bool
 - terminate :: IO ()
 - getVideoMode :: IO VideoMode
 - getVideoModes :: IO [VideoMode]
 - data VideoMode = VideoMode {}
 - openWindow :: DisplayOptions -> IO Bool
 - closeWindow :: IO ()
 - setWindowTitle :: String -> IO ()
 - setWindowDimensions :: Int -> Int -> IO ()
 - setWindowPosition :: Int -> Int -> IO ()
 - iconifyWindow :: IO ()
 - restoreWindow :: IO ()
 - swapBuffers :: IO ()
 - setWindowBufferSwapInterval :: Int -> IO ()
 - data  DisplayMode 
- = Window
 - | Fullscreen
 
 - data  DisplayOptions  = DisplayOptions {
- displayOptions_width :: Int
 - displayOptions_height :: Int
 - displayOptions_numRedBits :: Int
 - displayOptions_numGreenBits :: Int
 - displayOptions_numBlueBits :: Int
 - displayOptions_numAlphaBits :: Int
 - displayOptions_numDepthBits :: Int
 - displayOptions_numStencilBits :: Int
 - displayOptions_displayMode :: DisplayMode
 - displayOptions_refreshRate :: Maybe Int
 - displayOptions_accumNumRedBits :: Maybe Int
 - displayOptions_accumNumGreenBits :: Maybe Int
 - displayOptions_accumNumBlueBits :: Maybe Int
 - displayOptions_accumNumAlphaBits :: Maybe Int
 - displayOptions_numAuxiliaryBuffers :: Maybe Int
 - displayOptions_numFsaaSamples :: Maybe Int
 - displayOptions_windowIsResizable :: Bool
 - displayOptions_stereoRendering :: Bool
 
 - defaultDisplayOptions :: DisplayOptions
 - windowIsOpen :: IO Bool
 - windowIsActive :: IO Bool
 - windowIsIconified :: IO Bool
 - windowIsResizable :: IO Bool
 - windowIsHardwareAccelerated :: IO Bool
 - windowSupportsStereoRendering :: IO Bool
 - getWindowRefreshRate :: IO Int
 - getWindowDimensions :: IO (Int, Int)
 - getWindowValue :: WindowValue -> IO Int
 - setWindowCloseCallback :: WindowCloseCallback -> IO ()
 - setWindowSizeCallback :: WindowSizeCallback -> IO ()
 - setWindowRefreshCallback :: WindowRefreshCallback -> IO ()
 - data WindowValue
 - type WindowCloseCallback = IO Bool
 - type WindowSizeCallback = Int -> Int -> IO ()
 - type WindowRefreshCallback = IO ()
 - pollEvents :: IO ()
 - waitEvents :: IO ()
 - keyIsPressed :: Key -> IO Bool
 - setCharCallback :: CharCallback -> IO ()
 - setKeyCallback :: KeyCallback -> IO ()
 - data  Key 
- = CharKey Char
 - | KeyUnknown
 - | KeySpace
 - | KeySpecial
 - | KeyEsc
 - | KeyF1
 - | KeyF2
 - | KeyF3
 - | KeyF4
 - | KeyF5
 - | KeyF6
 - | KeyF7
 - | KeyF8
 - | KeyF9
 - | KeyF10
 - | KeyF11
 - | KeyF12
 - | KeyF13
 - | KeyF14
 - | KeyF15
 - | KeyF16
 - | KeyF17
 - | KeyF18
 - | KeyF19
 - | KeyF20
 - | KeyF21
 - | KeyF22
 - | KeyF23
 - | KeyF24
 - | KeyF25
 - | KeyUp
 - | KeyDown
 - | KeyLeft
 - | KeyRight
 - | KeyLeftShift
 - | KeyRightShift
 - | KeyLeftCtrl
 - | KeyRightCtrl
 - | KeyLeftAlt
 - | KeyRightAlt
 - | KeyTab
 - | KeyEnter
 - | KeyBackspace
 - | KeyInsert
 - | KeyDel
 - | KeyPageup
 - | KeyPagedown
 - | KeyHome
 - | KeyEnd
 - | KeyPad0
 - | KeyPad1
 - | KeyPad2
 - | KeyPad3
 - | KeyPad4
 - | KeyPad5
 - | KeyPad6
 - | KeyPad7
 - | KeyPad8
 - | KeyPad9
 - | KeyPadDivide
 - | KeyPadMultiply
 - | KeyPadSubtract
 - | KeyPadAdd
 - | KeyPadDecimal
 - | KeyPadEqual
 - | KeyPadEnter
 
 - type CharCallback = Char -> Bool -> IO ()
 - type KeyCallback = Key -> Bool -> IO ()
 - mouseButtonIsPressed :: MouseButton -> IO Bool
 - getMousePosition :: IO (Int, Int)
 - getMouseWheel :: IO Int
 - setMousePosition :: Int -> Int -> IO ()
 - setMouseWheel :: Int -> IO ()
 - setMouseButtonCallback :: MouseButtonCallback -> IO ()
 - setMousePositionCallback :: MousePositionCallback -> IO ()
 - setMouseWheelCallback :: MouseWheelCallback -> IO ()
 - data MouseButton
 - type MouseButtonCallback = MouseButton -> Bool -> IO ()
 - type MousePositionCallback = Int -> Int -> IO ()
 - type MouseWheelCallback = Int -> IO ()
 - joystickIsPresent :: Joystick -> IO Bool
 - getJoystickPosition :: Joystick -> Int -> IO [Float]
 - getNumJoystickAxes :: Joystick -> IO Int
 - getNumJoystickButtons :: Joystick -> IO Int
 - joystickButtonsArePressed :: Joystick -> Int -> IO [Bool]
 - data  Joystick 
- = Joystick0
 - | Joystick1
 - | Joystick2
 - | Joystick3
 - | Joystick4
 - | Joystick5
 - | Joystick6
 - | Joystick7
 - | Joystick8
 - | Joystick9
 - | Joystick10
 - | Joystick11
 - | Joystick12
 - | Joystick13
 - | Joystick14
 - | Joystick15
 
 - getTime :: IO Double
 - setTime :: Double -> IO ()
 - resetTime :: IO ()
 - sleep :: Double -> IO ()
 - getGlfwVersion :: IO Version
 - getGlVersion :: IO Version
 
Initialization and termination
Video mode information
Constructors
| VideoMode | |
Fields  | |
Windows
Management
openWindow :: DisplayOptions -> IO BoolSource
setWindowTitle :: String -> IO ()Source
data DisplayOptions Source
Constructors
Instances
Information
getWindowDimensions :: IO (Int, Int)Source
getWindowValue :: WindowValue -> IO IntSource
data WindowValue Source
Constructors
| NumRedBits | |
| NumGreenBits | |
| NumBlueBits | |
| NumAlphaBits | |
| NumDepthBits | |
| NumStencilBits | |
| NumAccumRedBits | |
| NumAccumGreenBits | |
| NumAccumBlueBits | |
| NumAccumAlphaBits | |
| NumAuxBuffers | |
| NumFsaaSamples | 
Instances
type WindowCloseCallback = IO BoolSource
type WindowRefreshCallback = IO ()Source
Input
pollEvents :: IO ()Source
waitEvents :: IO ()Source
Keyboard
keyIsPressed :: Key -> IO BoolSource
setKeyCallback :: KeyCallback -> IO ()Source
Constructors
Mouse
getMousePosition :: IO (Int, Int)Source
setMouseWheel :: Int -> IO ()Source
data MouseButton Source
Constructors
| MouseButton0 | |
| MouseButton1 | |
| MouseButton2 | |
| MouseButton3 | |
| MouseButton4 | |
| MouseButton5 | |
| MouseButton6 | |
| MouseButton7 | 
Instances
type MouseButtonCallback = MouseButton -> Bool -> IO ()Source
type MouseWheelCallback = Int -> IO ()Source