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

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

FromNumber ControllerButton Int32 Source # 
Instance details

Defined in SDL.Input.GameController

FromNumber ControllerButtonState Word32 Source # 
Instance details

Defined in SDL.Input.GameController

FromNumber ControllerDeviceConnection Word32 Source # 
Instance details

Defined in SDL.Input.GameController

FromNumber JoyButtonState Word8 Source # 
Instance details

Defined in SDL.Input.Joystick

FromNumber JoyDeviceConnection Word32 Source # 
Instance details

Defined in SDL.Input.Joystick

FromNumber JoyHatPosition Word8 Source # 
Instance details

Defined in SDL.Input.Joystick

FromNumber KeyModifier Word32 Source # 
Instance details

Defined in SDL.Input.Keyboard

FromNumber Keycode Int32 Source # 
Instance details

Defined in SDL.Input.Keyboard.Codes

FromNumber Scancode Word32 Source # 
Instance details

Defined in SDL.Input.Keyboard.Codes

FromNumber MouseButton Word8 Source # 
Instance details

Defined in SDL.Input.Mouse

FromNumber MouseDevice Word32 Source # 
Instance details

Defined in SDL.Input.Mouse

FromNumber MouseScrollDirection Word32 Source # 
Instance details

Defined in SDL.Input.Mouse

FromNumber WindowMode Word32 Source # 
Instance details

Defined in SDL.Video

FromNumber SwapInterval CInt Source # 
Instance details

Defined in SDL.Video.OpenGL

FromNumber BlendMode Word32 Source # 
Instance details

Defined in SDL.Video.Renderer

FromNumber PixelFormat Word32 Source # 
Instance details

Defined in SDL.Video.Renderer

FromNumber RendererConfig Word32 Source # 
Instance details

Defined in SDL.Video.Renderer

FromNumber TextureAccess CInt Source # 
Instance details

Defined in SDL.Video.Renderer

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

ToNumber ControllerAxis Int32 Source # 
Instance details

Defined in SDL.Input.GameController

ToNumber ControllerButton Int32 Source # 
Instance details

Defined in SDL.Input.GameController

ToNumber KeyModifier Word32 Source # 
Instance details

Defined in SDL.Input.Keyboard

ToNumber Keycode Int32 Source # 
Instance details

Defined in SDL.Input.Keyboard.Codes

ToNumber Scancode Word32 Source # 
Instance details

Defined in SDL.Input.Keyboard.Codes

ToNumber MouseButton Word8 Source # 
Instance details

Defined in SDL.Input.Mouse

ToNumber SystemCursor Word32 Source # 
Instance details

Defined in SDL.Input.Mouse

ToNumber MessageKind Word32 Source # 
Instance details

Defined in SDL.Video

ToNumber WindowMode Word32 Source # 
Instance details

Defined in SDL.Video

ToNumber SwapInterval CInt Source # 
Instance details

Defined in SDL.Video.OpenGL

ToNumber BlendMode Word32 Source # 
Instance details

Defined in SDL.Video.Renderer

ToNumber PixelFormat Word32 Source # 
Instance details

Defined in SDL.Video.Renderer

ToNumber RendererConfig Word32 Source # 
Instance details

Defined in SDL.Video.Renderer

ToNumber TextureAccess CInt Source # 
Instance details

Defined in SDL.Video.Renderer