Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Bindings for types used in all raylib modules
Synopsis
- data ConfigFlag
- data TraceLogLevel
- data KeyboardKey
- = KeyNull
- | KeyApostrophe
- | KeyComma
- | KeyMinus
- | KeyPeriod
- | KeySlash
- | KeyZero
- | KeyOne
- | KeyTwo
- | KeyThree
- | KeyFour
- | KeyFive
- | KeySix
- | KeySeven
- | KeyEight
- | KeyNine
- | KeySemicolon
- | KeyEqual
- | KeyA
- | KeyB
- | KeyC
- | KeyD
- | KeyE
- | KeyF
- | KeyG
- | KeyH
- | KeyI
- | KeyJ
- | KeyK
- | KeyL
- | KeyM
- | KeyN
- | KeyO
- | KeyP
- | KeyQ
- | KeyR
- | KeyS
- | KeyT
- | KeyU
- | KeyV
- | KeyW
- | KeyX
- | KeyY
- | KeyZ
- | KeyLeftBracket
- | KeyBackslash
- | KeyRightBracket
- | KeyGrave
- | KeySpace
- | KeyEscape
- | KeyEnter
- | KeyTab
- | KeyBackspace
- | KeyInsert
- | KeyDelete
- | KeyRight
- | KeyLeft
- | KeyDown
- | KeyUp
- | KeyPageUp
- | KeyPageDown
- | KeyHome
- | KeyEnd
- | KeyCapsLock
- | KeyScrollLock
- | KeyNumLock
- | KeyPrintScreen
- | KeyPause
- | KeyF1
- | KeyF2
- | KeyF3
- | KeyF4
- | KeyF5
- | KeyF6
- | KeyF7
- | KeyF8
- | KeyF9
- | KeyF10
- | KeyF11
- | KeyF12
- | KeyLeftShift
- | KeyLeftControl
- | KeyLeftAlt
- | KeyLeftSuper
- | KeyRightShift
- | KeyRightControl
- | KeyRightAlt
- | KeyRightSuper
- | KeyKbMenu
- | KeyKp0
- | KeyKp1
- | KeyKp2
- | KeyKp3
- | KeyKp4
- | KeyKp5
- | KeyKp6
- | KeyKp7
- | KeyKp8
- | KeyKp9
- | KeyKpDecimal
- | KeyKpDivide
- | KeyKpMultiply
- | KeyKpSubtract
- | KeyKpAdd
- | KeyKpEnter
- | KeyKpEqual
- | KeyBack
- | KeyMenu
- | KeyVolumeUp
- | KeyVolumeDown
- data MouseButton
- data MouseCursor
- data GamepadButton
- = GamepadButtonUnknown
- | GamepadButtonUnknownLeftFaceUp
- | GamepadButtonLeftFaceRight
- | GamepadButtonLeftFaceDown
- | GamepadButtonLeftFaceLeft
- | GamepadButtonRightFaceUp
- | GamepadButtonRightFaceRight
- | GamepadButtonRightFaceDown
- | GamepadButtonRightFaceLeft
- | GamepadButtonLeftTrigger1
- | GamepadButtonLeftTrigger2
- | GamepadButtonRightTrigger1
- | GamepadButtonRightTrigger2
- | GamepadButtonMiddleLeft
- | GamepadButtonMiddle
- | GamepadButtonMiddleRight
- | GamepadButtonLeftThumb
- | GamepadButtonRightThumb
- data GamepadAxis
- data BlendMode
- data Gesture
- data Vector2 = Vector2 {}
- data Vector3 = Vector3 {}
- data Vector4 = Vector4 {}
- vectorToColor :: Vector4 -> Color
- data Matrix = Matrix {}
- data Color = Color {}
- data Rectangle = Rectangle {}
- data VrDeviceInfo = VrDeviceInfo {
- vrDeviceInfo'hResolution :: Int
- vrDeviceInfo'vResolution :: Int
- vrDeviceInfo'hScreenSize :: Float
- vrDeviceInfo'vScreenSize :: Float
- vrDeviceInfo'eyeToScreenDistance :: Float
- vrDeviceInfo'lensSeparationDistance :: Float
- vrDeviceInfo'interpupillaryDistance :: Float
- vrDeviceInfo'lensDistortionValues :: [Float]
- vrDeviceInfo'chromaAbCorrection :: [Float]
- data VrStereoConfig = VrStereoConfig {
- vrStereoConfig'projection :: [Matrix]
- vrStereoConfig'viewOffset :: [Matrix]
- vrStereoConfig'leftLensCenter :: [Float]
- vrStereoConfig'rightLensCenter :: [Float]
- vrStereoConfig'leftScreenCenter :: [Float]
- vrStereoConfig'rightScreenCenter :: [Float]
- vrStereoConfig'scale :: [Float]
- vrStereoConfig'scaleIn :: [Float]
- data FilePathList = FilePathList {}
- data AutomationEvent = AutomationEvent {}
- data AutomationEventList = AutomationEventList {}
- type Quaternion = Vector4
- type AutomationEventListRef = Ptr AutomationEventList
- p'vector2'x :: Ptr Vector2 -> Ptr CFloat
- p'vector2'y :: Ptr Vector2 -> Ptr CFloat
- p'vector3'x :: Ptr Vector3 -> Ptr CFloat
- p'vector3'y :: Ptr Vector3 -> Ptr CFloat
- p'vector3'z :: Ptr Vector3 -> Ptr CFloat
- p'vector4'x :: Ptr Vector4 -> Ptr CFloat
- p'vector4'y :: Ptr Vector4 -> Ptr CFloat
- p'vector4'z :: Ptr Vector4 -> Ptr CFloat
- p'vector4'w :: Ptr Vector4 -> Ptr CFloat
- p'matrix'm0 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm4 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm8 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm12 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm1 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm5 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm9 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm13 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm2 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm6 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm10 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm14 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm3 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm7 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm11 :: Ptr Matrix -> Ptr CFloat
- p'matrix'm15 :: Ptr Matrix -> Ptr CFloat
- p'color'r :: Ptr Color -> Ptr CUChar
- p'color'g :: Ptr Color -> Ptr CUChar
- p'color'b :: Ptr Color -> Ptr CUChar
- p'color'a :: Ptr Color -> Ptr CUChar
- p'rectangle'x :: Ptr Rectangle -> Ptr CFloat
- p'rectangle'y :: Ptr Rectangle -> Ptr CFloat
- p'rectangle'width :: Ptr Rectangle -> Ptr CFloat
- p'rectangle'height :: Ptr Rectangle -> Ptr CFloat
- p'vrDeviceInfo'hResolution :: Ptr VrDeviceInfo -> Ptr CInt
- p'vrDeviceInfo'vResolution :: Ptr VrDeviceInfo -> Ptr CInt
- p'vrDeviceInfo'hScreenSize :: Ptr VrDeviceInfo -> Ptr CFloat
- p'vrDeviceInfo'vScreenSize :: Ptr VrDeviceInfo -> Ptr CFloat
- p'vrDeviceInfo'eyeToScreenDistance :: Ptr VrDeviceInfo -> Ptr CFloat
- p'vrDeviceInfo'lensSeparationDistance :: Ptr VrDeviceInfo -> Ptr CFloat
- p'vrDeviceInfo'interpupillaryDistance :: Ptr VrDeviceInfo -> Ptr CFloat
- p'vrDeviceInfo'lensDistortionValues :: Ptr VrDeviceInfo -> Ptr CFloat
- p'vrDeviceInfo'chromaAbCorrection :: Ptr VrDeviceInfo -> Ptr CFloat
- p'vrStereoConfig'projection :: Ptr VrStereoConfig -> Ptr Matrix
- p'vrStereoConfig'viewOffset :: Ptr VrStereoConfig -> Ptr Matrix
- p'vrStereoConfig'leftLensCenter :: Ptr VrStereoConfig -> Ptr CFloat
- p'vrStereoConfig'rightLensCenter :: Ptr VrStereoConfig -> Ptr CFloat
- p'vrStereoConfig'leftScreenCenter :: Ptr VrStereoConfig -> Ptr CFloat
- p'vrStereoConfig'rightScreenCenter :: Ptr VrStereoConfig -> Ptr CFloat
- p'vrStereoConfig'scale :: Ptr VrStereoConfig -> Ptr CFloat
- p'vrStereoConfig'scaleIn :: Ptr VrStereoConfig -> Ptr CFloat
- p'filePathList'capacity :: Ptr FilePathList -> Ptr CUInt
- p'filePathList'count :: Ptr FilePathList -> Ptr CUInt
- p'filePathList'paths :: Ptr FilePathList -> Ptr (Ptr CString)
- p'automationEvent'frame :: Ptr AutomationEvent -> Ptr CUInt
- p'automationEvent'type :: Ptr AutomationEvent -> Ptr CUInt
- p'automationEvent'params :: Ptr AutomationEvent -> Ptr CInt
- p'automationEventList'capacity :: Ptr AutomationEventList -> Ptr CUInt
- p'automationEventList'count :: Ptr AutomationEventList -> Ptr CUInt
- p'automationEventList'events :: Ptr AutomationEventList -> Ptr (Ptr AutomationEvent)
- type LoadFileDataCallback = String -> IO [Integer]
- type SaveFileDataCallback a = String -> Ptr a -> Integer -> IO Bool
- type LoadFileTextCallback = String -> IO String
- type SaveFileTextCallback = String -> String -> IO Bool
- type C'LoadFileDataCallback = FunPtr (CString -> Ptr CUInt -> IO (Ptr CUChar))
- type C'SaveFileDataCallback = FunPtr (CString -> Ptr () -> CUInt -> IO CInt)
- type C'LoadFileTextCallback = FunPtr (CString -> IO CString)
- type C'SaveFileTextCallback = FunPtr (CString -> CString -> IO CInt)
Enumerations
data ConfigFlag Source #
Instances
Enum ConfigFlag Source # | |
Defined in Raylib.Types.Core succ :: ConfigFlag -> ConfigFlag # pred :: ConfigFlag -> ConfigFlag # toEnum :: Int -> ConfigFlag # fromEnum :: ConfigFlag -> Int # enumFrom :: ConfigFlag -> [ConfigFlag] # enumFromThen :: ConfigFlag -> ConfigFlag -> [ConfigFlag] # enumFromTo :: ConfigFlag -> ConfigFlag -> [ConfigFlag] # enumFromThenTo :: ConfigFlag -> ConfigFlag -> ConfigFlag -> [ConfigFlag] # | |
Show ConfigFlag Source # | |
Defined in Raylib.Types.Core showsPrec :: Int -> ConfigFlag -> ShowS # show :: ConfigFlag -> String # showList :: [ConfigFlag] -> ShowS # | |
Eq ConfigFlag Source # | |
Defined in Raylib.Types.Core (==) :: ConfigFlag -> ConfigFlag -> Bool # (/=) :: ConfigFlag -> ConfigFlag -> Bool # | |
Freeable ConfigFlag Source # | |
Defined in Raylib.Types.Core rlFreeDependents :: ConfigFlag -> Ptr ConfigFlag -> IO () Source # rlFree :: ConfigFlag -> Ptr ConfigFlag -> IO () Source # |
data TraceLogLevel Source #
Instances
Enum TraceLogLevel Source # | |
Defined in Raylib.Types.Core succ :: TraceLogLevel -> TraceLogLevel # pred :: TraceLogLevel -> TraceLogLevel # toEnum :: Int -> TraceLogLevel # fromEnum :: TraceLogLevel -> Int # enumFrom :: TraceLogLevel -> [TraceLogLevel] # enumFromThen :: TraceLogLevel -> TraceLogLevel -> [TraceLogLevel] # enumFromTo :: TraceLogLevel -> TraceLogLevel -> [TraceLogLevel] # enumFromThenTo :: TraceLogLevel -> TraceLogLevel -> TraceLogLevel -> [TraceLogLevel] # | |
Show TraceLogLevel Source # | |
Defined in Raylib.Types.Core showsPrec :: Int -> TraceLogLevel -> ShowS # show :: TraceLogLevel -> String # showList :: [TraceLogLevel] -> ShowS # | |
Eq TraceLogLevel Source # | |
Defined in Raylib.Types.Core (==) :: TraceLogLevel -> TraceLogLevel -> Bool # (/=) :: TraceLogLevel -> TraceLogLevel -> Bool # |
data KeyboardKey Source #
Instances
Enum KeyboardKey Source # | |
Defined in Raylib.Types.Core succ :: KeyboardKey -> KeyboardKey # pred :: KeyboardKey -> KeyboardKey # toEnum :: Int -> KeyboardKey # fromEnum :: KeyboardKey -> Int # enumFrom :: KeyboardKey -> [KeyboardKey] # enumFromThen :: KeyboardKey -> KeyboardKey -> [KeyboardKey] # enumFromTo :: KeyboardKey -> KeyboardKey -> [KeyboardKey] # enumFromThenTo :: KeyboardKey -> KeyboardKey -> KeyboardKey -> [KeyboardKey] # | |
Show KeyboardKey Source # | |
Defined in Raylib.Types.Core showsPrec :: Int -> KeyboardKey -> ShowS # show :: KeyboardKey -> String # showList :: [KeyboardKey] -> ShowS # | |
Eq KeyboardKey Source # | |
Defined in Raylib.Types.Core (==) :: KeyboardKey -> KeyboardKey -> Bool # (/=) :: KeyboardKey -> KeyboardKey -> Bool # |
data MouseButton Source #
MouseButtonLeft | |
MouseButtonRight | |
MouseButtonMiddle | |
MouseButtonSide | |
MouseButtonExtra | |
MouseButtonForward | |
MouseButtonBack |
Instances
Bounded MouseButton Source # | |
Defined in Raylib.Types.Core minBound :: MouseButton # maxBound :: MouseButton # | |
Enum MouseButton Source # | |
Defined in Raylib.Types.Core succ :: MouseButton -> MouseButton # pred :: MouseButton -> MouseButton # toEnum :: Int -> MouseButton # fromEnum :: MouseButton -> Int # enumFrom :: MouseButton -> [MouseButton] # enumFromThen :: MouseButton -> MouseButton -> [MouseButton] # enumFromTo :: MouseButton -> MouseButton -> [MouseButton] # enumFromThenTo :: MouseButton -> MouseButton -> MouseButton -> [MouseButton] # | |
Show MouseButton Source # | |
Defined in Raylib.Types.Core showsPrec :: Int -> MouseButton -> ShowS # show :: MouseButton -> String # showList :: [MouseButton] -> ShowS # | |
Eq MouseButton Source # | |
Defined in Raylib.Types.Core (==) :: MouseButton -> MouseButton -> Bool # (/=) :: MouseButton -> MouseButton -> Bool # |
data MouseCursor Source #
Instances
Bounded MouseCursor Source # | |
Defined in Raylib.Types.Core minBound :: MouseCursor # maxBound :: MouseCursor # | |
Enum MouseCursor Source # | |
Defined in Raylib.Types.Core succ :: MouseCursor -> MouseCursor # pred :: MouseCursor -> MouseCursor # toEnum :: Int -> MouseCursor # fromEnum :: MouseCursor -> Int # enumFrom :: MouseCursor -> [MouseCursor] # enumFromThen :: MouseCursor -> MouseCursor -> [MouseCursor] # enumFromTo :: MouseCursor -> MouseCursor -> [MouseCursor] # enumFromThenTo :: MouseCursor -> MouseCursor -> MouseCursor -> [MouseCursor] # | |
Show MouseCursor Source # | |
Defined in Raylib.Types.Core showsPrec :: Int -> MouseCursor -> ShowS # show :: MouseCursor -> String # showList :: [MouseCursor] -> ShowS # | |
Eq MouseCursor Source # | |
Defined in Raylib.Types.Core (==) :: MouseCursor -> MouseCursor -> Bool # (/=) :: MouseCursor -> MouseCursor -> Bool # |
data GamepadButton Source #
Instances
Bounded GamepadButton Source # | |
Defined in Raylib.Types.Core | |
Enum GamepadButton Source # | |
Defined in Raylib.Types.Core succ :: GamepadButton -> GamepadButton # pred :: GamepadButton -> GamepadButton # toEnum :: Int -> GamepadButton # fromEnum :: GamepadButton -> Int # enumFrom :: GamepadButton -> [GamepadButton] # enumFromThen :: GamepadButton -> GamepadButton -> [GamepadButton] # enumFromTo :: GamepadButton -> GamepadButton -> [GamepadButton] # enumFromThenTo :: GamepadButton -> GamepadButton -> GamepadButton -> [GamepadButton] # | |
Show GamepadButton Source # | |
Defined in Raylib.Types.Core showsPrec :: Int -> GamepadButton -> ShowS # show :: GamepadButton -> String # showList :: [GamepadButton] -> ShowS # | |
Eq GamepadButton Source # | |
Defined in Raylib.Types.Core (==) :: GamepadButton -> GamepadButton -> Bool # (/=) :: GamepadButton -> GamepadButton -> Bool # |
data GamepadAxis Source #
GamepadAxisLeftX | |
GamepadAxisLeftY | |
GamepadAxisRightX | |
GamepadAxisRightY | |
GamepadAxisLeftTrigger | |
GamepadAxisRightTrigger |
Instances
Bounded GamepadAxis Source # | |
Defined in Raylib.Types.Core minBound :: GamepadAxis # maxBound :: GamepadAxis # | |
Enum GamepadAxis Source # | |
Defined in Raylib.Types.Core succ :: GamepadAxis -> GamepadAxis # pred :: GamepadAxis -> GamepadAxis # toEnum :: Int -> GamepadAxis # fromEnum :: GamepadAxis -> Int # enumFrom :: GamepadAxis -> [GamepadAxis] # enumFromThen :: GamepadAxis -> GamepadAxis -> [GamepadAxis] # enumFromTo :: GamepadAxis -> GamepadAxis -> [GamepadAxis] # enumFromThenTo :: GamepadAxis -> GamepadAxis -> GamepadAxis -> [GamepadAxis] # | |
Show GamepadAxis Source # | |
Defined in Raylib.Types.Core showsPrec :: Int -> GamepadAxis -> ShowS # show :: GamepadAxis -> String # showList :: [GamepadAxis] -> ShowS # | |
Eq GamepadAxis Source # | |
Defined in Raylib.Types.Core (==) :: GamepadAxis -> GamepadAxis -> Bool # (/=) :: GamepadAxis -> GamepadAxis -> Bool # |
BlendAlpha | |
BlendAdditive | |
BlendMultiplied | |
BlendAddColors | |
BlendSubtractColors | |
BlendAlphaPremultiply | |
BlendCustom | |
BlendCustomSeparate |
Instances
Enum BlendMode Source # | |
Defined in Raylib.Types.Core succ :: BlendMode -> BlendMode # pred :: BlendMode -> BlendMode # fromEnum :: BlendMode -> Int # enumFrom :: BlendMode -> [BlendMode] # enumFromThen :: BlendMode -> BlendMode -> [BlendMode] # enumFromTo :: BlendMode -> BlendMode -> [BlendMode] # enumFromThenTo :: BlendMode -> BlendMode -> BlendMode -> [BlendMode] # |
GestureNone | |
GestureTap | |
GestureDoubleTap | |
GestureHold | |
GestureDrag | |
GestureSwipeRight | |
GestureSwipeLeft | |
GestureSwipeUp | |
GestureSwipeDown | |
GesturePinchIn | |
GesturePinchOut |
Structures
Instances
Instances
Instances
vectorToColor :: Vector4 -> Color Source #
Matrix | |
|
Instances
Storable Matrix Source # | |
Show Matrix Source # | |
Eq Matrix Source # | |
Freeable Matrix Source # | |
Instances
Storable Color Source # | |
Show Color Source # | |
Eq Color Source # | |
Freeable Color Source # | |
Rectangle | |
|
Instances
Storable Rectangle Source # | |
Defined in Raylib.Types.Core | |
Show Rectangle Source # | |
Eq Rectangle Source # | |
Freeable Rectangle Source # | |
data VrDeviceInfo Source #
Instances
Storable VrDeviceInfo Source # | |
Defined in Raylib.Types.Core sizeOf :: VrDeviceInfo -> Int # alignment :: VrDeviceInfo -> Int # peekElemOff :: Ptr VrDeviceInfo -> Int -> IO VrDeviceInfo # pokeElemOff :: Ptr VrDeviceInfo -> Int -> VrDeviceInfo -> IO () # peekByteOff :: Ptr b -> Int -> IO VrDeviceInfo # pokeByteOff :: Ptr b -> Int -> VrDeviceInfo -> IO () # peek :: Ptr VrDeviceInfo -> IO VrDeviceInfo # poke :: Ptr VrDeviceInfo -> VrDeviceInfo -> IO () # | |
Show VrDeviceInfo Source # | |
Defined in Raylib.Types.Core showsPrec :: Int -> VrDeviceInfo -> ShowS # show :: VrDeviceInfo -> String # showList :: [VrDeviceInfo] -> ShowS # | |
Eq VrDeviceInfo Source # | |
Defined in Raylib.Types.Core (==) :: VrDeviceInfo -> VrDeviceInfo -> Bool # (/=) :: VrDeviceInfo -> VrDeviceInfo -> Bool # | |
Freeable VrDeviceInfo Source # | |
Defined in Raylib.Types.Core rlFreeDependents :: VrDeviceInfo -> Ptr VrDeviceInfo -> IO () Source # rlFree :: VrDeviceInfo -> Ptr VrDeviceInfo -> IO () Source # |
data VrStereoConfig Source #
Instances
data FilePathList Source #
Instances
Storable FilePathList Source # | |
Defined in Raylib.Types.Core sizeOf :: FilePathList -> Int # alignment :: FilePathList -> Int # peekElemOff :: Ptr FilePathList -> Int -> IO FilePathList # pokeElemOff :: Ptr FilePathList -> Int -> FilePathList -> IO () # peekByteOff :: Ptr b -> Int -> IO FilePathList # pokeByteOff :: Ptr b -> Int -> FilePathList -> IO () # peek :: Ptr FilePathList -> IO FilePathList # poke :: Ptr FilePathList -> FilePathList -> IO () # | |
Show FilePathList Source # | |
Defined in Raylib.Types.Core showsPrec :: Int -> FilePathList -> ShowS # show :: FilePathList -> String # showList :: [FilePathList] -> ShowS # | |
Eq FilePathList Source # | |
Defined in Raylib.Types.Core (==) :: FilePathList -> FilePathList -> Bool # (/=) :: FilePathList -> FilePathList -> Bool # | |
Freeable FilePathList Source # | |
Defined in Raylib.Types.Core rlFreeDependents :: FilePathList -> Ptr FilePathList -> IO () Source # rlFree :: FilePathList -> Ptr FilePathList -> IO () Source # |
data AutomationEvent Source #
Instances
data AutomationEventList Source #
Instances
type Quaternion = Vector4 Source #
Pointer utilities
p'filePathList'paths :: Ptr FilePathList -> Ptr (Ptr CString) Source #