SDL-0.6.7.0: Binding to libSDL

Copyright | (c) David Himmelstrup 2005
License | BSD-like
Maintainer | lemmih@gmail.com
Stability | provisional
Portability | portable
Safe Haskell | Safe-Inferred
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

Instances details

Bounded Hat Source # |
Instance details Defined in Graphics.UI.SDL.Types Methods minBound :: Hat Source # maxBound :: Hat Source #
Show Hat Source # |
Instance details Defined in Graphics.UI.SDL.Types Methods showsPrec :: Int -> Hat -> ShowS Source # show :: Hat -> String Source # showList :: [Hat] -> ShowS Source #
Eq Hat Source # |
Instance details Defined in Graphics.UI.SDL.Types Methods (==) :: Hat -> Hat -> Bool Source # (/=) :: Hat -> Hat -> Bool Source #
Ord Hat Source # |
Instance details Defined in Graphics.UI.SDL.Types Methods compare :: Hat -> Hat -> Ordering Source # (<) :: Hat -> Hat -> Bool Source # (<=) :: Hat -> Hat -> Bool Source # (>) :: Hat -> Hat -> Bool Source # (>=) :: Hat -> Hat -> Bool Source # max :: Hat -> Hat -> Hat Source # min :: Hat -> Hat -> Hat Source #
Enum Hat Word8 Source # |
Instance details Defined in Graphics.UI.SDL.Types 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

Instances details

Bounded SurfaceFlag Source # |
Instance details Defined in Graphics.UI.SDL.Types Methods minBound :: SurfaceFlag Source # maxBound :: SurfaceFlag Source #
Read SurfaceFlag Source # |
Instance details Defined in Graphics.UI.SDL.Types Methods readsPrec :: Int -> ReadS SurfaceFlag Source # readList :: ReadS [SurfaceFlag] Source # readPrec :: ReadPrec SurfaceFlag Source # readListPrec :: ReadPrec [SurfaceFlag] Source #
Show SurfaceFlag Source # |
Instance details Defined in Graphics.UI.SDL.Types Methods showsPrec :: Int -> SurfaceFlag -> ShowS Source # show :: SurfaceFlag -> String Source # showList :: [SurfaceFlag] -> ShowS Source #
Eq SurfaceFlag Source # |
Instance details Defined in Graphics.UI.SDL.Types Methods (==) :: SurfaceFlag -> SurfaceFlag -> Bool Source # (/=) :: SurfaceFlag -> SurfaceFlag -> Bool Source #
Ord SurfaceFlag Source # |

Instance details

Defined in Graphics.UI.SDL.Types

Methods

compare :: SurfaceFlag -> SurfaceFlag -> Ordering Source #

(<) :: SurfaceFlag -> SurfaceFlag -> Bool Source #

(<=) :: SurfaceFlag -> SurfaceFlag -> Bool Source #

(>) :: SurfaceFlag -> SurfaceFlag -> Bool Source #

(>=) :: SurfaceFlag -> SurfaceFlag -> Bool Source #

max :: SurfaceFlag -> SurfaceFlag -> SurfaceFlag Source #

min :: SurfaceFlag -> SurfaceFlag -> SurfaceFlag Source #

Enum SurfaceFlag Word32 Source # |
Instance details Defined in Graphics.UI.SDL.Types 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 #