{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Events.Safe (
SDL3.Sys.Bindgen.Events.Safe.sDL_PumpEvents,
SDL3.Sys.Bindgen.Events.Safe.sDL_PeepEvents,
SDL3.Sys.Bindgen.Events.Safe.sDL_HasEvent,
SDL3.Sys.Bindgen.Events.Safe.sDL_HasEvents,
SDL3.Sys.Bindgen.Events.Safe.sDL_FlushEvent,
SDL3.Sys.Bindgen.Events.Safe.sDL_FlushEvents,
SDL3.Sys.Bindgen.Events.Safe.sDL_PollEvent,
SDL3.Sys.Bindgen.Events.Safe.sDL_WaitEvent,
SDL3.Sys.Bindgen.Events.Safe.sDL_WaitEventTimeout,
SDL3.Sys.Bindgen.Events.Safe.sDL_PushEvent,
SDL3.Sys.Bindgen.Events.Safe.sDL_SetEventFilter,
SDL3.Sys.Bindgen.Events.Safe.sDL_GetEventFilter,
SDL3.Sys.Bindgen.Events.Safe.sDL_AddEventWatch,
SDL3.Sys.Bindgen.Events.Safe.sDL_RemoveEventWatch,
SDL3.Sys.Bindgen.Events.Safe.sDL_FilterEvents,
SDL3.Sys.Bindgen.Events.Safe.sDL_SetEventEnabled,
SDL3.Sys.Bindgen.Events.Safe.sDL_EventEnabled,
SDL3.Sys.Bindgen.Events.Safe.sDL_RegisterEvents,
SDL3.Sys.Bindgen.Events.Safe.sDL_GetWindowFromEvent,
SDL3.Sys.Bindgen.Events.Safe.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_1f67d12e30b7c737 (void)"
, "{"
, " (SDL_PumpEvents)();"
, "}"
, "signed int hs_bindgen_955ad135478289d8 ("
, " SDL_Event *arg1,"
, " signed int arg2,"
, " SDL_EventAction arg3,"
, " Uint32 arg4,"
, " Uint32 arg5"
, ")"
, "{"
, " return (SDL_PeepEvents)(arg1, arg2, arg3, arg4, arg5);"
, "}"
, "_Bool hs_bindgen_97c2d6376377c17b ("
, " Uint32 arg1"
, ")"
, "{"
, " return (SDL_HasEvent)(arg1);"
, "}"
, "_Bool hs_bindgen_313622652a8473b1 ("
, " Uint32 arg1,"
, " Uint32 arg2"
, ")"
, "{"
, " return (SDL_HasEvents)(arg1, arg2);"
, "}"
, "void hs_bindgen_2d03a2b249bf7669 ("
, " Uint32 arg1"
, ")"
, "{"
, " (SDL_FlushEvent)(arg1);"
, "}"
, "void hs_bindgen_445ea0272a2d7d08 ("
, " Uint32 arg1,"
, " Uint32 arg2"
, ")"
, "{"
, " (SDL_FlushEvents)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_ceef91a4b9f5e02b ("
, " SDL_Event *arg1"
, ")"
, "{"
, " return (SDL_PollEvent)(arg1);"
, "}"
, "_Bool hs_bindgen_23e78ed0fb51a6da ("
, " SDL_Event *arg1"
, ")"
, "{"
, " return (SDL_WaitEvent)(arg1);"
, "}"
, "_Bool hs_bindgen_556eff19f5f71f6a ("
, " SDL_Event *arg1,"
, " Sint32 arg2"
, ")"
, "{"
, " return (SDL_WaitEventTimeout)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_b43b72b75f8fc0a4 ("
, " SDL_Event *arg1"
, ")"
, "{"
, " return (SDL_PushEvent)(arg1);"
, "}"
, "void hs_bindgen_2af28699d7398805 ("
, " SDL_EventFilter arg1,"
, " void *arg2"
, ")"
, "{"
, " (SDL_SetEventFilter)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_be8f273c9471fe63 ("
, " SDL_EventFilter *arg1,"
, " void **arg2"
, ")"
, "{"
, " return (SDL_GetEventFilter)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_1032b9b1e1b3559e ("
, " SDL_EventFilter arg1,"
, " void *arg2"
, ")"
, "{"
, " return (SDL_AddEventWatch)(arg1, arg2);"
, "}"
, "void hs_bindgen_3dfeb3d0c0d67825 ("
, " SDL_EventFilter arg1,"
, " void *arg2"
, ")"
, "{"
, " (SDL_RemoveEventWatch)(arg1, arg2);"
, "}"
, "void hs_bindgen_6c8e2afc32ccc02a ("
, " SDL_EventFilter arg1,"
, " void *arg2"
, ")"
, "{"
, " (SDL_FilterEvents)(arg1, arg2);"
, "}"
, "void hs_bindgen_980b7ed1ad20c98e ("
, " Uint32 arg1,"
, " _Bool arg2"
, ")"
, "{"
, " (SDL_SetEventEnabled)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_581f5ed4b389f9ad ("
, " Uint32 arg1"
, ")"
, "{"
, " return (SDL_EventEnabled)(arg1);"
, "}"
, "Uint32 hs_bindgen_68df500d3720ae65 ("
, " signed int arg1"
, ")"
, "{"
, " return (SDL_RegisterEvents)(arg1);"
, "}"
, "SDL_Window *hs_bindgen_bf32d25772bf7533 ("
, " SDL_Event const *arg1"
, ")"
, "{"
, " return (SDL_GetWindowFromEvent)(arg1);"
, "}"
, "#include <SDL3/SDL_version.h>"
, "#include <SDL3/SDL_error.h>"
, "signed int hs_bindgen_791dc84efb7c9255 ("
, " 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 safe "hs_bindgen_1f67d12e30b7c737"
hs_bindgen_1f67d12e30b7c737_base
:: IO ()
hs_bindgen_1f67d12e30b7c737 :: IO ()
hs_bindgen_1f67d12e30b7c737 :: IO ()
hs_bindgen_1f67d12e30b7c737 =
IO ()
hs_bindgen_1f67d12e30b7c737_base
sDL_PumpEvents :: IO ()
sDL_PumpEvents :: IO ()
sDL_PumpEvents = IO ()
hs_bindgen_1f67d12e30b7c737
foreign import ccall safe "hs_bindgen_955ad135478289d8"
hs_bindgen_955ad135478289d8_base
:: BG.Ptr BG.Void
-> BG.CInt
-> BG.CUInt
-> HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> IO BG.CInt
hs_bindgen_955ad135478289d8
:: BG.Ptr SDL_Event
-> BG.CInt
-> SDL_EventAction
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CInt
hs_bindgen_955ad135478289d8 :: Ptr SDL_Event
-> CInt -> SDL_EventAction -> Uint32 -> Uint32 -> IO CInt
hs_bindgen_955ad135478289d8 =
\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_955ad135478289d8_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_955ad135478289d8
foreign import ccall safe "hs_bindgen_97c2d6376377c17b"
hs_bindgen_97c2d6376377c17b_base
:: HsBindgen.Runtime.LibC.Word32
-> IO BG.CBool
hs_bindgen_97c2d6376377c17b
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
hs_bindgen_97c2d6376377c17b :: Uint32 -> IO CBool
hs_bindgen_97c2d6376377c17b =
\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_97c2d6376377c17b_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_97c2d6376377c17b
foreign import ccall safe "hs_bindgen_313622652a8473b1"
hs_bindgen_313622652a8473b1_base
:: HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> IO BG.CBool
hs_bindgen_313622652a8473b1
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
hs_bindgen_313622652a8473b1 :: Uint32 -> Uint32 -> IO CBool
hs_bindgen_313622652a8473b1 =
\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_313622652a8473b1_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_313622652a8473b1
foreign import ccall safe "hs_bindgen_2d03a2b249bf7669"
hs_bindgen_2d03a2b249bf7669_base
:: HsBindgen.Runtime.LibC.Word32
-> IO ()
hs_bindgen_2d03a2b249bf7669
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO ()
hs_bindgen_2d03a2b249bf7669 :: Uint32 -> IO ()
hs_bindgen_2d03a2b249bf7669 =
\Uint32
x0 ->
Word32 -> IO ()
hs_bindgen_2d03a2b249bf7669_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_2d03a2b249bf7669
foreign import ccall safe "hs_bindgen_445ea0272a2d7d08"
hs_bindgen_445ea0272a2d7d08_base
:: HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> IO ()
hs_bindgen_445ea0272a2d7d08
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO ()
hs_bindgen_445ea0272a2d7d08 :: Uint32 -> Uint32 -> IO ()
hs_bindgen_445ea0272a2d7d08 =
\Uint32
x0 ->
\Uint32
x1 ->
Word32 -> Word32 -> IO ()
hs_bindgen_445ea0272a2d7d08_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_445ea0272a2d7d08
foreign import ccall safe "hs_bindgen_ceef91a4b9f5e02b"
hs_bindgen_ceef91a4b9f5e02b_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_ceef91a4b9f5e02b
:: BG.Ptr SDL_Event
-> IO BG.CBool
hs_bindgen_ceef91a4b9f5e02b :: Ptr SDL_Event -> IO CBool
hs_bindgen_ceef91a4b9f5e02b =
\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_ceef91a4b9f5e02b_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_ceef91a4b9f5e02b
foreign import ccall safe "hs_bindgen_23e78ed0fb51a6da"
hs_bindgen_23e78ed0fb51a6da_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_23e78ed0fb51a6da
:: BG.Ptr SDL_Event
-> IO BG.CBool
hs_bindgen_23e78ed0fb51a6da :: Ptr SDL_Event -> IO CBool
hs_bindgen_23e78ed0fb51a6da =
\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_23e78ed0fb51a6da_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_23e78ed0fb51a6da
foreign import ccall safe "hs_bindgen_556eff19f5f71f6a"
hs_bindgen_556eff19f5f71f6a_base
:: BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int32
-> IO BG.CBool
hs_bindgen_556eff19f5f71f6a
:: BG.Ptr SDL_Event
-> SDL3.Sys.Bindgen.Stdinc.Sint32
-> IO BG.CBool
hs_bindgen_556eff19f5f71f6a :: Ptr SDL_Event -> Sint32 -> IO CBool
hs_bindgen_556eff19f5f71f6a =
\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_556eff19f5f71f6a_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_556eff19f5f71f6a
foreign import ccall safe "hs_bindgen_b43b72b75f8fc0a4"
hs_bindgen_b43b72b75f8fc0a4_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_b43b72b75f8fc0a4
:: BG.Ptr SDL_Event
-> IO BG.CBool
hs_bindgen_b43b72b75f8fc0a4 :: Ptr SDL_Event -> IO CBool
hs_bindgen_b43b72b75f8fc0a4 =
\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_b43b72b75f8fc0a4_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_b43b72b75f8fc0a4
foreign import ccall safe "hs_bindgen_2af28699d7398805"
hs_bindgen_2af28699d7398805_base
:: BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_2af28699d7398805
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_2af28699d7398805 :: SDL_EventFilter -> Ptr Void -> IO ()
hs_bindgen_2af28699d7398805 =
\SDL_EventFilter
x0 ->
\Ptr Void
x1 ->
FunPtr Void -> Ptr Void -> IO ()
hs_bindgen_2af28699d7398805_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_2af28699d7398805
foreign import ccall safe "hs_bindgen_be8f273c9471fe63"
hs_bindgen_be8f273c9471fe63_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_be8f273c9471fe63
:: BG.Ptr SDL_EventFilter
-> BG.Ptr (BG.Ptr BG.Void)
-> IO BG.CBool
hs_bindgen_be8f273c9471fe63 :: Ptr SDL_EventFilter -> Ptr (Ptr Void) -> IO CBool
hs_bindgen_be8f273c9471fe63 =
\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_be8f273c9471fe63_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_be8f273c9471fe63
foreign import ccall safe "hs_bindgen_1032b9b1e1b3559e"
hs_bindgen_1032b9b1e1b3559e_base
:: BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_1032b9b1e1b3559e
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_1032b9b1e1b3559e :: SDL_EventFilter -> Ptr Void -> IO CBool
hs_bindgen_1032b9b1e1b3559e =
\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_1032b9b1e1b3559e_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_1032b9b1e1b3559e
foreign import ccall safe "hs_bindgen_3dfeb3d0c0d67825"
hs_bindgen_3dfeb3d0c0d67825_base
:: BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_3dfeb3d0c0d67825
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_3dfeb3d0c0d67825 :: SDL_EventFilter -> Ptr Void -> IO ()
hs_bindgen_3dfeb3d0c0d67825 =
\SDL_EventFilter
x0 ->
\Ptr Void
x1 ->
FunPtr Void -> Ptr Void -> IO ()
hs_bindgen_3dfeb3d0c0d67825_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_3dfeb3d0c0d67825
foreign import ccall safe "hs_bindgen_6c8e2afc32ccc02a"
hs_bindgen_6c8e2afc32ccc02a_base
:: BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_6c8e2afc32ccc02a
:: SDL_EventFilter
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_6c8e2afc32ccc02a :: SDL_EventFilter -> Ptr Void -> IO ()
hs_bindgen_6c8e2afc32ccc02a =
\SDL_EventFilter
x0 ->
\Ptr Void
x1 ->
FunPtr Void -> Ptr Void -> IO ()
hs_bindgen_6c8e2afc32ccc02a_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_6c8e2afc32ccc02a
foreign import ccall safe "hs_bindgen_980b7ed1ad20c98e"
hs_bindgen_980b7ed1ad20c98e_base
:: HsBindgen.Runtime.LibC.Word32
-> BG.CBool
-> IO ()
hs_bindgen_980b7ed1ad20c98e
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.CBool
-> IO ()
hs_bindgen_980b7ed1ad20c98e :: Uint32 -> CBool -> IO ()
hs_bindgen_980b7ed1ad20c98e =
\Uint32
x0 ->
\CBool
x1 ->
Word32 -> CBool -> IO ()
hs_bindgen_980b7ed1ad20c98e_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_980b7ed1ad20c98e
foreign import ccall safe "hs_bindgen_581f5ed4b389f9ad"
hs_bindgen_581f5ed4b389f9ad_base
:: HsBindgen.Runtime.LibC.Word32
-> IO BG.CBool
hs_bindgen_581f5ed4b389f9ad
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
hs_bindgen_581f5ed4b389f9ad :: Uint32 -> IO CBool
hs_bindgen_581f5ed4b389f9ad =
\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_581f5ed4b389f9ad_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_581f5ed4b389f9ad
foreign import ccall safe "hs_bindgen_68df500d3720ae65"
hs_bindgen_68df500d3720ae65_base
:: BG.CInt
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_68df500d3720ae65
:: BG.CInt
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_68df500d3720ae65 :: CInt -> IO Uint32
hs_bindgen_68df500d3720ae65 =
\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_68df500d3720ae65_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_68df500d3720ae65
foreign import ccall safe "hs_bindgen_bf32d25772bf7533"
hs_bindgen_bf32d25772bf7533_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_bf32d25772bf7533
:: PtrConst.PtrConst SDL_Event
-> IO (BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window)
hs_bindgen_bf32d25772bf7533 :: PtrConst SDL_Event -> IO (Ptr SDL_Window)
hs_bindgen_bf32d25772bf7533 =
\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_bf32d25772bf7533_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_bf32d25772bf7533
foreign import ccall safe "hs_bindgen_791dc84efb7c9255"
hs_bindgen_791dc84efb7c9255_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.CInt
-> IO BG.CInt
hs_bindgen_791dc84efb7c9255
:: PtrConst.PtrConst SDL_Event
-> BG.Ptr BG.CChar
-> BG.CInt
-> IO BG.CInt
hs_bindgen_791dc84efb7c9255 :: PtrConst SDL_Event -> Ptr CChar -> CInt -> IO CInt
hs_bindgen_791dc84efb7c9255 =
\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_791dc84efb7c9255_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_791dc84efb7c9255