sdl2-2.1.0: Both high- and low-level bindings to the SDL library (version 2.0.3).

Safe HaskellSafe
LanguageHaskell2010

SDL.Raw.Types

Contents

Synopsis

Type Aliases

Function Types

type AudioCallback = FunPtr (Ptr () -> Ptr Word8 -> CInt -> IO ()) Source

type HintCallback = FunPtr (Ptr () -> CString -> CString -> CString -> IO ()) Source

mkAudioCallback :: (Ptr () -> Ptr Word8 -> CInt -> IO ()) -> IO AudioCallback Source

The storage associated with the resulting FunPtr has to be released with freeHaskellFunPtr when it is no longer required.

mkEventFilter :: (Ptr () -> Ptr Event -> IO CInt) -> IO EventFilter Source

The storage associated with the resulting FunPtr has to be released with freeHaskellFunPtr when it is no longer required.

mkHintCallback :: (Ptr () -> CString -> CString -> CString -> IO ()) -> IO HintCallback Source

The storage associated with the resulting FunPtr has to be released with freeHaskellFunPtr when it is no longer required.

mkLogOutputFunction :: (Ptr () -> CInt -> LogPriority -> CString -> IO ()) -> IO LogOutputFunction Source

The storage associated with the resulting FunPtr has to be released with freeHaskellFunPtr when it is no longer required.

mkThreadFunction :: (Ptr () -> IO CInt) -> IO ThreadFunction Source

The storage associated with the resulting FunPtr has to be released with freeHaskellFunPtr when it is no longer required.

mkTimerCallback :: (Word32 -> Ptr () -> IO Word32) -> IO TimerCallback Source

The storage associated with the resulting FunPtr has to be released with freeHaskellFunPtr when it is no longer required.

Common Types

type Cond = Ptr () Source

type Cursor = Ptr () Source

type GLContext = Ptr () Source

type Haptic = Ptr () Source

type Joystick = Ptr () Source

type Mutex = Ptr () Source

type Renderer = Ptr () Source

type Sem = Ptr () Source

type SysWMinfo = Ptr () Source

type SysWMmsg = Ptr () Source

type Texture = Ptr () Source

type Thread = Ptr () Source

type Window = Ptr () Source

Data Structures

data Color Source

Constructors

Color 

Fields

colorR :: !Word8
 
colorG :: !Word8
 
colorB :: !Word8
 
colorA :: !Word8
 

data Event Source

Constructors

WindowEvent 
KeyboardEvent 
TextEditingEvent 
TextInputEvent 
MouseMotionEvent 
MouseButtonEvent 
MouseWheelEvent 
JoyAxisEvent 
JoyBallEvent 
JoyHatEvent 
JoyButtonEvent 
JoyDeviceEvent 
ControllerAxisEvent 
ControllerButtonEvent 
ControllerDeviceEvent 
QuitEvent 
UserEvent 
SysWMEvent 
TouchFingerEvent 
MultiGestureEvent 
DollarGestureEvent 
DropEvent 
ClipboardUpdateEvent 
UnknownEvent 

data HapticEffect Source

Constructors

HapticConstant 
HapticPeriodic 
HapticCondition 
HapticRamp 
HapticLeftRight 
HapticCustom 

data Point Source

Constructors

Point 

Fields

pointX :: !CInt
 
pointY :: !CInt
 

data Rect Source

Constructors

Rect 

Fields

rectX :: !CInt
 
rectY :: !CInt
 
rectW :: !CInt
 
rectH :: !CInt
 

data RWops Source

Constructors

RWops 

Fields

rwopsSize :: !(FunPtr (Ptr RWops -> IO Int64))
 
rwopsSeek :: !(FunPtr (Ptr RWops -> Int64 -> CInt -> IO Int64))
 
rwopsRead :: !(FunPtr (Ptr RWops -> Ptr () -> CSize -> CSize -> IO CSize))
 
rwopsWrite :: !(FunPtr (Ptr RWops -> Ptr () -> CSize -> CSize -> IO CSize))
 
rwopsClose :: !(FunPtr (Ptr RWops -> IO CInt))
 
rwopsType :: !Word32