{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Pixels.FunPtr (
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_GetPixelFormatName,
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_GetMasksForPixelFormat,
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_GetPixelFormatForMasks,
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_GetPixelFormatDetails,
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_CreatePalette,
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_SetPaletteColors,
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_DestroyPalette,
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_MapRGB,
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_MapRGBA,
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_GetRGB,
SDL3.Sys.Bindgen.Pixels.FunPtr.sDL_GetRGBA,
)
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.Pixels
import SDL3.Sys.Bindgen.Stdinc 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_pixels.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_GetPixelFormatName */"
, "__attribute__ ((const))"
, "char const *(*hs_bindgen_eb0ec2b0946d454a (void)) ("
, " SDL_PixelFormat arg1"
, ")"
, "{"
, " return &SDL_GetPixelFormatName;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_GetMasksForPixelFormat */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_f958323c6387c975 (void)) ("
, " SDL_PixelFormat arg1,"
, " signed int *arg2,"
, " Uint32 *arg3,"
, " Uint32 *arg4,"
, " Uint32 *arg5,"
, " Uint32 *arg6"
, ")"
, "{"
, " return &SDL_GetMasksForPixelFormat;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_GetPixelFormatForMasks */"
, "__attribute__ ((const))"
, "SDL_PixelFormat (*hs_bindgen_e5bd7b32ad9023dc (void)) ("
, " signed int arg1,"
, " Uint32 arg2,"
, " Uint32 arg3,"
, " Uint32 arg4,"
, " Uint32 arg5"
, ")"
, "{"
, " return &SDL_GetPixelFormatForMasks;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_GetPixelFormatDetails */"
, "__attribute__ ((const))"
, "SDL_PixelFormatDetails const *(*hs_bindgen_b5dfc5cc5c17c070 (void)) ("
, " SDL_PixelFormat arg1"
, ")"
, "{"
, " return &SDL_GetPixelFormatDetails;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_CreatePalette */"
, "__attribute__ ((const))"
, "SDL_Palette *(*hs_bindgen_27546d5c6729ae26 (void)) ("
, " signed int arg1"
, ")"
, "{"
, " return &SDL_CreatePalette;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_SetPaletteColors */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_34f70d79b2ac1637 (void)) ("
, " SDL_Palette *arg1,"
, " SDL_Color const *arg2,"
, " signed int arg3,"
, " signed int arg4"
, ")"
, "{"
, " return &SDL_SetPaletteColors;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_DestroyPalette */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_51f2b11ef08b8f0d (void)) ("
, " SDL_Palette *arg1"
, ")"
, "{"
, " return &SDL_DestroyPalette;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_MapRGB */"
, "__attribute__ ((const))"
, "Uint32 (*hs_bindgen_71913f7d8c1eefe0 (void)) ("
, " SDL_PixelFormatDetails const *arg1,"
, " SDL_Palette const *arg2,"
, " Uint8 arg3,"
, " Uint8 arg4,"
, " Uint8 arg5"
, ")"
, "{"
, " return &SDL_MapRGB;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_MapRGBA */"
, "__attribute__ ((const))"
, "Uint32 (*hs_bindgen_357ad77f90e40db5 (void)) ("
, " SDL_PixelFormatDetails const *arg1,"
, " SDL_Palette const *arg2,"
, " Uint8 arg3,"
, " Uint8 arg4,"
, " Uint8 arg5,"
, " Uint8 arg6"
, ")"
, "{"
, " return &SDL_MapRGBA;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_GetRGB */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_b718a2f4b5ae6cf0 (void)) ("
, " Uint32 arg1,"
, " SDL_PixelFormatDetails const *arg2,"
, " SDL_Palette const *arg3,"
, " Uint8 *arg4,"
, " Uint8 *arg5,"
, " Uint8 *arg6"
, ")"
, "{"
, " return &SDL_GetRGB;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Pixels_get_SDL_GetRGBA */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_9f1939763a4ba969 (void)) ("
, " Uint32 arg1,"
, " SDL_PixelFormatDetails const *arg2,"
, " SDL_Palette const *arg3,"
, " Uint8 *arg4,"
, " Uint8 *arg5,"
, " Uint8 *arg6,"
, " Uint8 *arg7"
, ")"
, "{"
, " return &SDL_GetRGBA;"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_eb0ec2b0946d454a"
hs_bindgen_eb0ec2b0946d454a_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_eb0ec2b0946d454a :: IO (BG.FunPtr (SDL_PixelFormat -> IO (PtrConst.PtrConst BG.CChar)))
hs_bindgen_eb0ec2b0946d454a :: IO (FunPtr (SDL_PixelFormat -> IO (PtrConst CChar)))
hs_bindgen_eb0ec2b0946d454a =
(FunPtr Void -> FunPtr (SDL_PixelFormat -> IO (PtrConst CChar)))
-> IO (FunPtr Void)
-> IO (FunPtr (SDL_PixelFormat -> 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 FunPtr Void -> FunPtr (SDL_PixelFormat -> IO (PtrConst CChar))
FFIType (FunPtr (SDL_PixelFormat -> IO (PtrConst CChar)))
-> FunPtr (SDL_PixelFormat -> IO (PtrConst CChar))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_eb0ec2b0946d454a_base
{-# NOINLINE sDL_GetPixelFormatName #-}
sDL_GetPixelFormatName :: BG.FunPtr (SDL_PixelFormat -> IO (PtrConst.PtrConst BG.CChar))
sDL_GetPixelFormatName :: FunPtr (SDL_PixelFormat -> IO (PtrConst CChar))
sDL_GetPixelFormatName =
IO (FunPtr (SDL_PixelFormat -> IO (PtrConst CChar)))
-> FunPtr (SDL_PixelFormat -> IO (PtrConst CChar))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (SDL_PixelFormat -> IO (PtrConst CChar)))
hs_bindgen_eb0ec2b0946d454a
foreign import ccall unsafe "hs_bindgen_f958323c6387c975"
hs_bindgen_f958323c6387c975_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_f958323c6387c975
:: IO
( BG.FunPtr
( SDL_PixelFormat
-> BG.Ptr BG.CInt
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
)
)
hs_bindgen_f958323c6387c975 :: IO
(FunPtr
(SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool))
hs_bindgen_f958323c6387c975 =
(FunPtr Void
-> FunPtr
(SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool))
-> IO (FunPtr Void)
-> IO
(FunPtr
(SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> 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_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool)
FFIType
(FunPtr
(SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool))
-> FunPtr
(SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_f958323c6387c975_base
{-# NOINLINE sDL_GetMasksForPixelFormat #-}
sDL_GetMasksForPixelFormat
:: BG.FunPtr
( SDL_PixelFormat
-> BG.Ptr BG.CInt
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
)
sDL_GetMasksForPixelFormat :: FunPtr
(SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool)
sDL_GetMasksForPixelFormat =
IO
(FunPtr
(SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool))
-> FunPtr
(SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool))
hs_bindgen_f958323c6387c975
foreign import ccall unsafe "hs_bindgen_e5bd7b32ad9023dc"
hs_bindgen_e5bd7b32ad9023dc_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_e5bd7b32ad9023dc
:: IO
( BG.FunPtr
( BG.CInt
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO SDL_PixelFormat
)
)
hs_bindgen_e5bd7b32ad9023dc :: IO
(FunPtr
(CInt
-> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat))
hs_bindgen_e5bd7b32ad9023dc =
(FunPtr Void
-> FunPtr
(CInt
-> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat))
-> IO (FunPtr Void)
-> IO
(FunPtr
(CInt
-> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat))
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
(CInt
-> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat)
FFIType
(FunPtr
(CInt
-> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat))
-> FunPtr
(CInt
-> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_e5bd7b32ad9023dc_base
{-# NOINLINE sDL_GetPixelFormatForMasks #-}
sDL_GetPixelFormatForMasks
:: BG.FunPtr
( BG.CInt
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO SDL_PixelFormat
)
sDL_GetPixelFormatForMasks :: FunPtr
(CInt
-> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat)
sDL_GetPixelFormatForMasks =
IO
(FunPtr
(CInt
-> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat))
-> FunPtr
(CInt
-> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(CInt
-> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat))
hs_bindgen_e5bd7b32ad9023dc
foreign import ccall unsafe "hs_bindgen_b5dfc5cc5c17c070"
hs_bindgen_b5dfc5cc5c17c070_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_b5dfc5cc5c17c070
:: IO (BG.FunPtr (SDL_PixelFormat -> IO (PtrConst.PtrConst SDL_PixelFormatDetails)))
hs_bindgen_b5dfc5cc5c17c070 :: IO
(FunPtr (SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails)))
hs_bindgen_b5dfc5cc5c17c070 =
(FunPtr Void
-> FunPtr
(SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails)))
-> IO (FunPtr Void)
-> IO
(FunPtr (SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails)))
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_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails))
FFIType
(FunPtr (SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails)))
-> FunPtr (SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_b5dfc5cc5c17c070_base
{-# NOINLINE sDL_GetPixelFormatDetails #-}
sDL_GetPixelFormatDetails
:: BG.FunPtr (SDL_PixelFormat -> IO (PtrConst.PtrConst SDL_PixelFormatDetails))
sDL_GetPixelFormatDetails :: FunPtr (SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails))
sDL_GetPixelFormatDetails =
IO
(FunPtr (SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails)))
-> FunPtr (SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails))
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr (SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails)))
hs_bindgen_b5dfc5cc5c17c070
foreign import ccall unsafe "hs_bindgen_27546d5c6729ae26"
hs_bindgen_27546d5c6729ae26_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_27546d5c6729ae26 :: IO (BG.FunPtr (BG.CInt -> IO (BG.Ptr SDL_Palette)))
hs_bindgen_27546d5c6729ae26 :: IO (FunPtr (CInt -> IO (Ptr SDL_Palette)))
hs_bindgen_27546d5c6729ae26 =
(FunPtr Void -> FunPtr (CInt -> IO (Ptr SDL_Palette)))
-> IO (FunPtr Void) -> IO (FunPtr (CInt -> IO (Ptr SDL_Palette)))
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 (CInt -> IO (Ptr SDL_Palette))
FFIType (FunPtr (CInt -> IO (Ptr SDL_Palette)))
-> FunPtr (CInt -> IO (Ptr SDL_Palette))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_27546d5c6729ae26_base
{-# NOINLINE sDL_CreatePalette #-}
sDL_CreatePalette :: BG.FunPtr (BG.CInt -> IO (BG.Ptr SDL_Palette))
sDL_CreatePalette :: FunPtr (CInt -> IO (Ptr SDL_Palette))
sDL_CreatePalette =
IO (FunPtr (CInt -> IO (Ptr SDL_Palette)))
-> FunPtr (CInt -> IO (Ptr SDL_Palette))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (CInt -> IO (Ptr SDL_Palette)))
hs_bindgen_27546d5c6729ae26
foreign import ccall unsafe "hs_bindgen_34f70d79b2ac1637"
hs_bindgen_34f70d79b2ac1637_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_34f70d79b2ac1637
:: IO
(BG.FunPtr (BG.Ptr SDL_Palette -> PtrConst.PtrConst SDL_Color -> BG.CInt -> BG.CInt -> IO BG.CBool))
hs_bindgen_34f70d79b2ac1637 :: IO
(FunPtr
(Ptr SDL_Palette
-> PtrConst SDL_Color -> CInt -> CInt -> IO CBool))
hs_bindgen_34f70d79b2ac1637 =
(FunPtr Void
-> FunPtr
(Ptr SDL_Palette
-> PtrConst SDL_Color -> CInt -> CInt -> IO CBool))
-> IO (FunPtr Void)
-> IO
(FunPtr
(Ptr SDL_Palette
-> PtrConst SDL_Color -> CInt -> 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
(Ptr SDL_Palette -> PtrConst SDL_Color -> CInt -> CInt -> IO CBool)
FFIType
(FunPtr
(Ptr SDL_Palette
-> PtrConst SDL_Color -> CInt -> CInt -> IO CBool))
-> FunPtr
(Ptr SDL_Palette -> PtrConst SDL_Color -> CInt -> CInt -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_34f70d79b2ac1637_base
{-# NOINLINE sDL_SetPaletteColors #-}
sDL_SetPaletteColors
:: BG.FunPtr (BG.Ptr SDL_Palette -> PtrConst.PtrConst SDL_Color -> BG.CInt -> BG.CInt -> IO BG.CBool)
sDL_SetPaletteColors :: FunPtr
(Ptr SDL_Palette -> PtrConst SDL_Color -> CInt -> CInt -> IO CBool)
sDL_SetPaletteColors =
IO
(FunPtr
(Ptr SDL_Palette
-> PtrConst SDL_Color -> CInt -> CInt -> IO CBool))
-> FunPtr
(Ptr SDL_Palette -> PtrConst SDL_Color -> CInt -> CInt -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(Ptr SDL_Palette
-> PtrConst SDL_Color -> CInt -> CInt -> IO CBool))
hs_bindgen_34f70d79b2ac1637
foreign import ccall unsafe "hs_bindgen_51f2b11ef08b8f0d"
hs_bindgen_51f2b11ef08b8f0d_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_51f2b11ef08b8f0d :: IO (BG.FunPtr (BG.Ptr SDL_Palette -> IO ()))
hs_bindgen_51f2b11ef08b8f0d :: IO (FunPtr (Ptr SDL_Palette -> IO ()))
hs_bindgen_51f2b11ef08b8f0d =
(FunPtr Void -> FunPtr (Ptr SDL_Palette -> IO ()))
-> IO (FunPtr Void) -> IO (FunPtr (Ptr SDL_Palette -> IO ()))
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 (Ptr SDL_Palette -> IO ())
FFIType (FunPtr (Ptr SDL_Palette -> IO ()))
-> FunPtr (Ptr SDL_Palette -> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_51f2b11ef08b8f0d_base
{-# NOINLINE sDL_DestroyPalette #-}
sDL_DestroyPalette :: BG.FunPtr (BG.Ptr SDL_Palette -> IO ())
sDL_DestroyPalette :: FunPtr (Ptr SDL_Palette -> IO ())
sDL_DestroyPalette =
IO (FunPtr (Ptr SDL_Palette -> IO ()))
-> FunPtr (Ptr SDL_Palette -> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Palette -> IO ()))
hs_bindgen_51f2b11ef08b8f0d
foreign import ccall unsafe "hs_bindgen_71913f7d8c1eefe0"
hs_bindgen_71913f7d8c1eefe0_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_71913f7d8c1eefe0
:: IO
( BG.FunPtr
( PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
)
)
hs_bindgen_71913f7d8c1eefe0 :: IO
(FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32))
hs_bindgen_71913f7d8c1eefe0 =
(FunPtr Void
-> FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32))
-> IO (FunPtr Void)
-> IO
(FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32))
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_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32)
FFIType
(FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32))
-> FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_71913f7d8c1eefe0_base
{-# NOINLINE sDL_MapRGB #-}
sDL_MapRGB
:: BG.FunPtr
( PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
)
sDL_MapRGB :: FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32)
sDL_MapRGB =
IO
(FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32))
-> FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32))
hs_bindgen_71913f7d8c1eefe0
foreign import ccall unsafe "hs_bindgen_357ad77f90e40db5"
hs_bindgen_357ad77f90e40db5_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_357ad77f90e40db5
:: IO
( BG.FunPtr
( PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
)
)
hs_bindgen_357ad77f90e40db5 :: IO
(FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32))
hs_bindgen_357ad77f90e40db5 =
(FunPtr Void
-> FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32))
-> IO (FunPtr Void)
-> IO
(FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32))
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_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32)
FFIType
(FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32))
-> FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_357ad77f90e40db5_base
{-# NOINLINE sDL_MapRGBA #-}
sDL_MapRGBA
:: BG.FunPtr
( PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
)
sDL_MapRGBA :: FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32)
sDL_MapRGBA =
IO
(FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32))
-> FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32))
hs_bindgen_357ad77f90e40db5
foreign import ccall unsafe "hs_bindgen_b718a2f4b5ae6cf0"
hs_bindgen_b718a2f4b5ae6cf0_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_b718a2f4b5ae6cf0
:: IO
( BG.FunPtr
( SDL3.Sys.Bindgen.Stdinc.Uint32
-> PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO ()
)
)
hs_bindgen_b718a2f4b5ae6cf0 :: IO
(FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
hs_bindgen_b718a2f4b5ae6cf0 =
(FunPtr Void
-> FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
-> IO (FunPtr Void)
-> IO
(FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
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
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ())
FFIType
(FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
-> FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_b718a2f4b5ae6cf0_base
{-# NOINLINE sDL_GetRGB #-}
sDL_GetRGB
:: BG.FunPtr
( SDL3.Sys.Bindgen.Stdinc.Uint32
-> PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO ()
)
sDL_GetRGB :: FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ())
sDL_GetRGB =
IO
(FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
-> FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
hs_bindgen_b718a2f4b5ae6cf0
foreign import ccall unsafe "hs_bindgen_9f1939763a4ba969"
hs_bindgen_9f1939763a4ba969_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_9f1939763a4ba969
:: IO
( BG.FunPtr
( SDL3.Sys.Bindgen.Stdinc.Uint32
-> PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO ()
)
)
hs_bindgen_9f1939763a4ba969 :: IO
(FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
hs_bindgen_9f1939763a4ba969 =
(FunPtr Void
-> FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
-> IO (FunPtr Void)
-> IO
(FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
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
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ())
FFIType
(FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
-> FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_9f1939763a4ba969_base
{-# NOINLINE sDL_GetRGBA #-}
sDL_GetRGBA
:: BG.FunPtr
( SDL3.Sys.Bindgen.Stdinc.Uint32
-> PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO ()
)
sDL_GetRGBA :: FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ())
sDL_GetRGBA =
IO
(FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
-> FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()))
hs_bindgen_9f1939763a4ba969