{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Mouse.Unsafe (
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_HasMouse,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_GetMice,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_GetMouseNameForID,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_GetMouseFocus,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_GetMouseState,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_GetGlobalMouseState,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_GetRelativeMouseState,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_WarpMouseInWindow,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_WarpMouseGlobal,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_SetRelativeMouseTransform,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_SetWindowRelativeMouseMode,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_GetWindowRelativeMouseMode,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_CaptureMouse,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_CreateCursor,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_CreateColorCursor,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_CreateAnimatedCursor,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_CreateSystemCursor,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_SetCursor,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_GetCursor,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_GetDefaultCursor,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_DestroyCursor,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_ShowCursor,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_HideCursor,
SDL3.Sys.Bindgen.Mouse.Unsafe.sDL_CursorVisible,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.LibC qualified
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Mouse
import SDL3.Sys.Bindgen.Stdinc qualified
import SDL3.Sys.Bindgen.Surface qualified
import SDL3.Sys.Bindgen.Video qualified
$( HsBindgen.Runtime.Support.CAPI.addCSource
( HsBindgen.Runtime.Support.CAPI.unlines
[ "#define SDL_MAIN_HANDLED"
, "#define SDL_SLOW_MEMCPY"
, "#define SDL_SLOW_MEMMOVE"
, "#define SDL_SLOW_MEMSET"
, "#include <SDL3/SDL_mouse.h>"
, "_Bool hs_bindgen_769b74d7836fe340 (void)"
, "{"
, " return (SDL_HasMouse)();"
, "}"
, "SDL_MouseID *hs_bindgen_a1009b511ca2df84 ("
, " signed int *arg1"
, ")"
, "{"
, " return (SDL_GetMice)(arg1);"
, "}"
, "char const *hs_bindgen_47cea9780ae3c106 ("
, " SDL_MouseID arg1"
, ")"
, "{"
, " return (SDL_GetMouseNameForID)(arg1);"
, "}"
, "SDL_Window *hs_bindgen_053bab05e16f443e (void)"
, "{"
, " return (SDL_GetMouseFocus)();"
, "}"
, "SDL_MouseButtonFlags hs_bindgen_f18a766f4a177029 ("
, " float *arg1,"
, " float *arg2"
, ")"
, "{"
, " return (SDL_GetMouseState)(arg1, arg2);"
, "}"
, "SDL_MouseButtonFlags hs_bindgen_4b743c0e1b7fc8fc ("
, " float *arg1,"
, " float *arg2"
, ")"
, "{"
, " return (SDL_GetGlobalMouseState)(arg1, arg2);"
, "}"
, "SDL_MouseButtonFlags hs_bindgen_d841c68d1482079a ("
, " float *arg1,"
, " float *arg2"
, ")"
, "{"
, " return (SDL_GetRelativeMouseState)(arg1, arg2);"
, "}"
, "void hs_bindgen_0b73aa8f6d98f018 ("
, " SDL_Window *arg1,"
, " float arg2,"
, " float arg3"
, ")"
, "{"
, " (SDL_WarpMouseInWindow)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_42c0ada5af2a75a6 ("
, " float arg1,"
, " float arg2"
, ")"
, "{"
, " return (SDL_WarpMouseGlobal)(arg1, arg2);"
, "}"
, "#include <SDL3/SDL_version.h>"
, "#include <SDL3/SDL_error.h>"
, "#include <SDL3/SDL_version.h>"
, "#if !SDL_VERSION_ATLEAST(3, 4, 0)"
, "typedef struct SDL_CursorFrameInfo SDL_CursorFrameInfo;"
, "typedef void *SDL_MouseMotionTransformCallback;"
, "#endif"
, "_Bool hs_bindgen_3431374e48384d8c ("
, " SDL_MouseMotionTransformCallback arg1,"
, " void *arg2"
, ")"
, "{"
, "#if SDL_VERSION_ATLEAST(3, 4, 0)"
, " return (SDL_SetRelativeMouseTransform)(arg1, arg2);"
, "#else"
, " (void)arg1; (void)arg2; SDL_SetError(\"SDL_SetRelativeMouseTransform requires SDL >= 3.4.0\"); return 0;"
, "#endif"
, "}"
, "_Bool hs_bindgen_df14f3a2272073d3 ("
, " SDL_Window *arg1,"
, " _Bool arg2"
, ")"
, "{"
, " return (SDL_SetWindowRelativeMouseMode)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_60e1427dc7059277 ("
, " SDL_Window *arg1"
, ")"
, "{"
, " return (SDL_GetWindowRelativeMouseMode)(arg1);"
, "}"
, "_Bool hs_bindgen_61b615e5f17d45b5 ("
, " _Bool arg1"
, ")"
, "{"
, " return (SDL_CaptureMouse)(arg1);"
, "}"
, "SDL_Cursor *hs_bindgen_14364d58f2a5fb7e ("
, " Uint8 const *arg1,"
, " Uint8 const *arg2,"
, " signed int arg3,"
, " signed int arg4,"
, " signed int arg5,"
, " signed int arg6"
, ")"
, "{"
, " return (SDL_CreateCursor)(arg1, arg2, arg3, arg4, arg5, arg6);"
, "}"
, "SDL_Cursor *hs_bindgen_fa20cf5972b0b3ea ("
, " SDL_Surface *arg1,"
, " signed int arg2,"
, " signed int arg3"
, ")"
, "{"
, " return (SDL_CreateColorCursor)(arg1, arg2, arg3);"
, "}"
, "#include <SDL3/SDL_version.h>"
, "#include <SDL3/SDL_error.h>"
, "#include <SDL3/SDL_version.h>"
, "#if !SDL_VERSION_ATLEAST(3, 4, 0)"
, "typedef struct SDL_CursorFrameInfo SDL_CursorFrameInfo;"
, "typedef void *SDL_MouseMotionTransformCallback;"
, "#endif"
, "SDL_Cursor *hs_bindgen_d361ef168725ef94 ("
, " SDL_CursorFrameInfo *arg1,"
, " signed int arg2,"
, " signed int arg3,"
, " signed int arg4"
, ")"
, "{"
, "#if SDL_VERSION_ATLEAST(3, 4, 0)"
, " return (SDL_CreateAnimatedCursor)(arg1, arg2, arg3, arg4);"
, "#else"
, " (void)arg1; (void)arg2; (void)arg3; (void)arg4; SDL_SetError(\"SDL_CreateAnimatedCursor requires SDL >= 3.4.0\"); return 0;"
, "#endif"
, "}"
, "SDL_Cursor *hs_bindgen_c34ca154a7bf13af ("
, " SDL_SystemCursor arg1"
, ")"
, "{"
, " return (SDL_CreateSystemCursor)(arg1);"
, "}"
, "_Bool hs_bindgen_c79cfea2c2a40f90 ("
, " SDL_Cursor *arg1"
, ")"
, "{"
, " return (SDL_SetCursor)(arg1);"
, "}"
, "SDL_Cursor *hs_bindgen_9e2eefba89a09501 (void)"
, "{"
, " return (SDL_GetCursor)();"
, "}"
, "SDL_Cursor *hs_bindgen_b81cd185a7b75943 (void)"
, "{"
, " return (SDL_GetDefaultCursor)();"
, "}"
, "void hs_bindgen_fd4d057091dc9dcc ("
, " SDL_Cursor *arg1"
, ")"
, "{"
, " (SDL_DestroyCursor)(arg1);"
, "}"
, "_Bool hs_bindgen_79db044ed9d49e1d (void)"
, "{"
, " return (SDL_ShowCursor)();"
, "}"
, "_Bool hs_bindgen_f07aff8d3a047b77 (void)"
, "{"
, " return (SDL_HideCursor)();"
, "}"
, "_Bool hs_bindgen_1d7b9f91212450ba (void)"
, "{"
, " return (SDL_CursorVisible)();"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_769b74d7836fe340"
hs_bindgen_769b74d7836fe340_base
:: IO BG.CBool
hs_bindgen_769b74d7836fe340 :: IO BG.CBool
hs_bindgen_769b74d7836fe340 :: IO CBool
hs_bindgen_769b74d7836fe340 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_769b74d7836fe340_base
sDL_HasMouse :: IO BG.CBool
sDL_HasMouse :: IO CBool
sDL_HasMouse = IO CBool
hs_bindgen_769b74d7836fe340
foreign import ccall unsafe "hs_bindgen_a1009b511ca2df84"
hs_bindgen_a1009b511ca2df84_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_a1009b511ca2df84
:: BG.Ptr BG.CInt
-> IO (BG.Ptr SDL_MouseID)
hs_bindgen_a1009b511ca2df84 :: Ptr CInt -> IO (Ptr SDL_MouseID)
hs_bindgen_a1009b511ca2df84 =
\Ptr CInt
x0 ->
(Ptr Void -> Ptr SDL_MouseID)
-> IO (Ptr Void) -> IO (Ptr SDL_MouseID)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_MouseID
FFIType (Ptr SDL_MouseID) -> Ptr SDL_MouseID
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO (Ptr Void)
hs_bindgen_a1009b511ca2df84_base (Ptr CInt -> FFIType (Ptr CInt)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CInt
x0))
sDL_GetMice
:: BG.Ptr BG.CInt
-> IO (BG.Ptr SDL_MouseID)
sDL_GetMice :: Ptr CInt -> IO (Ptr SDL_MouseID)
sDL_GetMice = Ptr CInt -> IO (Ptr SDL_MouseID)
hs_bindgen_a1009b511ca2df84
foreign import ccall unsafe "hs_bindgen_47cea9780ae3c106"
hs_bindgen_47cea9780ae3c106_base
:: HsBindgen.Runtime.LibC.Word32
-> IO (BG.Ptr BG.Void)
hs_bindgen_47cea9780ae3c106
:: SDL_MouseID
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_47cea9780ae3c106 :: SDL_MouseID -> IO (PtrConst CChar)
hs_bindgen_47cea9780ae3c106 =
\SDL_MouseID
x0 ->
(Ptr Void -> PtrConst CChar)
-> IO (Ptr Void) -> IO (PtrConst CChar)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> PtrConst CChar
FFIType (PtrConst CChar) -> PtrConst CChar
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Word32 -> IO (Ptr Void)
hs_bindgen_47cea9780ae3c106_base (SDL_MouseID -> FFIType SDL_MouseID
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_MouseID
x0))
sDL_GetMouseNameForID
:: SDL_MouseID
-> IO (PtrConst.PtrConst BG.CChar)
sDL_GetMouseNameForID :: SDL_MouseID -> IO (PtrConst CChar)
sDL_GetMouseNameForID = SDL_MouseID -> IO (PtrConst CChar)
hs_bindgen_47cea9780ae3c106
foreign import ccall unsafe "hs_bindgen_053bab05e16f443e"
hs_bindgen_053bab05e16f443e_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_053bab05e16f443e :: IO (BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window)
hs_bindgen_053bab05e16f443e :: IO (Ptr SDL_Window)
hs_bindgen_053bab05e16f443e =
(Ptr Void -> Ptr SDL_Window)
-> IO (Ptr Void) -> IO (Ptr SDL_Window)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_Window
FFIType (Ptr SDL_Window) -> Ptr SDL_Window
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (Ptr Void)
hs_bindgen_053bab05e16f443e_base
sDL_GetMouseFocus :: IO (BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window)
sDL_GetMouseFocus :: IO (Ptr SDL_Window)
sDL_GetMouseFocus = IO (Ptr SDL_Window)
hs_bindgen_053bab05e16f443e
foreign import ccall unsafe "hs_bindgen_f18a766f4a177029"
hs_bindgen_f18a766f4a177029_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_f18a766f4a177029
:: BG.Ptr BG.CFloat
-> BG.Ptr BG.CFloat
-> IO SDL_MouseButtonFlags
hs_bindgen_f18a766f4a177029 :: Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
hs_bindgen_f18a766f4a177029 =
\Ptr CFloat
x0 ->
\Ptr CFloat
x1 ->
(Word32 -> SDL_MouseButtonFlags)
-> IO Word32 -> IO SDL_MouseButtonFlags
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Word32 -> SDL_MouseButtonFlags
FFIType SDL_MouseButtonFlags -> SDL_MouseButtonFlags
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> Ptr Void -> IO Word32
hs_bindgen_f18a766f4a177029_base (Ptr CFloat -> FFIType (Ptr CFloat)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CFloat
x0) (Ptr CFloat -> FFIType (Ptr CFloat)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CFloat
x1))
sDL_GetMouseState
:: BG.Ptr BG.CFloat
-> BG.Ptr BG.CFloat
-> IO SDL_MouseButtonFlags
sDL_GetMouseState :: Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
sDL_GetMouseState = Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
hs_bindgen_f18a766f4a177029
foreign import ccall unsafe "hs_bindgen_4b743c0e1b7fc8fc"
hs_bindgen_4b743c0e1b7fc8fc_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_4b743c0e1b7fc8fc
:: BG.Ptr BG.CFloat
-> BG.Ptr BG.CFloat
-> IO SDL_MouseButtonFlags
hs_bindgen_4b743c0e1b7fc8fc :: Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
hs_bindgen_4b743c0e1b7fc8fc =
\Ptr CFloat
x0 ->
\Ptr CFloat
x1 ->
(Word32 -> SDL_MouseButtonFlags)
-> IO Word32 -> IO SDL_MouseButtonFlags
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Word32 -> SDL_MouseButtonFlags
FFIType SDL_MouseButtonFlags -> SDL_MouseButtonFlags
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> Ptr Void -> IO Word32
hs_bindgen_4b743c0e1b7fc8fc_base (Ptr CFloat -> FFIType (Ptr CFloat)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CFloat
x0) (Ptr CFloat -> FFIType (Ptr CFloat)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CFloat
x1))
sDL_GetGlobalMouseState
:: BG.Ptr BG.CFloat
-> BG.Ptr BG.CFloat
-> IO SDL_MouseButtonFlags
sDL_GetGlobalMouseState :: Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
sDL_GetGlobalMouseState = Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
hs_bindgen_4b743c0e1b7fc8fc
foreign import ccall unsafe "hs_bindgen_d841c68d1482079a"
hs_bindgen_d841c68d1482079a_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_d841c68d1482079a
:: BG.Ptr BG.CFloat
-> BG.Ptr BG.CFloat
-> IO SDL_MouseButtonFlags
hs_bindgen_d841c68d1482079a :: Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
hs_bindgen_d841c68d1482079a =
\Ptr CFloat
x0 ->
\Ptr CFloat
x1 ->
(Word32 -> SDL_MouseButtonFlags)
-> IO Word32 -> IO SDL_MouseButtonFlags
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Word32 -> SDL_MouseButtonFlags
FFIType SDL_MouseButtonFlags -> SDL_MouseButtonFlags
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> Ptr Void -> IO Word32
hs_bindgen_d841c68d1482079a_base (Ptr CFloat -> FFIType (Ptr CFloat)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CFloat
x0) (Ptr CFloat -> FFIType (Ptr CFloat)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CFloat
x1))
sDL_GetRelativeMouseState
:: BG.Ptr BG.CFloat
-> BG.Ptr BG.CFloat
-> IO SDL_MouseButtonFlags
sDL_GetRelativeMouseState :: Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
sDL_GetRelativeMouseState =
Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
hs_bindgen_d841c68d1482079a
foreign import ccall unsafe "hs_bindgen_0b73aa8f6d98f018"
hs_bindgen_0b73aa8f6d98f018_base
:: BG.Ptr BG.Void
-> BG.CFloat
-> BG.CFloat
-> IO ()
hs_bindgen_0b73aa8f6d98f018
:: BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> BG.CFloat
-> BG.CFloat
-> IO ()
hs_bindgen_0b73aa8f6d98f018 :: Ptr SDL_Window -> CFloat -> CFloat -> IO ()
hs_bindgen_0b73aa8f6d98f018 =
\Ptr SDL_Window
x0 ->
\CFloat
x1 ->
\CFloat
x2 ->
Ptr Void -> CFloat -> CFloat -> IO ()
hs_bindgen_0b73aa8f6d98f018_base (Ptr SDL_Window -> FFIType (Ptr SDL_Window)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Window
x0) (CFloat -> FFIType CFloat
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CFloat
x1) (CFloat -> FFIType CFloat
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CFloat
x2)
sDL_WarpMouseInWindow
:: BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> BG.CFloat
-> BG.CFloat
-> IO ()
sDL_WarpMouseInWindow :: Ptr SDL_Window -> CFloat -> CFloat -> IO ()
sDL_WarpMouseInWindow = Ptr SDL_Window -> CFloat -> CFloat -> IO ()
hs_bindgen_0b73aa8f6d98f018
foreign import ccall unsafe "hs_bindgen_42c0ada5af2a75a6"
hs_bindgen_42c0ada5af2a75a6_base
:: BG.CFloat
-> BG.CFloat
-> IO BG.CBool
hs_bindgen_42c0ada5af2a75a6
:: BG.CFloat
-> BG.CFloat
-> IO BG.CBool
hs_bindgen_42c0ada5af2a75a6 :: CFloat -> CFloat -> IO CBool
hs_bindgen_42c0ada5af2a75a6 =
\CFloat
x0 ->
\CFloat
x1 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (CFloat -> CFloat -> IO CBool
hs_bindgen_42c0ada5af2a75a6_base (CFloat -> FFIType CFloat
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CFloat
x0) (CFloat -> FFIType CFloat
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CFloat
x1))
sDL_WarpMouseGlobal
:: BG.CFloat
-> BG.CFloat
-> IO BG.CBool
sDL_WarpMouseGlobal :: CFloat -> CFloat -> IO CBool
sDL_WarpMouseGlobal = CFloat -> CFloat -> IO CBool
hs_bindgen_42c0ada5af2a75a6
foreign import ccall unsafe "hs_bindgen_3431374e48384d8c"
hs_bindgen_3431374e48384d8c_base
:: BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_3431374e48384d8c
:: SDL_MouseMotionTransformCallback
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_3431374e48384d8c :: SDL_MouseMotionTransformCallback -> Ptr Void -> IO CBool
hs_bindgen_3431374e48384d8c =
\SDL_MouseMotionTransformCallback
x0 ->
\Ptr Void
x1 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (FunPtr Void -> Ptr Void -> IO CBool
hs_bindgen_3431374e48384d8c_base (SDL_MouseMotionTransformCallback
-> FFIType SDL_MouseMotionTransformCallback
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_MouseMotionTransformCallback
x0) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x1))
sDL_SetRelativeMouseTransform
:: SDL_MouseMotionTransformCallback
-> BG.Ptr BG.Void
-> IO BG.CBool
sDL_SetRelativeMouseTransform :: SDL_MouseMotionTransformCallback -> Ptr Void -> IO CBool
sDL_SetRelativeMouseTransform =
SDL_MouseMotionTransformCallback -> Ptr Void -> IO CBool
hs_bindgen_3431374e48384d8c
foreign import ccall unsafe "hs_bindgen_df14f3a2272073d3"
hs_bindgen_df14f3a2272073d3_base
:: BG.Ptr BG.Void
-> BG.CBool
-> IO BG.CBool
hs_bindgen_df14f3a2272073d3
:: BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> BG.CBool
-> IO BG.CBool
hs_bindgen_df14f3a2272073d3 :: Ptr SDL_Window -> CBool -> IO CBool
hs_bindgen_df14f3a2272073d3 =
\Ptr SDL_Window
x0 ->
\CBool
x1 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> CBool -> IO CBool
hs_bindgen_df14f3a2272073d3_base (Ptr SDL_Window -> FFIType (Ptr SDL_Window)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Window
x0) (CBool -> FFIType CBool
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CBool
x1))
sDL_SetWindowRelativeMouseMode
:: BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> BG.CBool
-> IO BG.CBool
sDL_SetWindowRelativeMouseMode :: Ptr SDL_Window -> CBool -> IO CBool
sDL_SetWindowRelativeMouseMode =
Ptr SDL_Window -> CBool -> IO CBool
hs_bindgen_df14f3a2272073d3
foreign import ccall unsafe "hs_bindgen_60e1427dc7059277"
hs_bindgen_60e1427dc7059277_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_60e1427dc7059277
:: BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> IO BG.CBool
hs_bindgen_60e1427dc7059277 :: Ptr SDL_Window -> IO CBool
hs_bindgen_60e1427dc7059277 =
\Ptr SDL_Window
x0 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO CBool
hs_bindgen_60e1427dc7059277_base (Ptr SDL_Window -> FFIType (Ptr SDL_Window)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Window
x0))
sDL_GetWindowRelativeMouseMode
:: BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> IO BG.CBool
sDL_GetWindowRelativeMouseMode :: Ptr SDL_Window -> IO CBool
sDL_GetWindowRelativeMouseMode =
Ptr SDL_Window -> IO CBool
hs_bindgen_60e1427dc7059277
foreign import ccall unsafe "hs_bindgen_61b615e5f17d45b5"
hs_bindgen_61b615e5f17d45b5_base
:: BG.CBool
-> IO BG.CBool
hs_bindgen_61b615e5f17d45b5
:: BG.CBool
-> IO BG.CBool
hs_bindgen_61b615e5f17d45b5 :: CBool -> IO CBool
hs_bindgen_61b615e5f17d45b5 =
\CBool
x0 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (CBool -> IO CBool
hs_bindgen_61b615e5f17d45b5_base (CBool -> FFIType CBool
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CBool
x0))
sDL_CaptureMouse
:: BG.CBool
-> IO BG.CBool
sDL_CaptureMouse :: CBool -> IO CBool
sDL_CaptureMouse = CBool -> IO CBool
hs_bindgen_61b615e5f17d45b5
foreign import ccall unsafe "hs_bindgen_14364d58f2a5fb7e"
hs_bindgen_14364d58f2a5fb7e_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_14364d58f2a5fb7e
:: PtrConst.PtrConst SDL3.Sys.Bindgen.Stdinc.Uint8
-> PtrConst.PtrConst SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr SDL_Cursor)
hs_bindgen_14364d58f2a5fb7e :: PtrConst Uint8
-> PtrConst Uint8
-> CInt
-> CInt
-> CInt
-> CInt
-> IO (Ptr SDL_Cursor)
hs_bindgen_14364d58f2a5fb7e =
\PtrConst Uint8
x0 ->
\PtrConst Uint8
x1 ->
\CInt
x2 ->
\CInt
x3 ->
\CInt
x4 ->
\CInt
x5 ->
(Ptr Void -> Ptr SDL_Cursor)
-> IO (Ptr Void) -> IO (Ptr SDL_Cursor)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap
Ptr Void -> Ptr SDL_Cursor
FFIType (Ptr SDL_Cursor) -> Ptr SDL_Cursor
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
( Ptr Void
-> Ptr Void -> CInt -> CInt -> CInt -> CInt -> IO (Ptr Void)
hs_bindgen_14364d58f2a5fb7e_base
(PtrConst Uint8 -> FFIType (PtrConst Uint8)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst Uint8
x0)
(PtrConst Uint8 -> FFIType (PtrConst Uint8)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst Uint8
x1)
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x2)
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x3)
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x4)
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x5)
)
sDL_CreateCursor
:: PtrConst.PtrConst SDL3.Sys.Bindgen.Stdinc.Uint8
-> PtrConst.PtrConst SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr SDL_Cursor)
sDL_CreateCursor :: PtrConst Uint8
-> PtrConst Uint8
-> CInt
-> CInt
-> CInt
-> CInt
-> IO (Ptr SDL_Cursor)
sDL_CreateCursor = PtrConst Uint8
-> PtrConst Uint8
-> CInt
-> CInt
-> CInt
-> CInt
-> IO (Ptr SDL_Cursor)
hs_bindgen_14364d58f2a5fb7e
foreign import ccall unsafe "hs_bindgen_fa20cf5972b0b3ea"
hs_bindgen_fa20cf5972b0b3ea_base
:: BG.Ptr BG.Void
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_fa20cf5972b0b3ea
:: BG.Ptr SDL3.Sys.Bindgen.Surface.SDL_Surface
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr SDL_Cursor)
hs_bindgen_fa20cf5972b0b3ea :: Ptr SDL_Surface -> CInt -> CInt -> IO (Ptr SDL_Cursor)
hs_bindgen_fa20cf5972b0b3ea =
\Ptr SDL_Surface
x0 ->
\CInt
x1 ->
\CInt
x2 ->
(Ptr Void -> Ptr SDL_Cursor)
-> IO (Ptr Void) -> IO (Ptr SDL_Cursor)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap
Ptr Void -> Ptr SDL_Cursor
FFIType (Ptr SDL_Cursor) -> Ptr SDL_Cursor
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
(Ptr Void -> CInt -> CInt -> IO (Ptr Void)
hs_bindgen_fa20cf5972b0b3ea_base (Ptr SDL_Surface -> FFIType (Ptr SDL_Surface)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Surface
x0) (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x1) (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x2))
sDL_CreateColorCursor
:: BG.Ptr SDL3.Sys.Bindgen.Surface.SDL_Surface
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr SDL_Cursor)
sDL_CreateColorCursor :: Ptr SDL_Surface -> CInt -> CInt -> IO (Ptr SDL_Cursor)
sDL_CreateColorCursor = Ptr SDL_Surface -> CInt -> CInt -> IO (Ptr SDL_Cursor)
hs_bindgen_fa20cf5972b0b3ea
foreign import ccall unsafe "hs_bindgen_d361ef168725ef94"
hs_bindgen_d361ef168725ef94_base
:: BG.Ptr BG.Void
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_d361ef168725ef94
:: BG.Ptr SDL_CursorFrameInfo
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr SDL_Cursor)
hs_bindgen_d361ef168725ef94 :: Ptr SDL_CursorFrameInfo
-> CInt -> CInt -> CInt -> IO (Ptr SDL_Cursor)
hs_bindgen_d361ef168725ef94 =
\Ptr SDL_CursorFrameInfo
x0 ->
\CInt
x1 ->
\CInt
x2 ->
\CInt
x3 ->
(Ptr Void -> Ptr SDL_Cursor)
-> IO (Ptr Void) -> IO (Ptr SDL_Cursor)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap
Ptr Void -> Ptr SDL_Cursor
FFIType (Ptr SDL_Cursor) -> Ptr SDL_Cursor
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
( Ptr Void -> CInt -> CInt -> CInt -> IO (Ptr Void)
hs_bindgen_d361ef168725ef94_base
(Ptr SDL_CursorFrameInfo -> FFIType (Ptr SDL_CursorFrameInfo)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_CursorFrameInfo
x0)
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x1)
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x2)
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x3)
)
sDL_CreateAnimatedCursor
:: BG.Ptr SDL_CursorFrameInfo
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr SDL_Cursor)
sDL_CreateAnimatedCursor :: Ptr SDL_CursorFrameInfo
-> CInt -> CInt -> CInt -> IO (Ptr SDL_Cursor)
sDL_CreateAnimatedCursor =
Ptr SDL_CursorFrameInfo
-> CInt -> CInt -> CInt -> IO (Ptr SDL_Cursor)
hs_bindgen_d361ef168725ef94
foreign import ccall unsafe "hs_bindgen_c34ca154a7bf13af"
hs_bindgen_c34ca154a7bf13af_base
:: BG.CUInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_c34ca154a7bf13af
:: SDL_SystemCursor
-> IO (BG.Ptr SDL_Cursor)
hs_bindgen_c34ca154a7bf13af :: SDL_SystemCursor -> IO (Ptr SDL_Cursor)
hs_bindgen_c34ca154a7bf13af =
\SDL_SystemCursor
x0 ->
(Ptr Void -> Ptr SDL_Cursor)
-> IO (Ptr Void) -> IO (Ptr SDL_Cursor)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_Cursor
FFIType (Ptr SDL_Cursor) -> Ptr SDL_Cursor
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (CUInt -> IO (Ptr Void)
hs_bindgen_c34ca154a7bf13af_base (SDL_SystemCursor -> FFIType SDL_SystemCursor
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_SystemCursor
x0))
sDL_CreateSystemCursor
:: SDL_SystemCursor
-> IO (BG.Ptr SDL_Cursor)
sDL_CreateSystemCursor :: SDL_SystemCursor -> IO (Ptr SDL_Cursor)
sDL_CreateSystemCursor = SDL_SystemCursor -> IO (Ptr SDL_Cursor)
hs_bindgen_c34ca154a7bf13af
foreign import ccall unsafe "hs_bindgen_c79cfea2c2a40f90"
hs_bindgen_c79cfea2c2a40f90_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_c79cfea2c2a40f90
:: BG.Ptr SDL_Cursor
-> IO BG.CBool
hs_bindgen_c79cfea2c2a40f90 :: Ptr SDL_Cursor -> IO CBool
hs_bindgen_c79cfea2c2a40f90 =
\Ptr SDL_Cursor
x0 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO CBool
hs_bindgen_c79cfea2c2a40f90_base (Ptr SDL_Cursor -> FFIType (Ptr SDL_Cursor)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Cursor
x0))
sDL_SetCursor
:: BG.Ptr SDL_Cursor
-> IO BG.CBool
sDL_SetCursor :: Ptr SDL_Cursor -> IO CBool
sDL_SetCursor = Ptr SDL_Cursor -> IO CBool
hs_bindgen_c79cfea2c2a40f90
foreign import ccall unsafe "hs_bindgen_9e2eefba89a09501"
hs_bindgen_9e2eefba89a09501_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_9e2eefba89a09501 :: IO (BG.Ptr SDL_Cursor)
hs_bindgen_9e2eefba89a09501 :: IO (Ptr SDL_Cursor)
hs_bindgen_9e2eefba89a09501 =
(Ptr Void -> Ptr SDL_Cursor)
-> IO (Ptr Void) -> IO (Ptr SDL_Cursor)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_Cursor
FFIType (Ptr SDL_Cursor) -> Ptr SDL_Cursor
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (Ptr Void)
hs_bindgen_9e2eefba89a09501_base
sDL_GetCursor :: IO (BG.Ptr SDL_Cursor)
sDL_GetCursor :: IO (Ptr SDL_Cursor)
sDL_GetCursor = IO (Ptr SDL_Cursor)
hs_bindgen_9e2eefba89a09501
foreign import ccall unsafe "hs_bindgen_b81cd185a7b75943"
hs_bindgen_b81cd185a7b75943_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_b81cd185a7b75943 :: IO (BG.Ptr SDL_Cursor)
hs_bindgen_b81cd185a7b75943 :: IO (Ptr SDL_Cursor)
hs_bindgen_b81cd185a7b75943 =
(Ptr Void -> Ptr SDL_Cursor)
-> IO (Ptr Void) -> IO (Ptr SDL_Cursor)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_Cursor
FFIType (Ptr SDL_Cursor) -> Ptr SDL_Cursor
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (Ptr Void)
hs_bindgen_b81cd185a7b75943_base
sDL_GetDefaultCursor :: IO (BG.Ptr SDL_Cursor)
sDL_GetDefaultCursor :: IO (Ptr SDL_Cursor)
sDL_GetDefaultCursor = IO (Ptr SDL_Cursor)
hs_bindgen_b81cd185a7b75943
foreign import ccall unsafe "hs_bindgen_fd4d057091dc9dcc"
hs_bindgen_fd4d057091dc9dcc_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_fd4d057091dc9dcc
:: BG.Ptr SDL_Cursor
-> IO ()
hs_bindgen_fd4d057091dc9dcc :: Ptr SDL_Cursor -> IO ()
hs_bindgen_fd4d057091dc9dcc =
\Ptr SDL_Cursor
x0 ->
Ptr Void -> IO ()
hs_bindgen_fd4d057091dc9dcc_base (Ptr SDL_Cursor -> FFIType (Ptr SDL_Cursor)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Cursor
x0)
sDL_DestroyCursor
:: BG.Ptr SDL_Cursor
-> IO ()
sDL_DestroyCursor :: Ptr SDL_Cursor -> IO ()
sDL_DestroyCursor = Ptr SDL_Cursor -> IO ()
hs_bindgen_fd4d057091dc9dcc
foreign import ccall unsafe "hs_bindgen_79db044ed9d49e1d"
hs_bindgen_79db044ed9d49e1d_base
:: IO BG.CBool
hs_bindgen_79db044ed9d49e1d :: IO BG.CBool
hs_bindgen_79db044ed9d49e1d :: IO CBool
hs_bindgen_79db044ed9d49e1d =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_79db044ed9d49e1d_base
sDL_ShowCursor :: IO BG.CBool
sDL_ShowCursor :: IO CBool
sDL_ShowCursor = IO CBool
hs_bindgen_79db044ed9d49e1d
foreign import ccall unsafe "hs_bindgen_f07aff8d3a047b77"
hs_bindgen_f07aff8d3a047b77_base
:: IO BG.CBool
hs_bindgen_f07aff8d3a047b77 :: IO BG.CBool
hs_bindgen_f07aff8d3a047b77 :: IO CBool
hs_bindgen_f07aff8d3a047b77 =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_f07aff8d3a047b77_base
sDL_HideCursor :: IO BG.CBool
sDL_HideCursor :: IO CBool
sDL_HideCursor = IO CBool
hs_bindgen_f07aff8d3a047b77
foreign import ccall unsafe "hs_bindgen_1d7b9f91212450ba"
hs_bindgen_1d7b9f91212450ba_base
:: IO BG.CBool
hs_bindgen_1d7b9f91212450ba :: IO BG.CBool
hs_bindgen_1d7b9f91212450ba :: IO CBool
hs_bindgen_1d7b9f91212450ba =
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CBool
hs_bindgen_1d7b9f91212450ba_base
sDL_CursorVisible :: IO BG.CBool
sDL_CursorVisible :: IO CBool
sDL_CursorVisible = IO CBool
hs_bindgen_1d7b9f91212450ba