Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- createWindow :: CString -> CInt -> CInt -> CInt -> CInt -> Word32 -> IO Window
- createWindowAndRenderer :: CInt -> CInt -> Word32 -> Ptr Window -> Ptr Renderer -> IO CInt
- createWindowFrom :: Ptr () -> IO Window
- destroyWindow :: Window -> IO ()
- disableScreenSaver :: IO ()
- enableScreenSaver :: IO ()
- glBindTexture :: Texture -> Ptr CFloat -> Ptr CFloat -> IO CInt
- glCreateContext :: Window -> IO GLContext
- glDeleteContext :: GLContext -> IO ()
- glExtensionSupported :: CString -> IO Bool
- glGetAttribute :: GLattr -> Ptr CInt -> IO CInt
- glGetCurrentContext :: IO GLContext
- glGetCurrentWindow :: IO Window
- glGetDrawableSize :: Window -> Ptr CInt -> Ptr CInt -> IO ()
- glGetProcAddress :: CString -> IO (Ptr ())
- glGetSwapInterval :: IO CInt
- glLoadLibrary :: CString -> IO CInt
- glMakeCurrent :: Window -> GLContext -> IO CInt
- glResetAttributes :: IO ()
- glSetAttribute :: GLattr -> CInt -> IO CInt
- glSetSwapInterval :: CInt -> IO CInt
- glSwapWindow :: Window -> IO ()
- glUnbindTexture :: Texture -> IO CInt
- glUnloadLibrary :: IO ()
- getClosestDisplayMode :: CInt -> Ptr DisplayMode -> Ptr DisplayMode -> IO (Ptr DisplayMode)
- getCurrentDisplayMode :: CInt -> Ptr DisplayMode -> IO CInt
- getCurrentVideoDriver :: IO CString
- getDesktopDisplayMode :: CInt -> Ptr DisplayMode -> IO CInt
- getDisplayBounds :: CInt -> Ptr Rect -> IO CInt
- getDisplayMode :: CInt -> CInt -> Ptr DisplayMode -> IO CInt
- getDisplayName :: CInt -> IO CString
- getNumDisplayModes :: CInt -> IO CInt
- getNumVideoDisplays :: IO CInt
- getNumVideoDrivers :: IO CInt
- getVideoDriver :: CInt -> IO CString
- getWindowBrightness :: Window -> IO CFloat
- getWindowData :: Window -> CString -> IO (Ptr ())
- getWindowDisplayIndex :: Window -> IO CInt
- getWindowDisplayMode :: Window -> Ptr DisplayMode -> IO CInt
- getWindowFlags :: Window -> IO Word32
- getWindowFromID :: Word32 -> IO Window
- getWindowGammaRamp :: Window -> Ptr Word16 -> Ptr Word16 -> Ptr Word16 -> IO CInt
- getWindowGrab :: Window -> IO Bool
- getWindowID :: Window -> IO Word32
- getWindowMaximumSize :: Window -> Ptr CInt -> Ptr CInt -> IO ()
- getWindowMinimumSize :: Window -> Ptr CInt -> Ptr CInt -> IO ()
- getWindowPixelFormat :: Window -> IO Word32
- getWindowPosition :: Window -> Ptr CInt -> Ptr CInt -> IO ()
- getWindowSize :: Window -> Ptr CInt -> Ptr CInt -> IO ()
- getWindowSurface :: Window -> IO (Ptr Surface)
- getWindowTitle :: Window -> IO CString
- hideWindow :: Window -> IO ()
- isScreenSaverEnabled :: IO Bool
- maximizeWindow :: Window -> IO ()
- minimizeWindow :: Window -> IO ()
- raiseWindow :: Window -> IO ()
- restoreWindow :: Window -> IO ()
- setWindowBordered :: Window -> Bool -> IO ()
- setWindowBrightness :: Window -> CFloat -> IO CInt
- setWindowData :: Window -> CString -> Ptr () -> IO (Ptr ())
- setWindowDisplayMode :: Window -> Ptr DisplayMode -> IO CInt
- setWindowFullscreen :: Window -> Word32 -> IO CInt
- setWindowGammaRamp :: Window -> Ptr Word16 -> Ptr Word16 -> Ptr Word16 -> IO CInt
- setWindowGrab :: Window -> Bool -> IO ()
- setWindowIcon :: Window -> Ptr Surface -> IO ()
- setWindowMaximumSize :: Window -> CInt -> CInt -> IO ()
- setWindowMinimumSize :: Window -> CInt -> CInt -> IO ()
- setWindowPosition :: Window -> CInt -> CInt -> IO ()
- setWindowSize :: Window -> CInt -> CInt -> IO ()
- setWindowTitle :: Window -> CString -> IO ()
- showMessageBox :: Ptr MessageBoxData -> Ptr CInt -> IO CInt
- showSimpleMessageBox :: Word32 -> CString -> CString -> Window -> IO CInt
- showWindow :: Window -> IO ()
- updateWindowSurface :: Window -> IO CInt
- updateWindowSurfaceRects :: Window -> Ptr Rect -> CInt -> IO CInt
- videoInit :: CString -> IO CInt
- videoQuit :: IO ()
- createRenderer :: Window -> CInt -> Word32 -> IO Renderer
- createSoftwareRenderer :: Ptr Surface -> IO Renderer
- createTexture :: Renderer -> Word32 -> CInt -> CInt -> CInt -> IO Texture
- createTextureFromSurface :: Renderer -> Ptr Surface -> IO Texture
- destroyRenderer :: Renderer -> IO ()
- destroyTexture :: Texture -> IO ()
- getNumRenderDrivers :: IO CInt
- getRenderDrawBlendMode :: Renderer -> IO Int
- getRenderDrawColor :: Renderer -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO CInt
- getRenderDriverInfo :: CInt -> Ptr RendererInfo -> IO CInt
- getRenderTarget :: Renderer -> IO Texture
- getRenderer :: Window -> IO Renderer
- getRendererInfo :: Renderer -> Ptr RendererInfo -> IO CInt
- getRendererOutputSize :: Renderer -> Ptr CInt -> Ptr CInt -> IO CInt
- getTextureAlphaMod :: Texture -> Ptr Word8 -> IO CInt
- getTextureBlendMode :: Texture -> Ptr BlendMode -> IO CInt
- getTextureColorMod :: Texture -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO CInt
- lockTexture :: Texture -> Ptr Rect -> Ptr (Ptr ()) -> Ptr CInt -> IO CInt
- queryTexture :: Texture -> Word32 -> Ptr CInt -> Ptr CInt -> Ptr CInt -> IO CInt
- renderClear :: Renderer -> IO CInt
- renderCopy :: Renderer -> Texture -> Ptr Rect -> Ptr Rect -> IO CInt
- renderCopyEx :: Renderer -> Texture -> Ptr Rect -> Ptr Rect -> CDouble -> Ptr Point -> RendererFlip -> IO CInt
- renderDrawLine :: Renderer -> CInt -> CInt -> CInt -> CInt -> IO CInt
- renderDrawLines :: Renderer -> Ptr Point -> CInt -> IO CInt
- renderDrawPoint :: Renderer -> CInt -> CInt -> IO CInt
- renderDrawPoints :: Renderer -> Ptr Point -> CInt -> IO CInt
- renderDrawRect :: Renderer -> Ptr Rect -> IO CInt
- renderDrawRects :: Renderer -> Ptr Rect -> CInt -> IO CInt
- renderFillRect :: Renderer -> Ptr Rect -> IO CInt
- renderFillRects :: Renderer -> Ptr Rect -> CInt -> IO CInt
- renderGetClipRect :: Renderer -> Ptr Rect -> IO ()
- renderGetLogicalSize :: Renderer -> Ptr CInt -> Ptr CInt -> IO ()
- renderGetScale :: Renderer -> Ptr CFloat -> Ptr CFloat -> IO ()
- renderGetViewport :: Renderer -> Ptr Rect -> IO ()
- renderPresent :: Renderer -> IO ()
- renderReadPixels :: Renderer -> Ptr Rect -> Word32 -> Ptr () -> CInt -> IO CInt
- renderSetClipRect :: Renderer -> Ptr Rect -> IO CInt
- renderSetLogicalSize :: Renderer -> CInt -> CInt -> IO CInt
- renderSetScale :: Renderer -> CFloat -> CFloat -> IO CInt
- renderSetViewport :: Renderer -> Ptr Rect -> IO CInt
- renderTargetSupported :: Renderer -> IO Bool
- setRenderDrawBlendMode :: Renderer -> BlendMode -> IO CInt
- setRenderDrawColor :: Renderer -> Word8 -> Word8 -> Word8 -> Word8 -> IO CInt
- setRenderTarget :: Renderer -> Texture -> IO CInt
- setTextureAlphaMod :: Texture -> Word8 -> IO CInt
- setTextureBlendMode :: Texture -> BlendMode -> IO CInt
- setTextureColorMod :: Texture -> Word8 -> Word8 -> Word8 -> IO CInt
- unlockTexture :: Texture -> IO ()
- updateTexture :: Texture -> Ptr Rect -> Ptr () -> CInt -> IO CInt
- updateYUVTexture :: Texture -> Ptr Rect -> Ptr Word8 -> CInt -> Ptr Word8 -> CInt -> Ptr Word8 -> CInt -> IO CInt
- allocFormat :: Word32 -> IO (Ptr PixelFormat)
- allocPalette :: CInt -> IO (Ptr Palette)
- calculateGammaRamp :: CFloat -> Ptr Word16 -> IO ()
- freeFormat :: Ptr PixelFormat -> IO ()
- freePalette :: Ptr Palette -> IO ()
- getPixelFormatName :: Word32 -> IO CString
- getRGB :: Word32 -> Ptr PixelFormat -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO ()
- getRGBA :: Word32 -> Ptr PixelFormat -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO ()
- mapRGB :: Ptr PixelFormat -> Word8 -> Word8 -> Word8 -> IO Word32
- mapRGBA :: Ptr PixelFormat -> Word8 -> Word8 -> Word8 -> Word8 -> IO Word32
- masksToPixelFormatEnum :: CInt -> Word32 -> Word32 -> Word32 -> Word32 -> IO Word32
- pixelFormatEnumToMasks :: Word32 -> Ptr CInt -> Ptr Word32 -> Ptr Word32 -> Ptr Word32 -> Ptr Word32 -> IO Bool
- setPaletteColors :: Ptr Palette -> Ptr Color -> CInt -> CInt -> IO CInt
- setPixelFormatPalette :: Ptr PixelFormat -> Ptr Palette -> IO CInt
- enclosePoints :: Ptr Point -> CInt -> Ptr Rect -> Ptr Rect -> IO Bool
- hasIntersection :: Ptr Rect -> Ptr Rect -> IO Bool
- intersectRect :: Ptr Rect -> Ptr Rect -> Ptr Rect -> IO Bool
- intersectRectAndLine :: Ptr Rect -> Ptr CInt -> Ptr CInt -> Ptr CInt -> Ptr CInt -> IO Bool
- unionRect :: Ptr Rect -> Ptr Rect -> Ptr Rect -> IO ()
- blitScaled :: Ptr Surface -> Ptr Rect -> Ptr Surface -> Ptr Rect -> IO CInt
- blitSurface :: Ptr Surface -> Ptr Rect -> Ptr Surface -> Ptr Rect -> IO CInt
- convertPixels :: CInt -> CInt -> Word32 -> Ptr () -> CInt -> Word32 -> Ptr () -> CInt -> IO CInt
- convertSurface :: Ptr Surface -> Ptr PixelFormat -> Word32 -> IO (Ptr Surface)
- convertSurfaceFormat :: Ptr Surface -> Word32 -> Word32 -> IO (Ptr Surface)
- createRGBSurface :: Word32 -> CInt -> CInt -> CInt -> Word32 -> Word32 -> Word32 -> Word32 -> IO (Ptr Surface)
- createRGBSurfaceFrom :: Ptr () -> CInt -> CInt -> CInt -> CInt -> Word32 -> Word32 -> Word32 -> Word32 -> IO (Ptr Surface)
- fillRect :: Ptr Surface -> Ptr Rect -> Word32 -> IO CInt
- fillRects :: Ptr Surface -> Ptr Rect -> CInt -> Word32 -> IO CInt
- freeSurface :: Ptr Surface -> IO ()
- getClipRect :: Ptr Surface -> Ptr Rect -> IO ()
- getColorKey :: Ptr Surface -> Ptr Word32 -> IO CInt
- getSurfaceAlphaMod :: Ptr Surface -> Ptr Word8 -> IO CInt
- getSurfaceBlendMode :: Ptr Surface -> BlendMode -> IO CInt
- getSurfaceColorMod :: Ptr Surface -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO CInt
- loadBMP :: CString -> IO (Ptr Surface)
- loadBMP_RW :: Ptr RWops -> CInt -> IO (Ptr Surface)
- lockSurface :: Ptr Surface -> IO CInt
- lowerBlit :: Ptr Surface -> Ptr Rect -> Ptr Surface -> Ptr Rect -> IO CInt
- lowerBlitScaled :: Ptr Surface -> Ptr Rect -> Ptr Surface -> Ptr Rect -> IO CInt
- saveBMP :: Ptr Surface -> CString -> IO CInt
- saveBMP_RW :: Ptr Surface -> Ptr RWops -> CInt -> IO CInt
- setClipRect :: Ptr Surface -> Ptr Rect -> IO Bool
- setColorKey :: Ptr Surface -> CInt -> Word32 -> IO CInt
- setSurfaceAlphaMod :: Ptr Surface -> Word8 -> IO CInt
- setSurfaceBlendMode :: Ptr Surface -> BlendMode -> IO CInt
- setSurfaceColorMod :: Ptr Surface -> Word8 -> Word8 -> Word8 -> IO CInt
- setSurfacePalette :: Ptr Surface -> Ptr Palette -> IO CInt
- setSurfaceRLE :: Ptr Surface -> CInt -> IO CInt
- unlockSurface :: Ptr Surface -> IO ()
- getWindowWMInfo :: Window -> SysWMinfo -> IO Bool
- getClipboardText :: IO CString
- hasClipboardText :: IO Bool
- setClipboardText :: CString -> IO CInt
Display and Window Management
createWindowFrom :: Ptr () -> IO Window Source
destroyWindow :: Window -> IO () Source
disableScreenSaver :: IO () Source
enableScreenSaver :: IO () Source
glCreateContext :: Window -> IO GLContext Source
glDeleteContext :: GLContext -> IO () Source
glExtensionSupported :: CString -> IO Bool Source
glGetProcAddress :: CString -> IO (Ptr ()) Source
glLoadLibrary :: CString -> IO CInt Source
glResetAttributes :: IO () Source
glSetSwapInterval :: CInt -> IO CInt Source
glSwapWindow :: Window -> IO () Source
glUnbindTexture :: Texture -> IO CInt Source
glUnloadLibrary :: IO () Source
getClosestDisplayMode :: CInt -> Ptr DisplayMode -> Ptr DisplayMode -> IO (Ptr DisplayMode) Source
getCurrentDisplayMode :: CInt -> Ptr DisplayMode -> IO CInt Source
getDesktopDisplayMode :: CInt -> Ptr DisplayMode -> IO CInt Source
getDisplayMode :: CInt -> CInt -> Ptr DisplayMode -> IO CInt Source
getDisplayName :: CInt -> IO CString Source
getNumDisplayModes :: CInt -> IO CInt Source
getVideoDriver :: CInt -> IO CString Source
getWindowBrightness :: Window -> IO CFloat Source
getWindowDisplayIndex :: Window -> IO CInt Source
getWindowDisplayMode :: Window -> Ptr DisplayMode -> IO CInt Source
getWindowFlags :: Window -> IO Word32 Source
getWindowFromID :: Word32 -> IO Window Source
getWindowGrab :: Window -> IO Bool Source
getWindowID :: Window -> IO Word32 Source
getWindowPixelFormat :: Window -> IO Word32 Source
getWindowTitle :: Window -> IO CString Source
hideWindow :: Window -> IO () Source
maximizeWindow :: Window -> IO () Source
minimizeWindow :: Window -> IO () Source
raiseWindow :: Window -> IO () Source
restoreWindow :: Window -> IO () Source
setWindowBordered :: Window -> Bool -> IO () Source
setWindowDisplayMode :: Window -> Ptr DisplayMode -> IO CInt Source
setWindowGrab :: Window -> Bool -> IO () Source
setWindowTitle :: Window -> CString -> IO () Source
showMessageBox :: Ptr MessageBoxData -> Ptr CInt -> IO CInt Source
showWindow :: Window -> IO () Source
updateWindowSurface :: Window -> IO CInt Source
2D Accelerated Rendering
destroyRenderer :: Renderer -> IO () Source
destroyTexture :: Texture -> IO () Source
getRenderDrawColor :: Renderer -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO CInt Source
getRenderDriverInfo :: CInt -> Ptr RendererInfo -> IO CInt Source
getRenderTarget :: Renderer -> IO Texture Source
getRenderer :: Window -> IO Renderer Source
getRendererInfo :: Renderer -> Ptr RendererInfo -> IO CInt Source
renderClear :: Renderer -> IO CInt Source
renderCopyEx :: Renderer -> Texture -> Ptr Rect -> Ptr Rect -> CDouble -> Ptr Point -> RendererFlip -> IO CInt Source
renderPresent :: Renderer -> IO () Source
unlockTexture :: Texture -> IO () Source
updateYUVTexture :: Texture -> Ptr Rect -> Ptr Word8 -> CInt -> Ptr Word8 -> CInt -> Ptr Word8 -> CInt -> IO CInt Source
Pixel Formats and Conversion Routines
allocFormat :: Word32 -> IO (Ptr PixelFormat) Source
freeFormat :: Ptr PixelFormat -> IO () Source
freePalette :: Ptr Palette -> IO () Source
getPixelFormatName :: Word32 -> IO CString Source
getRGBA :: Word32 -> Ptr PixelFormat -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO () Source
pixelFormatEnumToMasks :: Word32 -> Ptr CInt -> Ptr Word32 -> Ptr Word32 -> Ptr Word32 -> Ptr Word32 -> IO Bool Source
setPixelFormatPalette :: Ptr PixelFormat -> Ptr Palette -> IO CInt Source
Rectangle Functions
Surface Creation and Simple Drawing
convertPixels :: CInt -> CInt -> Word32 -> Ptr () -> CInt -> Word32 -> Ptr () -> CInt -> IO CInt Source
convertSurface :: Ptr Surface -> Ptr PixelFormat -> Word32 -> IO (Ptr Surface) Source
createRGBSurface :: Word32 -> CInt -> CInt -> CInt -> Word32 -> Word32 -> Word32 -> Word32 -> IO (Ptr Surface) Source
createRGBSurfaceFrom :: Ptr () -> CInt -> CInt -> CInt -> CInt -> Word32 -> Word32 -> Word32 -> Word32 -> IO (Ptr Surface) Source
freeSurface :: Ptr Surface -> IO () Source
unlockSurface :: Ptr Surface -> IO () Source
Platform-specific Window Management
Clipboard Handling
setClipboardText :: CString -> IO CInt Source