sdl2-1.1.2: Low-level bindings to SDL2

Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.UI.SDL.Types

Contents

Synopsis

Type Aliases

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

type Cond = Ptr ()

type Cursor = Ptr ()

type EventFilter = FunPtr (Ptr () -> Ptr Event -> IO CInt)

type GLContext = Ptr ()

type Haptic = Ptr ()

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

type Joystick = Ptr ()

type Keycode = Int32

type Mutex = Ptr ()

type Renderer = Ptr ()

type Sem = Ptr ()

type SpinLock = CInt

type SysWMinfo = Ptr ()

type SysWMmsg = Ptr ()

type Texture = Ptr ()

type Thread = Ptr ()

type TimerID = CInt

type TLSID = CUInt

type TouchID = Int64

type Window = Ptr ()

Data Structures

data Atomic

Constructors

Atomic 

Fields

atomicValue :: CInt
 

data Color

Constructors

Color 

Fields

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

data Event

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

Constructors

HapticConstant 
HapticPeriodic 
HapticCondition 
HapticRamp 
HapticLeftRight 
HapticCustom 

data Point

Constructors

Point 

Fields

pointX :: CInt
 
pointY :: CInt
 

data Rect

Constructors

Rect 

Fields

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

Instances

data RWops

Constructors

RWops