{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Messagebox.FunPtr (
SDL3.Sys.Bindgen.Messagebox.FunPtr.sDL_ShowMessageBox,
SDL3.Sys.Bindgen.Messagebox.FunPtr.sDL_ShowSimpleMessageBox,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Messagebox
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_messagebox.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Messagebox_get_SDL_ShowMessageBox */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_fdad2a984a763ae0 (void)) ("
, " SDL_MessageBoxData const *arg1,"
, " signed int *arg2"
, ")"
, "{"
, " return &SDL_ShowMessageBox;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Messagebox_get_SDL_ShowSimpleMessageBox */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_059be268606e6ea4 (void)) ("
, " SDL_MessageBoxFlags arg1,"
, " char const *arg2,"
, " char const *arg3,"
, " SDL_Window *arg4"
, ")"
, "{"
, " return &SDL_ShowSimpleMessageBox;"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_fdad2a984a763ae0"
hs_bindgen_fdad2a984a763ae0_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_fdad2a984a763ae0
:: IO (BG.FunPtr (PtrConst.PtrConst SDL_MessageBoxData -> BG.Ptr BG.CInt -> IO BG.CBool))
hs_bindgen_fdad2a984a763ae0 :: IO (FunPtr (PtrConst SDL_MessageBoxData -> Ptr CInt -> IO CBool))
hs_bindgen_fdad2a984a763ae0 =
(FunPtr Void
-> FunPtr (PtrConst SDL_MessageBoxData -> Ptr CInt -> IO CBool))
-> IO (FunPtr Void)
-> IO
(FunPtr (PtrConst SDL_MessageBoxData -> Ptr CInt -> IO CBool))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void
-> FunPtr (PtrConst SDL_MessageBoxData -> Ptr CInt -> IO CBool)
FFIType
(FunPtr (PtrConst SDL_MessageBoxData -> Ptr CInt -> IO CBool))
-> FunPtr (PtrConst SDL_MessageBoxData -> Ptr CInt -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_fdad2a984a763ae0_base
{-# NOINLINE sDL_ShowMessageBox #-}
sDL_ShowMessageBox
:: BG.FunPtr (PtrConst.PtrConst SDL_MessageBoxData -> BG.Ptr BG.CInt -> IO BG.CBool)
sDL_ShowMessageBox :: FunPtr (PtrConst SDL_MessageBoxData -> Ptr CInt -> IO CBool)
sDL_ShowMessageBox =
IO (FunPtr (PtrConst SDL_MessageBoxData -> Ptr CInt -> IO CBool))
-> FunPtr (PtrConst SDL_MessageBoxData -> Ptr CInt -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (PtrConst SDL_MessageBoxData -> Ptr CInt -> IO CBool))
hs_bindgen_fdad2a984a763ae0
foreign import ccall unsafe "hs_bindgen_059be268606e6ea4"
hs_bindgen_059be268606e6ea4_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_059be268606e6ea4
:: IO
( BG.FunPtr
( SDL_MessageBoxFlags
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> IO BG.CBool
)
)
hs_bindgen_059be268606e6ea4 :: IO
(FunPtr
(SDL_MessageBoxFlags
-> PtrConst CChar -> PtrConst CChar -> Ptr SDL_Window -> IO CBool))
hs_bindgen_059be268606e6ea4 =
(FunPtr Void
-> FunPtr
(SDL_MessageBoxFlags
-> PtrConst CChar -> PtrConst CChar -> Ptr SDL_Window -> IO CBool))
-> IO (FunPtr Void)
-> IO
(FunPtr
(SDL_MessageBoxFlags
-> PtrConst CChar -> PtrConst CChar -> Ptr SDL_Window -> IO CBool))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void
-> FunPtr
(SDL_MessageBoxFlags
-> PtrConst CChar -> PtrConst CChar -> Ptr SDL_Window -> IO CBool)
FFIType
(FunPtr
(SDL_MessageBoxFlags
-> PtrConst CChar -> PtrConst CChar -> Ptr SDL_Window -> IO CBool))
-> FunPtr
(SDL_MessageBoxFlags
-> PtrConst CChar -> PtrConst CChar -> Ptr SDL_Window -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_059be268606e6ea4_base
{-# NOINLINE sDL_ShowSimpleMessageBox #-}
sDL_ShowSimpleMessageBox
:: BG.FunPtr
( SDL_MessageBoxFlags
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr SDL3.Sys.Bindgen.Video.SDL_Window
-> IO BG.CBool
)
sDL_ShowSimpleMessageBox :: FunPtr
(SDL_MessageBoxFlags
-> PtrConst CChar -> PtrConst CChar -> Ptr SDL_Window -> IO CBool)
sDL_ShowSimpleMessageBox =
IO
(FunPtr
(SDL_MessageBoxFlags
-> PtrConst CChar -> PtrConst CChar -> Ptr SDL_Window -> IO CBool))
-> FunPtr
(SDL_MessageBoxFlags
-> PtrConst CChar -> PtrConst CChar -> Ptr SDL_Window -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(SDL_MessageBoxFlags
-> PtrConst CChar -> PtrConst CChar -> Ptr SDL_Window -> IO CBool))
hs_bindgen_059be268606e6ea4