sdl2-2.4.1.0: Both high- and low-level bindings to the SDL library (version 2.0.4+).

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 Atomic Source #

Constructors

Atomic 

Fields

Instances
Eq Atomic Source # 
Instance details

Defined in SDL.Raw.Types

Show Atomic Source # 
Instance details

Defined in SDL.Raw.Types

Storable Atomic Source # 
Instance details

Defined in SDL.Raw.Types

data Color Source #

Constructors

Color 

Fields

Instances
Eq Color Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

(/=) :: Color -> Color -> Bool Source #

Show Color Source # 
Instance details

Defined in SDL.Raw.Types

Storable Color Source # 
Instance details

Defined in SDL.Raw.Types

data Event Source #

Constructors

WindowEvent 
KeyboardEvent 
TextEditingEvent 
TextInputEvent 
KeymapChangedEvent 
MouseMotionEvent 
MouseButtonEvent 
MouseWheelEvent 
JoyAxisEvent 
JoyBallEvent 
JoyHatEvent 
JoyButtonEvent 
JoyDeviceEvent 
ControllerAxisEvent 
ControllerButtonEvent 
ControllerDeviceEvent 
AudioDeviceEvent 
QuitEvent 
UserEvent 
SysWMEvent 
TouchFingerEvent 
MultiGestureEvent 
DollarGestureEvent 
DropEvent 
ClipboardUpdateEvent 
UnknownEvent 
Instances
Eq Event Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

(/=) :: Event -> Event -> Bool Source #

Show Event Source # 
Instance details

Defined in SDL.Raw.Types

Storable Event Source # 
Instance details

Defined in SDL.Raw.Types

data Finger Source #

Constructors

Finger 
Instances
Eq Finger Source # 
Instance details

Defined in SDL.Raw.Types

Show Finger Source # 
Instance details

Defined in SDL.Raw.Types

Storable Finger Source # 
Instance details

Defined in SDL.Raw.Types

data GameControllerButtonBind Source #

data HapticEffect Source #

Constructors

HapticConstant 
HapticPeriodic 
HapticCondition 
HapticRamp 
HapticLeftRight 
HapticCustom 

data Keysym Source #

Instances
Eq Keysym Source # 
Instance details

Defined in SDL.Raw.Types

Show Keysym Source # 
Instance details

Defined in SDL.Raw.Types

Storable Keysym Source # 
Instance details

Defined in SDL.Raw.Types

data Palette Source #

Constructors

Palette 

data Point Source #

Constructors

Point 

Fields

Instances
Eq Point Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

(/=) :: Point -> Point -> Bool Source #

Show Point Source # 
Instance details

Defined in SDL.Raw.Types

Storable Point Source # 
Instance details

Defined in SDL.Raw.Types

data Rect Source #

Constructors

Rect 

Fields

Instances
Eq Rect Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

(/=) :: Rect -> Rect -> Bool Source #

Show Rect Source # 
Instance details

Defined in SDL.Raw.Types

Storable Rect Source # 
Instance details

Defined in SDL.Raw.Types

data RWops Source #

Constructors

RWops 

Fields

Instances
Eq RWops Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

(/=) :: RWops -> RWops -> Bool Source #

Show RWops Source # 
Instance details

Defined in SDL.Raw.Types

Storable RWops Source # 
Instance details

Defined in SDL.Raw.Types