sdl2-1.2.0: 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 ()) Source

type Cond = Ptr () Source

type Cursor = Ptr () Source

type GLContext = Ptr () Source

type Haptic = Ptr () Source

type HintCallback = FunPtr (Ptr () -> CString -> CString -> CString -> IO ()) 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 Atomic Source

Constructors

Atomic 

Fields

atomicValue :: CInt
 

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
 

Instances