sdl2-2.5.5.0: Both high- and low-level bindings to the SDL library (version 2.0.6+).
Safe HaskellSafe-Inferred
LanguageHaskell2010

SDL.Raw.Types

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

Instances details
Storable Atomic Source # 
Instance details

Defined in SDL.Raw.Types

Show Atomic Source # 
Instance details

Defined in SDL.Raw.Types

Eq Atomic Source # 
Instance details

Defined in SDL.Raw.Types

data Color Source #

Constructors

Color 

Fields

Instances

Instances details
Storable Color Source # 
Instance details

Defined in SDL.Raw.Types

Show Color Source # 
Instance details

Defined in SDL.Raw.Types

Eq Color Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

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

Instances details
Storable Event Source # 
Instance details

Defined in SDL.Raw.Types

Show Event Source # 
Instance details

Defined in SDL.Raw.Types

Eq Event Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

data Finger Source #

Constructors

Finger 

Instances

Instances details
Storable Finger Source # 
Instance details

Defined in SDL.Raw.Types

Show Finger Source # 
Instance details

Defined in SDL.Raw.Types

Eq 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

Instances details
Storable Keysym Source # 
Instance details

Defined in SDL.Raw.Types

Show Keysym Source # 
Instance details

Defined in SDL.Raw.Types

Eq Keysym Source # 
Instance details

Defined in SDL.Raw.Types

data MessageBoxColorScheme Source #

data Palette Source #

Constructors

Palette 

Instances

Instances details
Storable Palette Source # 
Instance details

Defined in SDL.Raw.Types

Show Palette Source # 
Instance details

Defined in SDL.Raw.Types

Eq Palette Source # 
Instance details

Defined in SDL.Raw.Types

data Point Source #

Constructors

Point 

Fields

Instances

Instances details
Storable Point Source # 
Instance details

Defined in SDL.Raw.Types

Show Point Source # 
Instance details

Defined in SDL.Raw.Types

Eq Point Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

data Rect Source #

Constructors

Rect 

Fields

Instances

Instances details
Storable Rect Source # 
Instance details

Defined in SDL.Raw.Types

Show Rect Source # 
Instance details

Defined in SDL.Raw.Types

Eq Rect Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

data FPoint Source #

Constructors

FPoint 

Fields

Instances

Instances details
Storable FPoint Source # 
Instance details

Defined in SDL.Raw.Types

Show FPoint Source # 
Instance details

Defined in SDL.Raw.Types

Eq FPoint Source # 
Instance details

Defined in SDL.Raw.Types

data FRect Source #

Constructors

FRect 

Fields

Instances

Instances details
Storable FRect Source # 
Instance details

Defined in SDL.Raw.Types

Show FRect Source # 
Instance details

Defined in SDL.Raw.Types

Eq FRect Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

data Vertex Source #

Instances

Instances details
Storable Vertex Source # 
Instance details

Defined in SDL.Raw.Types

Show Vertex Source # 
Instance details

Defined in SDL.Raw.Types

Eq Vertex Source # 
Instance details

Defined in SDL.Raw.Types

data RWops Source #

Constructors

RWops 

Fields

Instances

Instances details
Storable RWops Source # 
Instance details

Defined in SDL.Raw.Types

Show RWops Source # 
Instance details

Defined in SDL.Raw.Types

Eq RWops Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

data Surface Source #

Instances

Instances details
Storable Surface Source # 
Instance details

Defined in SDL.Raw.Types

Show Surface Source # 
Instance details

Defined in SDL.Raw.Types

Eq Surface Source # 
Instance details

Defined in SDL.Raw.Types

data Version Source #

Constructors

Version 

Instances

Instances details
Storable Version Source # 
Instance details

Defined in SDL.Raw.Types

Show Version Source # 
Instance details

Defined in SDL.Raw.Types

Eq Version Source # 
Instance details

Defined in SDL.Raw.Types