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