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

Safe Haskell | Safe-Inferred
Language | Haskell2010

SDL.Internal.Numbered

# Documentation

class Integral b => FromNumber a b | a -> b where Source #

Methods

fromNumber :: b -> a Source #

#### Instances

Instances details

FromNumber ControllerAxis Int32 Source # |
Instance details Defined in SDL.Input.GameController Methods fromNumber :: Int32 -> ControllerAxis Source #
FromNumber ControllerButton Int32 Source # |
Instance details Defined in SDL.Input.GameController Methods fromNumber :: Int32 -> ControllerButton Source #
FromNumber ControllerButtonState Word32 Source # |
Instance details Defined in SDL.Input.GameController Methods fromNumber :: Word32 -> ControllerButtonState Source #
FromNumber ControllerDeviceConnection Word32 Source # |
Instance details Defined in SDL.Input.GameController Methods fromNumber :: Word32 -> ControllerDeviceConnection Source #
FromNumber JoyButtonState Word8 Source # |
Instance details Defined in SDL.Input.Joystick Methods fromNumber :: Word8 -> JoyButtonState Source #
FromNumber JoyDeviceConnection Word32 Source # |
Instance details Defined in SDL.Input.Joystick Methods fromNumber :: Word32 -> JoyDeviceConnection Source #
FromNumber JoyHatPosition Word8 Source # |
Instance details Defined in SDL.Input.Joystick Methods fromNumber :: Word8 -> JoyHatPosition Source #
FromNumber KeyModifier Word32 Source # |
Instance details Defined in SDL.Input.Keyboard Methods fromNumber :: Word32 -> KeyModifier Source #
FromNumber Keycode Int32 Source # |
Instance details Defined in SDL.Input.Keyboard.Codes Methods fromNumber :: Int32 -> Keycode Source #
FromNumber Scancode Word32 Source # |
Instance details Defined in SDL.Input.Keyboard.Codes Methods fromNumber :: Word32 -> Scancode Source #
FromNumber MouseButton Word8 Source # |
Instance details Defined in SDL.Input.Mouse Methods fromNumber :: Word8 -> MouseButton Source #
FromNumber MouseDevice Word32 Source # |
Instance details Defined in SDL.Input.Mouse Methods fromNumber :: Word32 -> MouseDevice Source #
FromNumber MouseScrollDirection Word32 Source # |
Instance details Defined in SDL.Input.Mouse Methods fromNumber :: Word32 -> MouseScrollDirection Source #
FromNumber WindowMode Word32 Source # |
Instance details Defined in SDL.Video Methods fromNumber :: Word32 -> WindowMode Source #
FromNumber SwapInterval CInt Source # |
Instance details Defined in SDL.Video.OpenGL Methods fromNumber :: CInt -> SwapInterval Source #
FromNumber BlendMode Word32 Source # |
Instance details Defined in SDL.Video.Renderer Methods fromNumber :: Word32 -> BlendMode Source #
FromNumber PixelFormat Word32 Source # |
Instance details Defined in SDL.Video.Renderer Methods fromNumber :: Word32 -> PixelFormat Source #
FromNumber RendererConfig Word32 Source # |
Instance details Defined in SDL.Video.Renderer Methods fromNumber :: Word32 -> RendererConfig Source #
FromNumber TextureAccess CInt Source # |
Instance details Defined in SDL.Video.Renderer Methods fromNumber :: CInt -> TextureAccess Source #

class Integral b => ToNumber a b | a -> b where Source #

Methods

toNumber :: a -> b Source #

#### Instances

Instances details

ToNumber InitFlag Word32 Source # |
Instance details Defined in SDL.Init Methods toNumber :: InitFlag -> Word32 Source #
ToNumber ControllerAxis Int32 Source # |
Instance details Defined in SDL.Input.GameController Methods toNumber :: ControllerAxis -> Int32 Source #
ToNumber ControllerButton Int32 Source # |
Instance details Defined in SDL.Input.GameController Methods toNumber :: ControllerButton -> Int32 Source #
ToNumber KeyModifier Word32 Source # |
Instance details Defined in SDL.Input.Keyboard Methods toNumber :: KeyModifier -> Word32 Source #
ToNumber Keycode Int32 Source # |
Instance details Defined in SDL.Input.Keyboard.Codes Methods toNumber :: Keycode -> Int32 Source #
ToNumber Scancode Word32 Source # |
Instance details Defined in SDL.Input.Keyboard.Codes Methods toNumber :: Scancode -> Word32 Source #
ToNumber MouseButton Word8 Source # |
Instance details Defined in SDL.Input.Mouse Methods toNumber :: MouseButton -> Word8 Source #
ToNumber SystemCursor Word32 Source # |
Instance details Defined in SDL.Input.Mouse Methods toNumber :: SystemCursor -> Word32 Source #
ToNumber MessageKind Word32 Source # |
Instance details Defined in SDL.Video Methods toNumber :: MessageKind -> Word32 Source #
ToNumber WindowMode Word32 Source # |
Instance details Defined in SDL.Video Methods toNumber :: WindowMode -> Word32 Source #
ToNumber SwapInterval CInt Source # |
Instance details Defined in SDL.Video.OpenGL Methods toNumber :: SwapInterval -> CInt Source #
ToNumber BlendMode Word32 Source # |
Instance details Defined in SDL.Video.Renderer Methods toNumber :: BlendMode -> Word32 Source #
ToNumber PixelFormat Word32 Source # |
Instance details Defined in SDL.Video.Renderer Methods toNumber :: PixelFormat -> Word32 Source #
ToNumber RendererConfig Word32 Source # |
Instance details Defined in SDL.Video.Renderer Methods toNumber :: RendererConfig -> Word32 Source #
ToNumber TextureAccess CInt Source # |
Instance details Defined in SDL.Video.Renderer Methods toNumber :: TextureAccess -> CInt Source #