{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Mouse.Safe (
SDL3.Sys.Bindgen.Mouse.Safe.sDL_HasMouse,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_GetMice,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_GetMouseNameForID,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_GetMouseFocus,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_GetMouseState,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_GetGlobalMouseState,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_GetRelativeMouseState,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_WarpMouseInWindow,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_WarpMouseGlobal,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_SetRelativeMouseTransform,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_SetWindowRelativeMouseMode,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_GetWindowRelativeMouseMode,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_CaptureMouse,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_CreateCursor,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_CreateColorCursor,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_CreateAnimatedCursor,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_CreateSystemCursor,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_SetCursor,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_GetCursor,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_GetDefaultCursor,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_DestroyCursor,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_ShowCursor,
SDL3.Sys.Bindgen.Mouse.Safe.sDL_HideCursor,
SDL3.Sys.Bindgen.Mouse.Safe.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_c5f87eb6a615a43b (void)"
, "{"
, " return (SDL_HasMouse)();"
, "}"
, "SDL_MouseID *hs_bindgen_b5ddc524dd09ed59 ("
, " signed int *arg1"
, ")"
, "{"
, " return (SDL_GetMice)(arg1);"
, "}"
, "char const *hs_bindgen_5f9df08d34babce6 ("
, " SDL_MouseID arg1"
, ")"
, "{"
, " return (SDL_GetMouseNameForID)(arg1);"
, "}"
, "SDL_Window *hs_bindgen_d663c2bc45028535 (void)"
, "{"
, " return (SDL_GetMouseFocus)();"
, "}"
, "SDL_MouseButtonFlags hs_bindgen_ea9a965df89a99a0 ("
, " float *arg1,"
, " float *arg2"
, ")"
, "{"
, " return (SDL_GetMouseState)(arg1, arg2);"
, "}"
, "SDL_MouseButtonFlags hs_bindgen_10d90c46febd8700 ("
, " float *arg1,"
, " float *arg2"
, ")"
, "{"
, " return (SDL_GetGlobalMouseState)(arg1, arg2);"
, "}"
, "SDL_MouseButtonFlags hs_bindgen_b0dfdde07e2521d8 ("
, " float *arg1,"
, " float *arg2"
, ")"
, "{"
, " return (SDL_GetRelativeMouseState)(arg1, arg2);"
, "}"
, "void hs_bindgen_0eb4d6e5e240c8df ("
, " SDL_Window *arg1,"
, " float arg2,"
, " float arg3"
, ")"
, "{"
, " (SDL_WarpMouseInWindow)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_f03dc8593d130e68 ("
, " 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_c18f7adda4cf4b0b ("
, " 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_ebfc8396f7c8dfc1 ("
, " SDL_Window *arg1,"
, " _Bool arg2"
, ")"
, "{"
, " return (SDL_SetWindowRelativeMouseMode)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_c122318f49f37c28 ("
, " SDL_Window *arg1"
, ")"
, "{"
, " return (SDL_GetWindowRelativeMouseMode)(arg1);"
, "}"
, "_Bool hs_bindgen_ba2a652c2d22d4f9 ("
, " _Bool arg1"
, ")"
, "{"
, " return (SDL_CaptureMouse)(arg1);"
, "}"
, "SDL_Cursor *hs_bindgen_8aa3978a09ad477f ("
, " 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_1af9c26d315c2409 ("
, " 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_9a5f9b18f58c86ff ("
, " 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_9c5496f4b40d0ce6 ("
, " SDL_SystemCursor arg1"
, ")"
, "{"
, " return (SDL_CreateSystemCursor)(arg1);"
, "}"
, "_Bool hs_bindgen_3b39298a9bf3a79f ("
, " SDL_Cursor *arg1"
, ")"
, "{"
, " return (SDL_SetCursor)(arg1);"
, "}"
, "SDL_Cursor *hs_bindgen_0ad270dac1fad234 (void)"
, "{"
, " return (SDL_GetCursor)();"
, "}"
, "SDL_Cursor *hs_bindgen_eba07747bd0a11f2 (void)"
, "{"
, " return (SDL_GetDefaultCursor)();"
, "}"
, "void hs_bindgen_c88c0b977a69ed2a ("
, " SDL_Cursor *arg1"
, ")"
, "{"
, " (SDL_DestroyCursor)(arg1);"
, "}"
, "_Bool hs_bindgen_2dbfefec61405524 (void)"
, "{"
, " return (SDL_ShowCursor)();"
, "}"
, "_Bool hs_bindgen_40414e63ec7f7a75 (void)"
, "{"
, " return (SDL_HideCursor)();"
, "}"
, "_Bool hs_bindgen_3414c4fe925fe000 (void)"
, "{"
, " return (SDL_CursorVisible)();"
, "}"
]
)
)
foreign import ccall safe "hs_bindgen_c5f87eb6a615a43b"
hs_bindgen_c5f87eb6a615a43b_base
:: IO BG.CBool
hs_bindgen_c5f87eb6a615a43b :: IO BG.CBool
hs_bindgen_c5f87eb6a615a43b :: IO CBool
hs_bindgen_c5f87eb6a615a43b =
(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_c5f87eb6a615a43b_base
sDL_HasMouse :: IO BG.CBool
sDL_HasMouse :: IO CBool
sDL_HasMouse = IO CBool
hs_bindgen_c5f87eb6a615a43b
foreign import ccall safe "hs_bindgen_b5ddc524dd09ed59"
hs_bindgen_b5ddc524dd09ed59_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_b5ddc524dd09ed59
:: BG.Ptr BG.CInt
-> IO (BG.Ptr SDL_MouseID)
hs_bindgen_b5ddc524dd09ed59 :: Ptr CInt -> IO (Ptr SDL_MouseID)
hs_bindgen_b5ddc524dd09ed59 =
\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_b5ddc524dd09ed59_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_b5ddc524dd09ed59
foreign import ccall safe "hs_bindgen_5f9df08d34babce6"
hs_bindgen_5f9df08d34babce6_base
:: HsBindgen.Runtime.LibC.Word32
-> IO (BG.Ptr BG.Void)
hs_bindgen_5f9df08d34babce6
:: SDL_MouseID
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_5f9df08d34babce6 :: SDL_MouseID -> IO (PtrConst CChar)
hs_bindgen_5f9df08d34babce6 =
\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_5f9df08d34babce6_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_5f9df08d34babce6
foreign import ccall safe "hs_bindgen_d663c2bc45028535"
hs_bindgen_d663c2bc45028535_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_d663c2bc45028535 :: IO (BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window)
hs_bindgen_d663c2bc45028535 :: IO (Ptr SDL_Window)
hs_bindgen_d663c2bc45028535 =
(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_d663c2bc45028535_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_d663c2bc45028535
foreign import ccall safe "hs_bindgen_ea9a965df89a99a0"
hs_bindgen_ea9a965df89a99a0_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_ea9a965df89a99a0
:: BG.Ptr BG.CFloat
-> BG.Ptr BG.CFloat
-> IO SDL_MouseButtonFlags
hs_bindgen_ea9a965df89a99a0 :: Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
hs_bindgen_ea9a965df89a99a0 =
\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_ea9a965df89a99a0_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_ea9a965df89a99a0
foreign import ccall safe "hs_bindgen_10d90c46febd8700"
hs_bindgen_10d90c46febd8700_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_10d90c46febd8700
:: BG.Ptr BG.CFloat
-> BG.Ptr BG.CFloat
-> IO SDL_MouseButtonFlags
hs_bindgen_10d90c46febd8700 :: Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
hs_bindgen_10d90c46febd8700 =
\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_10d90c46febd8700_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_10d90c46febd8700
foreign import ccall safe "hs_bindgen_b0dfdde07e2521d8"
hs_bindgen_b0dfdde07e2521d8_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_b0dfdde07e2521d8
:: BG.Ptr BG.CFloat
-> BG.Ptr BG.CFloat
-> IO SDL_MouseButtonFlags
hs_bindgen_b0dfdde07e2521d8 :: Ptr CFloat -> Ptr CFloat -> IO SDL_MouseButtonFlags
hs_bindgen_b0dfdde07e2521d8 =
\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_b0dfdde07e2521d8_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_b0dfdde07e2521d8
foreign import ccall safe "hs_bindgen_0eb4d6e5e240c8df"
hs_bindgen_0eb4d6e5e240c8df_base
:: BG.Ptr BG.Void
-> BG.CFloat
-> BG.CFloat
-> IO ()
hs_bindgen_0eb4d6e5e240c8df
:: BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> BG.CFloat
-> BG.CFloat
-> IO ()
hs_bindgen_0eb4d6e5e240c8df :: Ptr SDL_Window -> CFloat -> CFloat -> IO ()
hs_bindgen_0eb4d6e5e240c8df =
\Ptr SDL_Window
x0 ->
\CFloat
x1 ->
\CFloat
x2 ->
Ptr Void -> CFloat -> CFloat -> IO ()
hs_bindgen_0eb4d6e5e240c8df_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_0eb4d6e5e240c8df
foreign import ccall safe "hs_bindgen_f03dc8593d130e68"
hs_bindgen_f03dc8593d130e68_base
:: BG.CFloat
-> BG.CFloat
-> IO BG.CBool
hs_bindgen_f03dc8593d130e68
:: BG.CFloat
-> BG.CFloat
-> IO BG.CBool
hs_bindgen_f03dc8593d130e68 :: CFloat -> CFloat -> IO CBool
hs_bindgen_f03dc8593d130e68 =
\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_f03dc8593d130e68_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_f03dc8593d130e68
foreign import ccall safe "hs_bindgen_c18f7adda4cf4b0b"
hs_bindgen_c18f7adda4cf4b0b_base
:: BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_c18f7adda4cf4b0b
:: SDL_MouseMotionTransformCallback
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_c18f7adda4cf4b0b :: SDL_MouseMotionTransformCallback -> Ptr Void -> IO CBool
hs_bindgen_c18f7adda4cf4b0b =
\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_c18f7adda4cf4b0b_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_c18f7adda4cf4b0b
foreign import ccall safe "hs_bindgen_ebfc8396f7c8dfc1"
hs_bindgen_ebfc8396f7c8dfc1_base
:: BG.Ptr BG.Void
-> BG.CBool
-> IO BG.CBool
hs_bindgen_ebfc8396f7c8dfc1
:: BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> BG.CBool
-> IO BG.CBool
hs_bindgen_ebfc8396f7c8dfc1 :: Ptr SDL_Window -> CBool -> IO CBool
hs_bindgen_ebfc8396f7c8dfc1 =
\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_ebfc8396f7c8dfc1_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_ebfc8396f7c8dfc1
foreign import ccall safe "hs_bindgen_c122318f49f37c28"
hs_bindgen_c122318f49f37c28_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_c122318f49f37c28
:: BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> IO BG.CBool
hs_bindgen_c122318f49f37c28 :: Ptr SDL_Window -> IO CBool
hs_bindgen_c122318f49f37c28 =
\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_c122318f49f37c28_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_c122318f49f37c28
foreign import ccall safe "hs_bindgen_ba2a652c2d22d4f9"
hs_bindgen_ba2a652c2d22d4f9_base
:: BG.CBool
-> IO BG.CBool
hs_bindgen_ba2a652c2d22d4f9
:: BG.CBool
-> IO BG.CBool
hs_bindgen_ba2a652c2d22d4f9 :: CBool -> IO CBool
hs_bindgen_ba2a652c2d22d4f9 =
\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_ba2a652c2d22d4f9_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_ba2a652c2d22d4f9
foreign import ccall safe "hs_bindgen_8aa3978a09ad477f"
hs_bindgen_8aa3978a09ad477f_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_8aa3978a09ad477f
:: 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_8aa3978a09ad477f :: PtrConst Uint8
-> PtrConst Uint8
-> CInt
-> CInt
-> CInt
-> CInt
-> IO (Ptr SDL_Cursor)
hs_bindgen_8aa3978a09ad477f =
\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_8aa3978a09ad477f_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_8aa3978a09ad477f
foreign import ccall safe "hs_bindgen_1af9c26d315c2409"
hs_bindgen_1af9c26d315c2409_base
:: BG.Ptr BG.Void
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_1af9c26d315c2409
:: BG.Ptr SDL3.Sys.Bindgen.Surface.SDL_Surface
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr SDL_Cursor)
hs_bindgen_1af9c26d315c2409 :: Ptr SDL_Surface -> CInt -> CInt -> IO (Ptr SDL_Cursor)
hs_bindgen_1af9c26d315c2409 =
\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_1af9c26d315c2409_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_1af9c26d315c2409
foreign import ccall safe "hs_bindgen_9a5f9b18f58c86ff"
hs_bindgen_9a5f9b18f58c86ff_base
:: BG.Ptr BG.Void
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_9a5f9b18f58c86ff
:: BG.Ptr SDL_CursorFrameInfo
-> BG.CInt
-> BG.CInt
-> BG.CInt
-> IO (BG.Ptr SDL_Cursor)
hs_bindgen_9a5f9b18f58c86ff :: Ptr SDL_CursorFrameInfo
-> CInt -> CInt -> CInt -> IO (Ptr SDL_Cursor)
hs_bindgen_9a5f9b18f58c86ff =
\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_9a5f9b18f58c86ff_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_9a5f9b18f58c86ff
foreign import ccall safe "hs_bindgen_9c5496f4b40d0ce6"
hs_bindgen_9c5496f4b40d0ce6_base
:: BG.CUInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_9c5496f4b40d0ce6
:: SDL_SystemCursor
-> IO (BG.Ptr SDL_Cursor)
hs_bindgen_9c5496f4b40d0ce6 :: SDL_SystemCursor -> IO (Ptr SDL_Cursor)
hs_bindgen_9c5496f4b40d0ce6 =
\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_9c5496f4b40d0ce6_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_9c5496f4b40d0ce6
foreign import ccall safe "hs_bindgen_3b39298a9bf3a79f"
hs_bindgen_3b39298a9bf3a79f_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_3b39298a9bf3a79f
:: BG.Ptr SDL_Cursor
-> IO BG.CBool
hs_bindgen_3b39298a9bf3a79f :: Ptr SDL_Cursor -> IO CBool
hs_bindgen_3b39298a9bf3a79f =
\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_3b39298a9bf3a79f_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_3b39298a9bf3a79f
foreign import ccall safe "hs_bindgen_0ad270dac1fad234"
hs_bindgen_0ad270dac1fad234_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_0ad270dac1fad234 :: IO (BG.Ptr SDL_Cursor)
hs_bindgen_0ad270dac1fad234 :: IO (Ptr SDL_Cursor)
hs_bindgen_0ad270dac1fad234 =
(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_0ad270dac1fad234_base
sDL_GetCursor :: IO (BG.Ptr SDL_Cursor)
sDL_GetCursor :: IO (Ptr SDL_Cursor)
sDL_GetCursor = IO (Ptr SDL_Cursor)
hs_bindgen_0ad270dac1fad234
foreign import ccall safe "hs_bindgen_eba07747bd0a11f2"
hs_bindgen_eba07747bd0a11f2_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_eba07747bd0a11f2 :: IO (BG.Ptr SDL_Cursor)
hs_bindgen_eba07747bd0a11f2 :: IO (Ptr SDL_Cursor)
hs_bindgen_eba07747bd0a11f2 =
(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_eba07747bd0a11f2_base
sDL_GetDefaultCursor :: IO (BG.Ptr SDL_Cursor)
sDL_GetDefaultCursor :: IO (Ptr SDL_Cursor)
sDL_GetDefaultCursor = IO (Ptr SDL_Cursor)
hs_bindgen_eba07747bd0a11f2
foreign import ccall safe "hs_bindgen_c88c0b977a69ed2a"
hs_bindgen_c88c0b977a69ed2a_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_c88c0b977a69ed2a
:: BG.Ptr SDL_Cursor
-> IO ()
hs_bindgen_c88c0b977a69ed2a :: Ptr SDL_Cursor -> IO ()
hs_bindgen_c88c0b977a69ed2a =
\Ptr SDL_Cursor
x0 ->
Ptr Void -> IO ()
hs_bindgen_c88c0b977a69ed2a_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_c88c0b977a69ed2a
foreign import ccall safe "hs_bindgen_2dbfefec61405524"
hs_bindgen_2dbfefec61405524_base
:: IO BG.CBool
hs_bindgen_2dbfefec61405524 :: IO BG.CBool
hs_bindgen_2dbfefec61405524 :: IO CBool
hs_bindgen_2dbfefec61405524 =
(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_2dbfefec61405524_base
sDL_ShowCursor :: IO BG.CBool
sDL_ShowCursor :: IO CBool
sDL_ShowCursor = IO CBool
hs_bindgen_2dbfefec61405524
foreign import ccall safe "hs_bindgen_40414e63ec7f7a75"
hs_bindgen_40414e63ec7f7a75_base
:: IO BG.CBool
hs_bindgen_40414e63ec7f7a75 :: IO BG.CBool
hs_bindgen_40414e63ec7f7a75 :: IO CBool
hs_bindgen_40414e63ec7f7a75 =
(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_40414e63ec7f7a75_base
sDL_HideCursor :: IO BG.CBool
sDL_HideCursor :: IO CBool
sDL_HideCursor = IO CBool
hs_bindgen_40414e63ec7f7a75
foreign import ccall safe "hs_bindgen_3414c4fe925fe000"
hs_bindgen_3414c4fe925fe000_base
:: IO BG.CBool
hs_bindgen_3414c4fe925fe000 :: IO BG.CBool
hs_bindgen_3414c4fe925fe000 :: IO CBool
hs_bindgen_3414c4fe925fe000 =
(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_3414c4fe925fe000_base
sDL_CursorVisible :: IO BG.CBool
sDL_CursorVisible :: IO CBool
sDL_CursorVisible = IO CBool
hs_bindgen_3414c4fe925fe000