sdl2-2.5.3.0: Both high- and low-level bindings to the SDL library (version 2.0.6+).
Safe HaskellSafe
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
Eq Atomic Source # 
Instance details

Defined in SDL.Raw.Types

Methods

(==) :: Atomic -> Atomic -> Bool #

(/=) :: Atomic -> Atomic -> Bool #

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

Instances details
Eq Color Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

Show Color Source # 
Instance details

Defined in SDL.Raw.Types

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

Storable Color Source # 
Instance details

Defined in SDL.Raw.Types

Methods

sizeOf :: Color -> Int #

alignment :: Color -> Int #

peekElemOff :: Ptr Color -> Int -> IO Color #

pokeElemOff :: Ptr Color -> Int -> Color -> IO () #

peekByteOff :: Ptr b -> Int -> IO Color #

pokeByteOff :: Ptr b -> Int -> Color -> IO () #

peek :: Ptr Color -> IO Color #

poke :: Ptr Color -> Color -> IO () #

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
Eq Event Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

Show Event Source # 
Instance details

Defined in SDL.Raw.Types

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

Storable Event Source # 
Instance details

Defined in SDL.Raw.Types

Methods

sizeOf :: Event -> Int #

alignment :: Event -> Int #

peekElemOff :: Ptr Event -> Int -> IO Event #

pokeElemOff :: Ptr Event -> Int -> Event -> IO () #

peekByteOff :: Ptr b -> Int -> IO Event #

pokeByteOff :: Ptr b -> Int -> Event -> IO () #

peek :: Ptr Event -> IO Event #

poke :: Ptr Event -> Event -> IO () #

data Finger Source #

Constructors

Finger 

Instances

Instances details
Eq Finger Source # 
Instance details

Defined in SDL.Raw.Types

Methods

(==) :: Finger -> Finger -> Bool #

(/=) :: Finger -> Finger -> Bool #

Show Finger Source # 
Instance details

Defined in SDL.Raw.Types

Storable Finger Source # 
Instance details

Defined in SDL.Raw.Types

data HapticEffect Source #

Constructors

HapticConstant 
HapticPeriodic 
HapticCondition 
HapticRamp 
HapticLeftRight 
HapticCustom 

data Keysym Source #

Instances

Instances details
Eq Keysym Source # 
Instance details

Defined in SDL.Raw.Types

Methods

(==) :: Keysym -> Keysym -> Bool #

(/=) :: Keysym -> Keysym -> Bool #

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 

Instances

Instances details
Eq Palette Source # 
Instance details

Defined in SDL.Raw.Types

Methods

(==) :: Palette -> Palette -> Bool #

(/=) :: Palette -> Palette -> Bool #

Show Palette Source # 
Instance details

Defined in SDL.Raw.Types

Storable Palette Source # 
Instance details

Defined in SDL.Raw.Types

data Point Source #

Constructors

Point 

Fields

Instances

Instances details
Eq Point Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

Show Point Source # 
Instance details

Defined in SDL.Raw.Types

Methods

showsPrec :: Int -> Point -> ShowS #

show :: Point -> String #

showList :: [Point] -> ShowS #

Storable Point Source # 
Instance details

Defined in SDL.Raw.Types

Methods

sizeOf :: Point -> Int #

alignment :: Point -> Int #

peekElemOff :: Ptr Point -> Int -> IO Point #

pokeElemOff :: Ptr Point -> Int -> Point -> IO () #

peekByteOff :: Ptr b -> Int -> IO Point #

pokeByteOff :: Ptr b -> Int -> Point -> IO () #

peek :: Ptr Point -> IO Point #

poke :: Ptr Point -> Point -> IO () #

data Rect Source #

Constructors

Rect 

Fields

Instances

Instances details
Eq Rect Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

Show Rect Source # 
Instance details

Defined in SDL.Raw.Types

Methods

showsPrec :: Int -> Rect -> ShowS #

show :: Rect -> String #

showList :: [Rect] -> ShowS #

Storable Rect Source # 
Instance details

Defined in SDL.Raw.Types

Methods

sizeOf :: Rect -> Int #

alignment :: Rect -> Int #

peekElemOff :: Ptr Rect -> Int -> IO Rect #

pokeElemOff :: Ptr Rect -> Int -> Rect -> IO () #

peekByteOff :: Ptr b -> Int -> IO Rect #

pokeByteOff :: Ptr b -> Int -> Rect -> IO () #

peek :: Ptr Rect -> IO Rect #

poke :: Ptr Rect -> Rect -> IO () #

data RWops Source #

Constructors

RWops 

Fields

Instances

Instances details
Eq RWops Source # 
Instance details

Defined in SDL.Raw.Types

Methods

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

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

Show RWops Source # 
Instance details

Defined in SDL.Raw.Types

Methods

showsPrec :: Int -> RWops -> ShowS #

show :: RWops -> String #

showList :: [RWops] -> ShowS #

Storable RWops Source # 
Instance details

Defined in SDL.Raw.Types

Methods

sizeOf :: RWops -> Int #

alignment :: RWops -> Int #

peekElemOff :: Ptr RWops -> Int -> IO RWops #

pokeElemOff :: Ptr RWops -> Int -> RWops -> IO () #

peekByteOff :: Ptr b -> Int -> IO RWops #

pokeByteOff :: Ptr b -> Int -> RWops -> IO () #

peek :: Ptr RWops -> IO RWops #

poke :: Ptr RWops -> RWops -> IO () #

data Surface Source #

Instances

Instances details
Eq Surface Source # 
Instance details

Defined in SDL.Raw.Types

Methods

(==) :: Surface -> Surface -> Bool #

(/=) :: Surface -> Surface -> Bool #

Show Surface Source # 
Instance details

Defined in SDL.Raw.Types

Storable Surface Source # 
Instance details

Defined in SDL.Raw.Types

data Version Source #

Constructors

Version 

Instances

Instances details
Eq Version Source # 
Instance details

Defined in SDL.Raw.Types

Methods

(==) :: Version -> Version -> Bool #

(/=) :: Version -> Version -> Bool #

Show Version Source # 
Instance details

Defined in SDL.Raw.Types

Storable Version Source # 
Instance details

Defined in SDL.Raw.Types