{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Events.Unsafe (
SDL3.Sys.Bindgen.Events.Unsafe.sDL_PumpEvents,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_PeepEvents,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_HasEvent,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_HasEvents,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_FlushEvent,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_FlushEvents,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_PollEvent,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_WaitEvent,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_WaitEventTimeout,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_PushEvent,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_SetEventFilter,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_GetEventFilter,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_AddEventWatch,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_RemoveEventWatch,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_FilterEvents,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_SetEventEnabled,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_EventEnabled,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_RegisterEvents,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_GetWindowFromEvent,
SDL3.Sys.Bindgen.Events.Unsafe.sDL_GetEventDescription,
)
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.Events
import SDL3.Sys.Bindgen.Stdinc 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_events.h>"
, "void hs_bindgen_f4dc61bd10a4e23c (void)"
, "{"
, " (SDL_PumpEvents)();"
, "}"
, "signed int hs_bindgen_8b3ec00d9b882e6d ("
, " SDL_Event *arg1,"
, " signed int arg2,"
, " SDL_EventAction arg3,"
, " Uint32 arg4,"
, " Uint32 arg5"
, ")"
, "{"
, " return (SDL_PeepEvents)(arg1, arg2, arg3, arg4, arg5);"
, "}"
, "_Bool hs_bindgen_96f81eae40ffdcd6 ("
, " Uint32 arg1"
, ")"
, "{"
, " return (SDL_HasEvent)(arg1);"
, "}"
, "_Bool hs_bindgen_1f3c013ef4ec1fa8 ("
, " Uint32 arg1,"
, " Uint32 arg2"
, ")"
, "{"
, " return (SDL_HasEvents)(arg1, arg2);"
, "}"
, "void hs_bindgen_fd83204a82d42e64 ("
, " Uint32 arg1"
, ")"
, "{"
, " (SDL_FlushEvent)(arg1);"
, "}"
, "void hs_bindgen_40cd8ce8fa388aa3 ("
, " Uint32 arg1,"
, " Uint32 arg2"
, ")"
, "{"
, " (SDL_FlushEvents)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_74af0be08528ef8b ("
, " SDL_Event *arg1"
, ")"
, "{"
, " return (SDL_PollEvent)(arg1);"
, "}"
, "_Bool hs_bindgen_26650dda1162c384 ("
, " SDL_Event *arg1"
, ")"
, "{"
, " return (SDL_WaitEvent)(arg1);"
, "}"
, "_Bool hs_bindgen_8361c3f62bddca27 ("
, " SDL_Event *arg1,"
, " Sint32 arg2"
, ")"
, "{"
, " return (SDL_WaitEventTimeout)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_a3e2f1b85c30cc66 ("
, " SDL_Event *arg1"
, ")"
, "{"
, " return (SDL_PushEvent)(arg1);"
, "}"
, "void hs_bindgen_0f7b893d64f3610c ("
, " SDL_EventFilter arg1,"
, " void *arg2"
, ")"
, "{"
, " (SDL_SetEventFilter)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_610e4665d1826427 ("
, " SDL_EventFilter *arg1,"
, " void **arg2"
, ")"
, "{"
, " return (SDL_GetEventFilter)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_33f96eba42fcb36e ("
, " SDL_EventFilter arg1,"
, " void *arg2"
, ")"
, "{"
, " return (SDL_AddEventWatch)(arg1, arg2);"
, "}"
, "void hs_bindgen_7be0009aedee08c7 ("
, " SDL_EventFilter arg1,"
, " void *arg2"
, ")"
, "{"
, " (SDL_RemoveEventWatch)(arg1, arg2);"
, "}"
, "void hs_bindgen_388ecd1fb86ecfc7 ("
, " SDL_EventFilter arg1,"
, " void *arg2"
, ")"
, "{"
, " (SDL_FilterEvents)(arg1, arg2);"
, "}"
, "void hs_bindgen_1e0e42e966f91945 ("
, " Uint32 arg1,"
, " _Bool arg2"
, ")"
, "{"
, " (SDL_SetEventEnabled)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_448bb1465977146b ("
, " Uint32 arg1"
, ")"
, "{"
, " return (SDL_EventEnabled)(arg1);"
, "}"
, "Uint32 hs_bindgen_f5d1c83cd76363fe ("
, " signed int arg1"
, ")"
, "{"
, " return (SDL_RegisterEvents)(arg1);"
, "}"
, "SDL_Window *hs_bindgen_ad9a414b46378fd2 ("
, " SDL_Event const *arg1"
, ")"
, "{"
, " return (SDL_GetWindowFromEvent)(arg1);"
, "}"
, "#include <SDL3/SDL_version.h>"
, "#include <SDL3/SDL_error.h>"
, "signed int hs_bindgen_ff6611a2bb261892 ("
, " SDL_Event const *arg1,"
, " char *arg2,"
, " signed int arg3"
, ")"
, "{"
, "#if SDL_VERSION_ATLEAST(3, 4, 0)"
, " return (SDL_GetEventDescription)(arg1, arg2, arg3);"
, "#else"
, " (void)arg1; (void)arg2; (void)arg3; SDL_SetError(\"SDL_GetEventDescription requires SDL >= 3.4.0\"); return 0;"
, "#endif"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_f4dc61bd10a4e23c"
hs_bindgen_f4dc61bd10a4e23c_base
:: IO ()
hs_bindgen_f4dc61bd10a4e23c :: IO ()
hs_bindgen_f4dc61bd10a4e23c :: IO ()
hs_bindgen_f4dc61bd10a4e23c =
IO ()
hs_bindgen_f4dc61bd10a4e23c_base
sDL_PumpEvents :: IO ()
sDL_PumpEvents :: IO ()
sDL_PumpEvents = IO ()
hs_bindgen_f4dc61bd10a4e23c
foreign import ccall unsafe "hs_bindgen_8b3ec00d9b882e6d"
hs_bindgen_8b3ec00d9b882e6d_base
:: BG.Ptr BG.Void
-> BG.CInt
-> BG.CUInt
-> HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> IO BG.CInt
hs_bindgen_8b3ec00d9b882e6d
:: BG.Ptr SDL_Event
-> BG.CInt
-> SDL_EventAction
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CInt
hs_bindgen_8b3ec00d9b882e6d :: Ptr SDL_Event
-> CInt -> SDL_EventAction -> Uint32 -> Uint32 -> IO CInt
hs_bindgen_8b3ec00d9b882e6d =
\Ptr SDL_Event
x0 ->
\CInt
x1 ->
\SDL_EventAction
x2 ->
\Uint32
x3 ->
\Uint32
x4 ->
(CInt -> CInt) -> IO CInt -> IO CInt
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap
CInt -> CInt
FFIType CInt -> CInt
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
( Ptr Void -> CInt -> CUInt -> Word32 -> Word32 -> IO CInt
hs_bindgen_8b3ec00d9b882e6d_base
(Ptr SDL_Event -> FFIType (Ptr SDL_Event)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Event
x0)
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x1)
(SDL_EventAction -> FFIType SDL_EventAction
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_EventAction
x2)
(Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x3)
(Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x4)
)
sDL_PeepEvents
:: BG.Ptr SDL_Event
-> BG.CInt
-> SDL_EventAction
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CInt
sDL_PeepEvents :: Ptr SDL_Event
-> CInt -> SDL_EventAction -> Uint32 -> Uint32 -> IO CInt
sDL_PeepEvents = Ptr SDL_Event
-> CInt -> SDL_EventAction -> Uint32 -> Uint32 -> IO CInt
hs_bindgen_8b3ec00d9b882e6d
foreign import ccall unsafe "hs_bindgen_96f81eae40ffdcd6"
hs_bindgen_96f81eae40ffdcd6_base
:: HsBindgen.Runtime.LibC.Word32
-> IO BG.CBool
hs_bindgen_96f81eae40ffdcd6
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
hs_bindgen_96f81eae40ffdcd6 :: Uint32 -> IO CBool
hs_bindgen_96f81eae40ffdcd6 =
\Uint32
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 (Word32 -> IO CBool
hs_bindgen_96f81eae40ffdcd6_base (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x0))
sDL_HasEvent
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
sDL_HasEvent :: Uint32 -> IO CBool
sDL_HasEvent = Uint32 -> IO CBool
hs_bindgen_96f81eae40ffdcd6
foreign import ccall unsafe "hs_bindgen_1f3c013ef4ec1fa8"
hs_bindgen_1f3c013ef4ec1fa8_base
:: HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> IO BG.CBool
hs_bindgen_1f3c013ef4ec1fa8
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
hs_bindgen_1f3c013ef4ec1fa8 :: Uint32 -> Uint32 -> IO CBool
hs_bindgen_1f3c013ef4ec1fa8 =
\Uint32
x0 ->
\Uint32
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 (Word32 -> Word32 -> IO CBool
hs_bindgen_1f3c013ef4ec1fa8_base (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x0) (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x1))
sDL_HasEvents
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
sDL_HasEvents :: Uint32 -> Uint32 -> IO CBool
sDL_HasEvents = Uint32 -> Uint32 -> IO CBool
hs_bindgen_1f3c013ef4ec1fa8
foreign import ccall unsafe "hs_bindgen_fd83204a82d42e64"
hs_bindgen_fd83204a82d42e64_base
:: HsBindgen.Runtime.LibC.Word32
-> IO ()
hs_bindgen_fd83204a82d42e64
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO ()
hs_bindgen_fd83204a82d42e64 :: Uint32 -> IO ()
hs_bindgen_fd83204a82d42e64 =
\Uint32
x0 ->
Word32 -> IO ()
hs_bindgen_fd83204a82d42e64_base (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x0)
sDL_FlushEvent
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO ()
sDL_FlushEvent :: Uint32 -> IO ()
sDL_FlushEvent = Uint32 -> IO ()
hs_bindgen_fd83204a82d42e64
foreign import ccall unsafe "hs_bindgen_40cd8ce8fa388aa3"
hs_bindgen_40cd8ce8fa388aa3_base
:: HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> IO ()
hs_bindgen_40cd8ce8fa388aa3
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO ()
hs_bindgen_40cd8ce8fa388aa3 :: Uint32 -> Uint32 -> IO ()
hs_bindgen_40cd8ce8fa388aa3 =
\Uint32
x0 ->
\Uint32
x1 ->
Word32 -> Word32 -> IO ()
hs_bindgen_40cd8ce8fa388aa3_base (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x0) (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x1)
sDL_FlushEvents
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO ()
sDL_FlushEvents :: Uint32 -> Uint32 -> IO ()
sDL_FlushEvents = Uint32 -> Uint32 -> IO ()
hs_bindgen_40cd8ce8fa388aa3
foreign import ccall unsafe "hs_bindgen_74af0be08528ef8b"
hs_bindgen_74af0be08528ef8b_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_74af0be08528ef8b
:: BG.Ptr SDL_Event
-> IO BG.CBool
hs_bindgen_74af0be08528ef8b :: Ptr SDL_Event -> IO CBool
hs_bindgen_74af0be08528ef8b =
\Ptr SDL_Event
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_74af0be08528ef8b_base (Ptr SDL_Event -> FFIType (Ptr SDL_Event)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Event
x0))
sDL_PollEvent
:: BG.Ptr SDL_Event
-> IO BG.CBool
sDL_PollEvent :: Ptr SDL_Event -> IO CBool
sDL_PollEvent = Ptr SDL_Event -> IO CBool
hs_bindgen_74af0be08528ef8b
foreign import ccall unsafe "hs_bindgen_26650dda1162c384"
hs_bindgen_26650dda1162c384_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_26650dda1162c384
:: BG.Ptr SDL_Event
-> IO BG.CBool
hs_bindgen_26650dda1162c384 :: Ptr SDL_Event -> IO CBool
hs_bindgen_26650dda1162c384 =
\Ptr SDL_Event
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_26650dda1162c384_base (Ptr SDL_Event -> FFIType (Ptr SDL_Event)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Event
x0))
sDL_WaitEvent
:: BG.Ptr SDL_Event
-> IO BG.CBool
sDL_WaitEvent :: Ptr SDL_Event -> IO CBool
sDL_WaitEvent = Ptr SDL_Event -> IO CBool
hs_bindgen_26650dda1162c384
foreign import ccall unsafe "hs_bindgen_8361c3f62bddca27"
hs_bindgen_8361c3f62bddca27_base
:: BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int32
-> IO BG.CBool
hs_bindgen_8361c3f62bddca27
:: BG.Ptr SDL_Event
-> SDL3.Sys.Bindgen.Stdinc.Sint32
-> IO BG.CBool
hs_bindgen_8361c3f62bddca27 :: Ptr SDL_Event -> Sint32 -> IO CBool
hs_bindgen_8361c3f62bddca27 =
\Ptr SDL_Event
x0 ->
\Sint32
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 -> Int32 -> IO CBool
hs_bindgen_8361c3f62bddca27_base (Ptr SDL_Event -> FFIType (Ptr SDL_Event)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Event
x0) (Sint32 -> FFIType Sint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Sint32
x1))
sDL_WaitEventTimeout
:: BG.Ptr SDL_Event
-> SDL3.Sys.Bindgen.Stdinc.Sint32
-> IO BG.CBool
sDL_WaitEventTimeout :: Ptr SDL_Event -> Sint32 -> IO CBool
sDL_WaitEventTimeout = Ptr SDL_Event -> Sint32 -> IO CBool
hs_bindgen_8361c3f62bddca27
foreign import ccall unsafe "hs_bindgen_a3e2f1b85c30cc66"
hs_bindgen_a3e2f1b85c30cc66_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_a3e2f1b85c30cc66
:: BG.Ptr SDL_Event
-> IO BG.CBool
hs_bindgen_a3e2f1b85c30cc66 :: Ptr SDL_Event -> IO CBool
hs_bindgen_a3e2f1b85c30cc66 =
\Ptr SDL_Event
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_a3e2f1b85c30cc66_base (Ptr SDL_Event -> FFIType (Ptr SDL_Event)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Event
x0))
sDL_PushEvent
:: BG.Ptr SDL_Event
-> IO BG.CBool
sDL_PushEvent :: Ptr SDL_Event -> IO CBool
sDL_PushEvent = Ptr SDL_Event -> IO CBool
hs_bindgen_a3e2f1b85c30cc66
foreign import ccall unsafe "hs_bindgen_0f7b893d64f3610c"
hs_bindgen_0f7b893d64f3610c_base
:: BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_0f7b893d64f3610c
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_0f7b893d64f3610c :: SDL_EventFilter -> Ptr Void -> IO ()
hs_bindgen_0f7b893d64f3610c =
\SDL_EventFilter
x0 ->
\Ptr Void
x1 ->
FunPtr Void -> Ptr Void -> IO ()
hs_bindgen_0f7b893d64f3610c_base (SDL_EventFilter -> FFIType SDL_EventFilter
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_EventFilter
x0) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x1)
sDL_SetEventFilter
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO ()
sDL_SetEventFilter :: SDL_EventFilter -> Ptr Void -> IO ()
sDL_SetEventFilter = SDL_EventFilter -> Ptr Void -> IO ()
hs_bindgen_0f7b893d64f3610c
foreign import ccall unsafe "hs_bindgen_610e4665d1826427"
hs_bindgen_610e4665d1826427_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_610e4665d1826427
:: BG.Ptr SDL_EventFilter
-> BG.Ptr (BG.Ptr BG.Void)
-> IO BG.CBool
hs_bindgen_610e4665d1826427 :: Ptr SDL_EventFilter -> Ptr (Ptr Void) -> IO CBool
hs_bindgen_610e4665d1826427 =
\Ptr SDL_EventFilter
x0 ->
\Ptr (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 (Ptr Void -> Ptr Void -> IO CBool
hs_bindgen_610e4665d1826427_base (Ptr SDL_EventFilter -> FFIType (Ptr SDL_EventFilter)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_EventFilter
x0) (Ptr (Ptr Void) -> FFIType (Ptr (Ptr Void))
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr (Ptr Void)
x1))
sDL_GetEventFilter
:: BG.Ptr SDL_EventFilter
-> BG.Ptr (BG.Ptr BG.Void)
-> IO BG.CBool
sDL_GetEventFilter :: Ptr SDL_EventFilter -> Ptr (Ptr Void) -> IO CBool
sDL_GetEventFilter = Ptr SDL_EventFilter -> Ptr (Ptr Void) -> IO CBool
hs_bindgen_610e4665d1826427
foreign import ccall unsafe "hs_bindgen_33f96eba42fcb36e"
hs_bindgen_33f96eba42fcb36e_base
:: BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_33f96eba42fcb36e
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_33f96eba42fcb36e :: SDL_EventFilter -> Ptr Void -> IO CBool
hs_bindgen_33f96eba42fcb36e =
\SDL_EventFilter
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_33f96eba42fcb36e_base (SDL_EventFilter -> FFIType SDL_EventFilter
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_EventFilter
x0) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x1))
sDL_AddEventWatch
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO BG.CBool
sDL_AddEventWatch :: SDL_EventFilter -> Ptr Void -> IO CBool
sDL_AddEventWatch = SDL_EventFilter -> Ptr Void -> IO CBool
hs_bindgen_33f96eba42fcb36e
foreign import ccall unsafe "hs_bindgen_7be0009aedee08c7"
hs_bindgen_7be0009aedee08c7_base
:: BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_7be0009aedee08c7
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_7be0009aedee08c7 :: SDL_EventFilter -> Ptr Void -> IO ()
hs_bindgen_7be0009aedee08c7 =
\SDL_EventFilter
x0 ->
\Ptr Void
x1 ->
FunPtr Void -> Ptr Void -> IO ()
hs_bindgen_7be0009aedee08c7_base (SDL_EventFilter -> FFIType SDL_EventFilter
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_EventFilter
x0) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x1)
sDL_RemoveEventWatch
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO ()
sDL_RemoveEventWatch :: SDL_EventFilter -> Ptr Void -> IO ()
sDL_RemoveEventWatch = SDL_EventFilter -> Ptr Void -> IO ()
hs_bindgen_7be0009aedee08c7
foreign import ccall unsafe "hs_bindgen_388ecd1fb86ecfc7"
hs_bindgen_388ecd1fb86ecfc7_base
:: BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_388ecd1fb86ecfc7
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_388ecd1fb86ecfc7 :: SDL_EventFilter -> Ptr Void -> IO ()
hs_bindgen_388ecd1fb86ecfc7 =
\SDL_EventFilter
x0 ->
\Ptr Void
x1 ->
FunPtr Void -> Ptr Void -> IO ()
hs_bindgen_388ecd1fb86ecfc7_base (SDL_EventFilter -> FFIType SDL_EventFilter
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_EventFilter
x0) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x1)
sDL_FilterEvents
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO ()
sDL_FilterEvents :: SDL_EventFilter -> Ptr Void -> IO ()
sDL_FilterEvents = SDL_EventFilter -> Ptr Void -> IO ()
hs_bindgen_388ecd1fb86ecfc7
foreign import ccall unsafe "hs_bindgen_1e0e42e966f91945"
hs_bindgen_1e0e42e966f91945_base
:: HsBindgen.Runtime.LibC.Word32
-> BG.CBool
-> IO ()
hs_bindgen_1e0e42e966f91945
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.CBool
-> IO ()
hs_bindgen_1e0e42e966f91945 :: Uint32 -> CBool -> IO ()
hs_bindgen_1e0e42e966f91945 =
\Uint32
x0 ->
\CBool
x1 ->
Word32 -> CBool -> IO ()
hs_bindgen_1e0e42e966f91945_base (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x0) (CBool -> FFIType CBool
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CBool
x1)
sDL_SetEventEnabled
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.CBool
-> IO ()
sDL_SetEventEnabled :: Uint32 -> CBool -> IO ()
sDL_SetEventEnabled = Uint32 -> CBool -> IO ()
hs_bindgen_1e0e42e966f91945
foreign import ccall unsafe "hs_bindgen_448bb1465977146b"
hs_bindgen_448bb1465977146b_base
:: HsBindgen.Runtime.LibC.Word32
-> IO BG.CBool
hs_bindgen_448bb1465977146b
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
hs_bindgen_448bb1465977146b :: Uint32 -> IO CBool
hs_bindgen_448bb1465977146b =
\Uint32
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 (Word32 -> IO CBool
hs_bindgen_448bb1465977146b_base (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x0))
sDL_EventEnabled
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
sDL_EventEnabled :: Uint32 -> IO CBool
sDL_EventEnabled = Uint32 -> IO CBool
hs_bindgen_448bb1465977146b
foreign import ccall unsafe "hs_bindgen_f5d1c83cd76363fe"
hs_bindgen_f5d1c83cd76363fe_base
:: BG.CInt
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_f5d1c83cd76363fe
:: BG.CInt
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_f5d1c83cd76363fe :: CInt -> IO Uint32
hs_bindgen_f5d1c83cd76363fe =
\CInt
x0 ->
(Word32 -> Uint32) -> IO Word32 -> IO Uint32
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Word32 -> Uint32
FFIType Uint32 -> Uint32
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (CInt -> IO Word32
hs_bindgen_f5d1c83cd76363fe_base (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x0))
sDL_RegisterEvents
:: BG.CInt
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
sDL_RegisterEvents :: CInt -> IO Uint32
sDL_RegisterEvents = CInt -> IO Uint32
hs_bindgen_f5d1c83cd76363fe
foreign import ccall unsafe "hs_bindgen_ad9a414b46378fd2"
hs_bindgen_ad9a414b46378fd2_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_ad9a414b46378fd2
:: PtrConst.PtrConst SDL_Event
-> IO (BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window)
hs_bindgen_ad9a414b46378fd2 :: PtrConst SDL_Event -> IO (Ptr SDL_Window)
hs_bindgen_ad9a414b46378fd2 =
\PtrConst SDL_Event
x0 ->
(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 (Ptr Void -> IO (Ptr Void)
hs_bindgen_ad9a414b46378fd2_base (PtrConst SDL_Event -> FFIType (PtrConst SDL_Event)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_Event
x0))
sDL_GetWindowFromEvent
:: PtrConst.PtrConst SDL_Event
-> IO (BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window)
sDL_GetWindowFromEvent :: PtrConst SDL_Event -> IO (Ptr SDL_Window)
sDL_GetWindowFromEvent = PtrConst SDL_Event -> IO (Ptr SDL_Window)
hs_bindgen_ad9a414b46378fd2
foreign import ccall unsafe "hs_bindgen_ff6611a2bb261892"
hs_bindgen_ff6611a2bb261892_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.CInt
-> IO BG.CInt
hs_bindgen_ff6611a2bb261892
:: PtrConst.PtrConst SDL_Event
-> BG.Ptr BG.CChar
-> BG.CInt
-> IO BG.CInt
hs_bindgen_ff6611a2bb261892 :: PtrConst SDL_Event -> Ptr CChar -> CInt -> IO CInt
hs_bindgen_ff6611a2bb261892 =
\PtrConst SDL_Event
x0 ->
\Ptr CChar
x1 ->
\CInt
x2 ->
(CInt -> CInt) -> IO CInt -> IO CInt
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap
CInt -> CInt
FFIType CInt -> CInt
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
(Ptr Void -> Ptr Void -> CInt -> IO CInt
hs_bindgen_ff6611a2bb261892_base (PtrConst SDL_Event -> FFIType (PtrConst SDL_Event)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_Event
x0) (Ptr CChar -> FFIType (Ptr CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CChar
x1) (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x2))
sDL_GetEventDescription
:: PtrConst.PtrConst SDL_Event
-> BG.Ptr BG.CChar
-> BG.CInt
-> IO BG.CInt
sDL_GetEventDescription :: PtrConst SDL_Event -> Ptr CChar -> CInt -> IO CInt
sDL_GetEventDescription = PtrConst SDL_Event -> Ptr CChar -> CInt -> IO CInt
hs_bindgen_ff6611a2bb261892