SDL-0.6.6.0: Binding to libSDL

Copyright | (c) David Himmelstrup 2005
License | BSD-like
Maintainer | lemmih@gmail.com
Stability | provisional
Portability | portable
Safe Haskell | None
Language | Haskell98

Graphics.UI.SDL.Types

Description

# Documentation

data SurfaceStruct Source #

type Surface = ForeignPtr SurfaceStruct Source #

data VideoInfoStruct Source #

type VideoInfo = ForeignPtr VideoInfoStruct Source #

data RWopsStruct Source #

type RWops = ForeignPtr RWopsStruct Source #

data PixelFormatStruct Source #

type PixelFormat = ForeignPtr PixelFormatStruct Source #

data JoystickStruct Source #

type Joystick = ForeignPtr JoystickStruct Source #

data Hat Source #

Constructors

HatCentered |
HatUp |
HatRight |
HatDown |
HatLeft |
HatRightUp |
HatRightDown |
HatLeftUp |
HatLeftDown |

Instances

Bounded Hat Source # |
Methods minBound :: Hat # maxBound :: Hat #
Eq Hat Source # |
Methods (==) :: Hat -> Hat -> Bool # (/=) :: Hat -> Hat -> Bool #
Ord Hat Source # |
Methods compare :: Hat -> Hat -> Ordering # (<) :: Hat -> Hat -> Bool # (<=) :: Hat -> Hat -> Bool # (>) :: Hat -> Hat -> Bool # (>=) :: Hat -> Hat -> Bool # max :: Hat -> Hat -> Hat # min :: Hat -> Hat -> Hat #
Show Hat Source # |
Methods showsPrec :: Int -> Hat -> ShowS # show :: Hat -> String # showList :: [Hat] -> ShowS #
Enum Hat Word8 Source # |
Methods succ :: Hat -> Hat Source # pred :: Hat -> Hat Source # toEnum :: Word8 -> Hat Source # fromEnum :: Hat -> Word8 Source # enumFromTo :: Hat -> Hat -> [Hat] Source #

data TimerIDStruct Source #

data SurfaceFlag Source #

Constructors

SWSurface |
HWSurface |
OpenGL |
ASyncBlit |
OpenGLBlit |
Resizable |
NoFrame |
HWAccel |
SrcColorKey |
RLEAccel |
SrcAlpha |
PreAlloc |
AnyFormat |
HWPalette |
DoubleBuf |
Fullscreen |

Instances

Bounded SurfaceFlag Source # |
Methods minBound :: SurfaceFlag # maxBound :: SurfaceFlag #
Eq SurfaceFlag Source # |
Methods (==) :: SurfaceFlag -> SurfaceFlag -> Bool # (/=) :: SurfaceFlag -> SurfaceFlag -> Bool #
Ord SurfaceFlag Source # |
Methods compare :: SurfaceFlag -> SurfaceFlag -> Ordering # (<) :: SurfaceFlag -> SurfaceFlag -> Bool # (<=) :: SurfaceFlag -> SurfaceFlag -> Bool # (>) :: SurfaceFlag -> SurfaceFlag -> Bool # (>=) :: SurfaceFlag -> SurfaceFlag -> Bool # max :: SurfaceFlag -> SurfaceFlag -> SurfaceFlag # min :: SurfaceFlag -> SurfaceFlag -> SurfaceFlag #
Read SurfaceFlag Source # |
Methods readsPrec :: Int -> ReadS SurfaceFlag # readList :: ReadS [SurfaceFlag] # readPrec :: ReadPrec SurfaceFlag # readListPrec :: ReadPrec [SurfaceFlag] #
Show SurfaceFlag Source # |
Methods showsPrec :: Int -> SurfaceFlag -> ShowS # show :: SurfaceFlag -> String # showList :: [SurfaceFlag] -> ShowS #
Enum SurfaceFlag Word32 Source # |
Methods succ :: SurfaceFlag -> SurfaceFlag Source # pred :: SurfaceFlag -> SurfaceFlag Source # toEnum :: Word32 -> SurfaceFlag Source # fromEnum :: SurfaceFlag -> Word32 Source # enumFromTo :: SurfaceFlag -> SurfaceFlag -> [SurfaceFlag] Source #

surfaceGetPixelFormat :: Surface -> PixelFormat Source #

surfaceGetWidth :: Surface -> Int Source #

surfaceGetHeight :: Surface -> Int Source #

surfaceGetFlags :: Surface -> IO [SurfaceFlag] Source #

surfaceGetPitch :: Surface -> Word16 Source #

surfaceGetPixels :: Surface -> IO Pixels Source #

pixelFormatGetAlpha :: PixelFormat -> IO Word8 Source #

pixelFormatGetColorKey :: PixelFormat -> IO Pixel Source #

pixelFormatGetBitsPerPixel :: PixelFormat -> IO Word8 Source #

pixelFormatGetBytesPerPixel :: PixelFormat -> IO Word8 Source #

videoInfoWidth :: VideoInfo -> Int Source #

videoInfoHeight :: VideoInfo -> Int Source #