| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Init
Description
All SDL programs need to initialize the library before starting to work with it.
Almost everything can simply call SDL_Init() near startup, with a handful of flags to specify subsystems to touch. These are here to make sure SDL does not even attempt to touch low-level pieces of the operating system that you don't intend to use. For example, you might be using SDL for video and input but chose an external library for audio, and in this case you would just need to leave off the flag to make sure that external library has complete control.sDL_INIT_AUDIO
Most apps, when terminating, should call SDL_Quit(). This will clean up (nearly) everything that SDL might have allocated, and crucially, it'll make sure that the display's resolution is back to what the user expects if you had previously changed it for your game.
SDL3 apps are strongly encouraged to call SDL_SetAppMetadata() at startup to fill in details about the program. This is completely optional, but it helps in small ways (we can provide an About dialog box for the macOS menu, we can name the app in the system's audio mixer, etc). Those that want to provide a lot of information should look at the more-detailed SDL_SetAppMetadataProperty(). Initialization flags for SDL_Init and/or SDL_InitSubSystem
These are the flags which may be passed to SDL_Init(). You should specify the subsystems which you will be using in your application.
- See also
sDL_Init,sDL_Quit,sDL_InitSubSystem,sDL_QuitSubSystem,sDL_WasInit
Since: 3.2.0
Synopsis
- newtype SDL_InitFlags = SDL_InitFlags {}
- sDL_INIT_AUDIO :: CUInt
- sDL_INIT_VIDEO :: CUInt
- sDL_INIT_JOYSTICK :: CUInt
- sDL_INIT_HAPTIC :: CUInt
- sDL_INIT_GAMEPAD :: CUInt
- sDL_INIT_EVENTS :: CUInt
- sDL_INIT_SENSOR :: CUInt
- sDL_INIT_CAMERA :: CUInt
- newtype SDL_AppResult = SDL_AppResult {}
- pattern SDL_APP_CONTINUE :: SDL_AppResult
- pattern SDL_APP_SUCCESS :: SDL_AppResult
- pattern SDL_APP_FAILURE :: SDL_AppResult
- newtype SDL_AppInit_func_Aux = SDL_AppInit_func_Aux {}
- newtype SDL_AppInit_func = SDL_AppInit_func {}
- newtype SDL_AppIterate_func_Aux = SDL_AppIterate_func_Aux {
- unwrap :: Ptr Void -> IO SDL_AppResult
- newtype SDL_AppIterate_func = SDL_AppIterate_func {}
- newtype SDL_AppEvent_func_Aux = SDL_AppEvent_func_Aux {}
- newtype SDL_AppEvent_func = SDL_AppEvent_func {}
- newtype SDL_AppQuit_func_Aux = SDL_AppQuit_func_Aux {
- unwrap :: Ptr Void -> SDL_AppResult -> IO ()
- newtype SDL_AppQuit_func = SDL_AppQuit_func {}
- newtype SDL_MainThreadCallback_Aux = SDL_MainThreadCallback_Aux {}
- newtype SDL_MainThreadCallback = SDL_MainThreadCallback {}
- sDL_PROP_APP_METADATA_NAME_STRING :: ByteString
- sDL_PROP_APP_METADATA_VERSION_STRING :: ByteString
- sDL_PROP_APP_METADATA_IDENTIFIER_STRING :: ByteString
- sDL_PROP_APP_METADATA_CREATOR_STRING :: ByteString
- sDL_PROP_APP_METADATA_COPYRIGHT_STRING :: ByteString
- sDL_PROP_APP_METADATA_URL_STRING :: ByteString
- sDL_PROP_APP_METADATA_TYPE_STRING :: ByteString
Documentation
newtype SDL_InitFlags Source #
- C declaration
SDL_InitFlags, defined atSDL3/SDL_init.h 78:16
Constructors
| SDL_InitFlags | |
Instances
sDL_INIT_AUDIO :: CUInt Source #
implies sDL_INIT_AUDIOsDL_INIT_EVENTS
- C declaration
macro SDL_INIT_AUDIO, defined atSDL3/SDL_init.h 80:9
sDL_INIT_VIDEO :: CUInt Source #
implies sDL_INIT_VIDEO, should be initialized on the main threadsDL_INIT_EVENTS
- C declaration
macro SDL_INIT_VIDEO, defined atSDL3/SDL_init.h 81:9
sDL_INIT_JOYSTICK :: CUInt Source #
implies sDL_INIT_JOYSTICKsDL_INIT_EVENTS
- C declaration
macro SDL_INIT_JOYSTICK, defined atSDL3/SDL_init.h 82:9
sDL_INIT_HAPTIC :: CUInt Source #
- C declaration
macro SDL_INIT_HAPTIC, defined atSDL3/SDL_init.h 83:9
sDL_INIT_GAMEPAD :: CUInt Source #
implies sDL_INIT_GAMEPADsDL_INIT_JOYSTICK
- C declaration
macro SDL_INIT_GAMEPAD, defined atSDL3/SDL_init.h 84:9
sDL_INIT_EVENTS :: CUInt Source #
- C declaration
macro SDL_INIT_EVENTS, defined atSDL3/SDL_init.h 85:9
sDL_INIT_SENSOR :: CUInt Source #
implies sDL_INIT_SENSORsDL_INIT_EVENTS
- C declaration
macro SDL_INIT_SENSOR, defined atSDL3/SDL_init.h 86:9
sDL_INIT_CAMERA :: CUInt Source #
implies sDL_INIT_CAMERAsDL_INIT_EVENTS
- C declaration
macro SDL_INIT_CAMERA, defined atSDL3/SDL_init.h 87:9
newtype SDL_AppResult Source #
Return values for optional main callbacks.
Returning SDL_APP_SUCCESS or SDL_APP_FAILURE from SDL_AppInit, SDL_AppEvent, or SDL_AppIterate will terminate the program and report success/failure to the operating system. What that means is platform-dependent. On Unix, for example, on success, the process error code will be zero, and on failure it will be 1. This interface doesn't allow you to return specific exit codes, just whether there was an error generally or not.
Returning SDL_APP_CONTINUE from these functions will let the app continue to run.
See Main callbacks in SDL3 for complete details.
- C declaration
enum SDL_AppResult, defined atSDL3/SDL_init.h 109:14
Since: 3.2.0
Constructors
| SDL_AppResult | |
Instances
| Storable SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods sizeOf :: SDL_AppResult -> Int # alignment :: SDL_AppResult -> Int # peekElemOff :: Ptr SDL_AppResult -> Int -> IO SDL_AppResult # pokeElemOff :: Ptr SDL_AppResult -> Int -> SDL_AppResult -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_AppResult # pokeByteOff :: Ptr b -> Int -> SDL_AppResult -> IO () # peek :: Ptr SDL_AppResult -> IO SDL_AppResult # poke :: Ptr SDL_AppResult -> SDL_AppResult -> IO () # | |||||
| Generic SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| Read SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods readsPrec :: Int -> ReadS SDL_AppResult # readList :: ReadS [SDL_AppResult] # | |||||
| Show SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods showsPrec :: Int -> SDL_AppResult -> ShowS # show :: SDL_AppResult -> String # showList :: [SDL_AppResult] -> ShowS # | |||||
| Eq SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods (==) :: SDL_AppResult -> SDL_AppResult -> Bool # (/=) :: SDL_AppResult -> SDL_AppResult -> Bool # | |||||
| Ord SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods compare :: SDL_AppResult -> SDL_AppResult -> Ordering # (<) :: SDL_AppResult -> SDL_AppResult -> Bool # (<=) :: SDL_AppResult -> SDL_AppResult -> Bool # (>) :: SDL_AppResult -> SDL_AppResult -> Bool # (>=) :: SDL_AppResult -> SDL_AppResult -> Bool # max :: SDL_AppResult -> SDL_AppResult -> SDL_AppResult # min :: SDL_AppResult -> SDL_AppResult -> SDL_AppResult # | |||||
| Prim SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods sizeOfType# :: Proxy SDL_AppResult -> Int# # sizeOf# :: SDL_AppResult -> Int# # alignmentOfType# :: Proxy SDL_AppResult -> Int# # alignment# :: SDL_AppResult -> Int# # indexByteArray# :: ByteArray# -> Int# -> SDL_AppResult # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, SDL_AppResult #) # writeByteArray# :: MutableByteArray# s -> Int# -> SDL_AppResult -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> SDL_AppResult -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> SDL_AppResult # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, SDL_AppResult #) # writeOffAddr# :: Addr# -> Int# -> SDL_AppResult -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> SDL_AppResult -> State# s -> State# s # | |||||
| CEnum SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods toCEnum :: CEnumZ SDL_AppResult -> SDL_AppResult # fromCEnum :: SDL_AppResult -> CEnumZ SDL_AppResult # declaredValues :: proxy SDL_AppResult -> DeclaredValues SDL_AppResult # showsUndeclared :: proxy SDL_AppResult -> Int -> CEnumZ SDL_AppResult -> ShowS # readPrecUndeclared :: ReadPrec SDL_AppResult # isDeclared :: SDL_AppResult -> Bool # | |||||
| SequentialCEnum SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
| HasFFIType SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods | |||||
| ReadRaw SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods readRaw :: Ptr SDL_AppResult -> IO SDL_AppResult # | |||||
| StaticSize SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
| WriteRaw SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods writeRaw :: Ptr SDL_AppResult -> SDL_AppResult -> IO () # | |||||
| HasCField SDL_AppResult "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ CUInt => HasField "unwrap" SDL_AppResult ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_AppResult -> (ty -> SDL_AppResult, ty) # | |||||
| ty ~ CUInt => HasField "unwrap" (Ptr SDL_AppResult) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_AppResult -> Ptr ty # | |||||
| type Rep SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_AppResult = D1 ('MetaData "SDL_AppResult" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_AppResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt))) | |||||
| type CEnumZ SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
| type FFIType SDL_AppResult Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
| type CFieldType SDL_AppResult "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
pattern SDL_APP_CONTINUE :: SDL_AppResult Source #
Value that requests that the app continue from the main callbacks.
- C declaration
SDL_APP_CONTINUE, defined atSDL3/SDL_init.h 111:5
pattern SDL_APP_SUCCESS :: SDL_AppResult Source #
Value that requests termination with success from the main callbacks.
- C declaration
SDL_APP_SUCCESS, defined atSDL3/SDL_init.h 112:5
pattern SDL_APP_FAILURE :: SDL_AppResult Source #
Value that requests termination with error from the main callbacks.
- C declaration
SDL_APP_FAILURE, defined atSDL3/SDL_init.h 113:5
newtype SDL_AppInit_func_Aux Source #
Auxiliary type used by SDL_AppInit_func
- C declaration
SDL_AppInit_func, defined atSDL3/SDL_init.h 133:33
Constructors
| SDL_AppInit_func_Aux | |
Instances
| Generic SDL_AppInit_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods from :: SDL_AppInit_func_Aux -> Rep SDL_AppInit_func_Aux x # to :: Rep SDL_AppInit_func_Aux x -> SDL_AppInit_func_Aux # | |||||
| FromFunPtr SDL_AppInit_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods fromFunPtr :: FunPtr SDL_AppInit_func_Aux -> SDL_AppInit_func_Aux # | |||||
| ToFunPtr SDL_AppInit_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods toFunPtr :: SDL_AppInit_func_Aux -> IO (FunPtr SDL_AppInit_func_Aux) # | |||||
| HasCField SDL_AppInit_func_Aux "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ (Ptr (Ptr Void) -> CInt -> Ptr (Elem (IncompleteArray (Ptr CChar))) -> IO SDL_AppResult) => HasField "unwrap" SDL_AppInit_func_Aux ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_AppInit_func_Aux -> (ty -> SDL_AppInit_func_Aux, ty) # | |||||
| ty ~ (Ptr (Ptr Void) -> CInt -> Ptr (Elem (IncompleteArray (Ptr CChar))) -> IO SDL_AppResult) => HasField "unwrap" (Ptr SDL_AppInit_func_Aux) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_AppInit_func_Aux -> Ptr ty # | |||||
| type Rep SDL_AppInit_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_AppInit_func_Aux = D1 ('MetaData "SDL_AppInit_func_Aux" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_AppInit_func_Aux" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr (Ptr Void) -> CInt -> Ptr (Elem (IncompleteArray (Ptr CChar))) -> IO SDL_AppResult)))) | |||||
| type CFieldType SDL_AppInit_func_Aux "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type CFieldType SDL_AppInit_func_Aux "unwrap" = Ptr (Ptr Void) -> CInt -> Ptr (Elem (IncompleteArray (Ptr CChar))) -> IO SDL_AppResult | |||||
newtype SDL_AppInit_func Source #
Function pointer typedef for SDL_AppInit.
These are used by SDL_EnterAppMainCallbacks. This mechanism operates behind the scenes for apps using the optional main callbacks. Apps that want to use this should just implement SDL_AppInit directly.
appstate- a place where the app can optionally store a pointer for future use.
argc- the standard ANSI C main's argc; number of elements in
argv. argv- the standard ANSI C main's argv; array of command line arguments.
- Returns
- SDL_APP_FAILURE to terminate with an error, SDL_APP_SUCCESS to terminate with success, SDL_APP_CONTINUE to continue.
- C declaration
SDL_AppInit_func, defined atSDL3/SDL_init.h 133:33
Since: 3.2.0
Constructors
| SDL_AppInit_func | |
Fields | |
Instances
| Storable SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods sizeOf :: SDL_AppInit_func -> Int # alignment :: SDL_AppInit_func -> Int # peekElemOff :: Ptr SDL_AppInit_func -> Int -> IO SDL_AppInit_func # pokeElemOff :: Ptr SDL_AppInit_func -> Int -> SDL_AppInit_func -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_AppInit_func # pokeByteOff :: Ptr b -> Int -> SDL_AppInit_func -> IO () # peek :: Ptr SDL_AppInit_func -> IO SDL_AppInit_func # poke :: Ptr SDL_AppInit_func -> SDL_AppInit_func -> IO () # | |||||
| Generic SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods from :: SDL_AppInit_func -> Rep SDL_AppInit_func x # to :: Rep SDL_AppInit_func x -> SDL_AppInit_func # | |||||
| Show SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods showsPrec :: Int -> SDL_AppInit_func -> ShowS # show :: SDL_AppInit_func -> String # showList :: [SDL_AppInit_func] -> ShowS # | |||||
| Eq SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods (==) :: SDL_AppInit_func -> SDL_AppInit_func -> Bool # (/=) :: SDL_AppInit_func -> SDL_AppInit_func -> Bool # | |||||
| Ord SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods compare :: SDL_AppInit_func -> SDL_AppInit_func -> Ordering # (<) :: SDL_AppInit_func -> SDL_AppInit_func -> Bool # (<=) :: SDL_AppInit_func -> SDL_AppInit_func -> Bool # (>) :: SDL_AppInit_func -> SDL_AppInit_func -> Bool # (>=) :: SDL_AppInit_func -> SDL_AppInit_func -> Bool # max :: SDL_AppInit_func -> SDL_AppInit_func -> SDL_AppInit_func # min :: SDL_AppInit_func -> SDL_AppInit_func -> SDL_AppInit_func # | |||||
| HasFFIType SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods toFFIType :: SDL_AppInit_func -> FFIType SDL_AppInit_func # fromFFIType :: FFIType SDL_AppInit_func -> SDL_AppInit_func # | |||||
| ReadRaw SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods | |||||
| StaticSize SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods staticSizeOf :: Proxy SDL_AppInit_func -> Int # staticAlignment :: Proxy SDL_AppInit_func -> Int # | |||||
| WriteRaw SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods writeRaw :: Ptr SDL_AppInit_func -> SDL_AppInit_func -> IO () # | |||||
| HasCField SDL_AppInit_func "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ FunPtr SDL_AppInit_func_Aux => HasField "unwrap" SDL_AppInit_func ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_AppInit_func -> (ty -> SDL_AppInit_func, ty) # | |||||
| ty ~ FunPtr SDL_AppInit_func_Aux => HasField "unwrap" (Ptr SDL_AppInit_func) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_AppInit_func -> Ptr ty # | |||||
| type Rep SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_AppInit_func = D1 ('MetaData "SDL_AppInit_func" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_AppInit_func" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr SDL_AppInit_func_Aux)))) | |||||
| type FFIType SDL_AppInit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
| type CFieldType SDL_AppInit_func "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
newtype SDL_AppIterate_func_Aux Source #
Auxiliary type used by SDL_AppIterate_func
- C declaration
SDL_AppIterate_func, defined atSDL3/SDL_init.h 148:33
Constructors
| SDL_AppIterate_func_Aux | |
Fields
| |
Instances
| Generic SDL_AppIterate_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods from :: SDL_AppIterate_func_Aux -> Rep SDL_AppIterate_func_Aux x # to :: Rep SDL_AppIterate_func_Aux x -> SDL_AppIterate_func_Aux # | |||||
| FromFunPtr SDL_AppIterate_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods fromFunPtr :: FunPtr SDL_AppIterate_func_Aux -> SDL_AppIterate_func_Aux # | |||||
| ToFunPtr SDL_AppIterate_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods toFunPtr :: SDL_AppIterate_func_Aux -> IO (FunPtr SDL_AppIterate_func_Aux) # | |||||
| HasCField SDL_AppIterate_func_Aux "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ (Ptr Void -> IO SDL_AppResult) => HasField "unwrap" SDL_AppIterate_func_Aux ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_AppIterate_func_Aux -> (ty -> SDL_AppIterate_func_Aux, ty) # | |||||
| ty ~ (Ptr Void -> IO SDL_AppResult) => HasField "unwrap" (Ptr SDL_AppIterate_func_Aux) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_AppIterate_func_Aux -> Ptr ty # | |||||
| type Rep SDL_AppIterate_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_AppIterate_func_Aux = D1 ('MetaData "SDL_AppIterate_func_Aux" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_AppIterate_func_Aux" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr Void -> IO SDL_AppResult)))) | |||||
| type CFieldType SDL_AppIterate_func_Aux "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
newtype SDL_AppIterate_func Source #
Function pointer typedef for SDL_AppIterate.
These are used by SDL_EnterAppMainCallbacks. This mechanism operates behind the scenes for apps using the optional main callbacks. Apps that want to use this should just implement SDL_AppIterate directly.
appstate- an optional pointer, provided by the app in SDL_AppInit.
- Returns
- SDL_APP_FAILURE to terminate with an error, SDL_APP_SUCCESS to terminate with success, SDL_APP_CONTINUE to continue.
- C declaration
SDL_AppIterate_func, defined atSDL3/SDL_init.h 148:33
Since: 3.2.0
Constructors
| SDL_AppIterate_func | |
Fields | |
Instances
| Storable SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods sizeOf :: SDL_AppIterate_func -> Int # alignment :: SDL_AppIterate_func -> Int # peekElemOff :: Ptr SDL_AppIterate_func -> Int -> IO SDL_AppIterate_func # pokeElemOff :: Ptr SDL_AppIterate_func -> Int -> SDL_AppIterate_func -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_AppIterate_func # pokeByteOff :: Ptr b -> Int -> SDL_AppIterate_func -> IO () # peek :: Ptr SDL_AppIterate_func -> IO SDL_AppIterate_func # poke :: Ptr SDL_AppIterate_func -> SDL_AppIterate_func -> IO () # | |||||
| Generic SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods from :: SDL_AppIterate_func -> Rep SDL_AppIterate_func x # to :: Rep SDL_AppIterate_func x -> SDL_AppIterate_func # | |||||
| Show SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods showsPrec :: Int -> SDL_AppIterate_func -> ShowS # show :: SDL_AppIterate_func -> String # showList :: [SDL_AppIterate_func] -> ShowS # | |||||
| Eq SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods (==) :: SDL_AppIterate_func -> SDL_AppIterate_func -> Bool # (/=) :: SDL_AppIterate_func -> SDL_AppIterate_func -> Bool # | |||||
| Ord SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods compare :: SDL_AppIterate_func -> SDL_AppIterate_func -> Ordering # (<) :: SDL_AppIterate_func -> SDL_AppIterate_func -> Bool # (<=) :: SDL_AppIterate_func -> SDL_AppIterate_func -> Bool # (>) :: SDL_AppIterate_func -> SDL_AppIterate_func -> Bool # (>=) :: SDL_AppIterate_func -> SDL_AppIterate_func -> Bool # max :: SDL_AppIterate_func -> SDL_AppIterate_func -> SDL_AppIterate_func # min :: SDL_AppIterate_func -> SDL_AppIterate_func -> SDL_AppIterate_func # | |||||
| HasFFIType SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ReadRaw SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods readRaw :: Ptr SDL_AppIterate_func -> IO SDL_AppIterate_func # | |||||
| StaticSize SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods staticSizeOf :: Proxy SDL_AppIterate_func -> Int # | |||||
| WriteRaw SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods writeRaw :: Ptr SDL_AppIterate_func -> SDL_AppIterate_func -> IO () # | |||||
| HasCField SDL_AppIterate_func "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ FunPtr SDL_AppIterate_func_Aux => HasField "unwrap" SDL_AppIterate_func ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_AppIterate_func -> (ty -> SDL_AppIterate_func, ty) # | |||||
| ty ~ FunPtr SDL_AppIterate_func_Aux => HasField "unwrap" (Ptr SDL_AppIterate_func) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_AppIterate_func -> Ptr ty # | |||||
| type Rep SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_AppIterate_func = D1 ('MetaData "SDL_AppIterate_func" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_AppIterate_func" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr SDL_AppIterate_func_Aux)))) | |||||
| type FFIType SDL_AppIterate_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
| type CFieldType SDL_AppIterate_func "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
newtype SDL_AppEvent_func_Aux Source #
Auxiliary type used by SDL_AppEvent_func
- C declaration
SDL_AppEvent_func, defined atSDL3/SDL_init.h 164:33
Constructors
| SDL_AppEvent_func_Aux | |
Instances
| Generic SDL_AppEvent_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods from :: SDL_AppEvent_func_Aux -> Rep SDL_AppEvent_func_Aux x # to :: Rep SDL_AppEvent_func_Aux x -> SDL_AppEvent_func_Aux # | |||||
| FromFunPtr SDL_AppEvent_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods fromFunPtr :: FunPtr SDL_AppEvent_func_Aux -> SDL_AppEvent_func_Aux # | |||||
| ToFunPtr SDL_AppEvent_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods toFunPtr :: SDL_AppEvent_func_Aux -> IO (FunPtr SDL_AppEvent_func_Aux) # | |||||
| HasCField SDL_AppEvent_func_Aux "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ (Ptr Void -> Ptr SDL_Event -> IO SDL_AppResult) => HasField "unwrap" SDL_AppEvent_func_Aux ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_AppEvent_func_Aux -> (ty -> SDL_AppEvent_func_Aux, ty) # | |||||
| ty ~ (Ptr Void -> Ptr SDL_Event -> IO SDL_AppResult) => HasField "unwrap" (Ptr SDL_AppEvent_func_Aux) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_AppEvent_func_Aux -> Ptr ty # | |||||
| type Rep SDL_AppEvent_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_AppEvent_func_Aux = D1 ('MetaData "SDL_AppEvent_func_Aux" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_AppEvent_func_Aux" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr Void -> Ptr SDL_Event -> IO SDL_AppResult)))) | |||||
| type CFieldType SDL_AppEvent_func_Aux "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
newtype SDL_AppEvent_func Source #
Function pointer typedef for SDL_AppEvent.
These are used by SDL_EnterAppMainCallbacks. This mechanism operates behind the scenes for apps using the optional main callbacks. Apps that want to use this should just implement SDL_AppEvent directly.
appstate- an optional pointer, provided by the app in SDL_AppInit.
event- the new event for the app to examine.
- Returns
- SDL_APP_FAILURE to terminate with an error, SDL_APP_SUCCESS to terminate with success, SDL_APP_CONTINUE to continue.
- C declaration
SDL_AppEvent_func, defined atSDL3/SDL_init.h 164:33
Since: 3.2.0
Constructors
| SDL_AppEvent_func | |
Fields | |
Instances
| Storable SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods sizeOf :: SDL_AppEvent_func -> Int # alignment :: SDL_AppEvent_func -> Int # peekElemOff :: Ptr SDL_AppEvent_func -> Int -> IO SDL_AppEvent_func # pokeElemOff :: Ptr SDL_AppEvent_func -> Int -> SDL_AppEvent_func -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_AppEvent_func # pokeByteOff :: Ptr b -> Int -> SDL_AppEvent_func -> IO () # peek :: Ptr SDL_AppEvent_func -> IO SDL_AppEvent_func # poke :: Ptr SDL_AppEvent_func -> SDL_AppEvent_func -> IO () # | |||||
| Generic SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods from :: SDL_AppEvent_func -> Rep SDL_AppEvent_func x # to :: Rep SDL_AppEvent_func x -> SDL_AppEvent_func # | |||||
| Show SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods showsPrec :: Int -> SDL_AppEvent_func -> ShowS # show :: SDL_AppEvent_func -> String # showList :: [SDL_AppEvent_func] -> ShowS # | |||||
| Eq SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods (==) :: SDL_AppEvent_func -> SDL_AppEvent_func -> Bool # (/=) :: SDL_AppEvent_func -> SDL_AppEvent_func -> Bool # | |||||
| Ord SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods compare :: SDL_AppEvent_func -> SDL_AppEvent_func -> Ordering # (<) :: SDL_AppEvent_func -> SDL_AppEvent_func -> Bool # (<=) :: SDL_AppEvent_func -> SDL_AppEvent_func -> Bool # (>) :: SDL_AppEvent_func -> SDL_AppEvent_func -> Bool # (>=) :: SDL_AppEvent_func -> SDL_AppEvent_func -> Bool # max :: SDL_AppEvent_func -> SDL_AppEvent_func -> SDL_AppEvent_func # min :: SDL_AppEvent_func -> SDL_AppEvent_func -> SDL_AppEvent_func # | |||||
| HasFFIType SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods toFFIType :: SDL_AppEvent_func -> FFIType SDL_AppEvent_func # fromFFIType :: FFIType SDL_AppEvent_func -> SDL_AppEvent_func # | |||||
| ReadRaw SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods | |||||
| StaticSize SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods staticSizeOf :: Proxy SDL_AppEvent_func -> Int # | |||||
| WriteRaw SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods writeRaw :: Ptr SDL_AppEvent_func -> SDL_AppEvent_func -> IO () # | |||||
| HasCField SDL_AppEvent_func "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ FunPtr SDL_AppEvent_func_Aux => HasField "unwrap" SDL_AppEvent_func ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_AppEvent_func -> (ty -> SDL_AppEvent_func, ty) # | |||||
| ty ~ FunPtr SDL_AppEvent_func_Aux => HasField "unwrap" (Ptr SDL_AppEvent_func) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_AppEvent_func -> Ptr ty # | |||||
| type Rep SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_AppEvent_func = D1 ('MetaData "SDL_AppEvent_func" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_AppEvent_func" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr SDL_AppEvent_func_Aux)))) | |||||
| type FFIType SDL_AppEvent_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
| type CFieldType SDL_AppEvent_func "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
newtype SDL_AppQuit_func_Aux Source #
Auxiliary type used by SDL_AppQuit_func
- C declaration
SDL_AppQuit_func, defined atSDL3/SDL_init.h 178:24
Constructors
| SDL_AppQuit_func_Aux | |
Fields
| |
Instances
| Generic SDL_AppQuit_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods from :: SDL_AppQuit_func_Aux -> Rep SDL_AppQuit_func_Aux x # to :: Rep SDL_AppQuit_func_Aux x -> SDL_AppQuit_func_Aux # | |||||
| FromFunPtr SDL_AppQuit_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods fromFunPtr :: FunPtr SDL_AppQuit_func_Aux -> SDL_AppQuit_func_Aux # | |||||
| ToFunPtr SDL_AppQuit_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods toFunPtr :: SDL_AppQuit_func_Aux -> IO (FunPtr SDL_AppQuit_func_Aux) # | |||||
| HasCField SDL_AppQuit_func_Aux "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ (Ptr Void -> SDL_AppResult -> IO ()) => HasField "unwrap" SDL_AppQuit_func_Aux ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_AppQuit_func_Aux -> (ty -> SDL_AppQuit_func_Aux, ty) # | |||||
| ty ~ (Ptr Void -> SDL_AppResult -> IO ()) => HasField "unwrap" (Ptr SDL_AppQuit_func_Aux) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_AppQuit_func_Aux -> Ptr ty # | |||||
| type Rep SDL_AppQuit_func_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_AppQuit_func_Aux = D1 ('MetaData "SDL_AppQuit_func_Aux" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_AppQuit_func_Aux" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr Void -> SDL_AppResult -> IO ())))) | |||||
| type CFieldType SDL_AppQuit_func_Aux "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
newtype SDL_AppQuit_func Source #
Function pointer typedef for SDL_AppQuit.
These are used by SDL_EnterAppMainCallbacks. This mechanism operates behind the scenes for apps using the optional main callbacks. Apps that want to use this should just implement SDL_AppEvent directly.
appstate- an optional pointer, provided by the app in SDL_AppInit.
result- the result code that terminated the app (success or failure).
- C declaration
SDL_AppQuit_func, defined atSDL3/SDL_init.h 178:24
Since: 3.2.0
Constructors
| SDL_AppQuit_func | |
Fields | |
Instances
| Storable SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods sizeOf :: SDL_AppQuit_func -> Int # alignment :: SDL_AppQuit_func -> Int # peekElemOff :: Ptr SDL_AppQuit_func -> Int -> IO SDL_AppQuit_func # pokeElemOff :: Ptr SDL_AppQuit_func -> Int -> SDL_AppQuit_func -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_AppQuit_func # pokeByteOff :: Ptr b -> Int -> SDL_AppQuit_func -> IO () # peek :: Ptr SDL_AppQuit_func -> IO SDL_AppQuit_func # poke :: Ptr SDL_AppQuit_func -> SDL_AppQuit_func -> IO () # | |||||
| Generic SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods from :: SDL_AppQuit_func -> Rep SDL_AppQuit_func x # to :: Rep SDL_AppQuit_func x -> SDL_AppQuit_func # | |||||
| Show SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods showsPrec :: Int -> SDL_AppQuit_func -> ShowS # show :: SDL_AppQuit_func -> String # showList :: [SDL_AppQuit_func] -> ShowS # | |||||
| Eq SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods (==) :: SDL_AppQuit_func -> SDL_AppQuit_func -> Bool # (/=) :: SDL_AppQuit_func -> SDL_AppQuit_func -> Bool # | |||||
| Ord SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods compare :: SDL_AppQuit_func -> SDL_AppQuit_func -> Ordering # (<) :: SDL_AppQuit_func -> SDL_AppQuit_func -> Bool # (<=) :: SDL_AppQuit_func -> SDL_AppQuit_func -> Bool # (>) :: SDL_AppQuit_func -> SDL_AppQuit_func -> Bool # (>=) :: SDL_AppQuit_func -> SDL_AppQuit_func -> Bool # max :: SDL_AppQuit_func -> SDL_AppQuit_func -> SDL_AppQuit_func # min :: SDL_AppQuit_func -> SDL_AppQuit_func -> SDL_AppQuit_func # | |||||
| HasFFIType SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods toFFIType :: SDL_AppQuit_func -> FFIType SDL_AppQuit_func # fromFFIType :: FFIType SDL_AppQuit_func -> SDL_AppQuit_func # | |||||
| ReadRaw SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods | |||||
| StaticSize SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods staticSizeOf :: Proxy SDL_AppQuit_func -> Int # staticAlignment :: Proxy SDL_AppQuit_func -> Int # | |||||
| WriteRaw SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods writeRaw :: Ptr SDL_AppQuit_func -> SDL_AppQuit_func -> IO () # | |||||
| HasCField SDL_AppQuit_func "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ FunPtr SDL_AppQuit_func_Aux => HasField "unwrap" SDL_AppQuit_func ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_AppQuit_func -> (ty -> SDL_AppQuit_func, ty) # | |||||
| ty ~ FunPtr SDL_AppQuit_func_Aux => HasField "unwrap" (Ptr SDL_AppQuit_func) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_AppQuit_func -> Ptr ty # | |||||
| type Rep SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_AppQuit_func = D1 ('MetaData "SDL_AppQuit_func" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_AppQuit_func" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr SDL_AppQuit_func_Aux)))) | |||||
| type FFIType SDL_AppQuit_func Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
| type CFieldType SDL_AppQuit_func "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
newtype SDL_MainThreadCallback_Aux Source #
Auxiliary type used by SDL_MainThreadCallback
- C declaration
SDL_MainThreadCallback, defined atSDL3/SDL_init.h 341:24
Constructors
| SDL_MainThreadCallback_Aux | |
Instances
| Generic SDL_MainThreadCallback_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods from :: SDL_MainThreadCallback_Aux -> Rep SDL_MainThreadCallback_Aux x # to :: Rep SDL_MainThreadCallback_Aux x -> SDL_MainThreadCallback_Aux # | |||||
| FromFunPtr SDL_MainThreadCallback_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
| ToFunPtr SDL_MainThreadCallback_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods toFunPtr :: SDL_MainThreadCallback_Aux -> IO (FunPtr SDL_MainThreadCallback_Aux) # | |||||
| HasCField SDL_MainThreadCallback_Aux "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ (Ptr Void -> IO ()) => HasField "unwrap" SDL_MainThreadCallback_Aux ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_MainThreadCallback_Aux -> (ty -> SDL_MainThreadCallback_Aux, ty) # | |||||
| ty ~ (Ptr Void -> IO ()) => HasField "unwrap" (Ptr SDL_MainThreadCallback_Aux) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_MainThreadCallback_Aux -> Ptr ty # | |||||
| type Rep SDL_MainThreadCallback_Aux Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_MainThreadCallback_Aux = D1 ('MetaData "SDL_MainThreadCallback_Aux" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_MainThreadCallback_Aux" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ptr Void -> IO ())))) | |||||
| type CFieldType SDL_MainThreadCallback_Aux "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
newtype SDL_MainThreadCallback Source #
Callback run on the main thread.
userdata- an app-controlled pointer that is passed to the callback.
- See also
sDL_RunOnMainThread- C declaration
SDL_MainThreadCallback, defined atSDL3/SDL_init.h 341:24
Since: 3.2.0
Constructors
| SDL_MainThreadCallback | |
Fields | |
Instances
| Storable SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods sizeOf :: SDL_MainThreadCallback -> Int # alignment :: SDL_MainThreadCallback -> Int # peekElemOff :: Ptr SDL_MainThreadCallback -> Int -> IO SDL_MainThreadCallback # pokeElemOff :: Ptr SDL_MainThreadCallback -> Int -> SDL_MainThreadCallback -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_MainThreadCallback # pokeByteOff :: Ptr b -> Int -> SDL_MainThreadCallback -> IO () # peek :: Ptr SDL_MainThreadCallback -> IO SDL_MainThreadCallback # poke :: Ptr SDL_MainThreadCallback -> SDL_MainThreadCallback -> IO () # | |||||
| Generic SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
Methods from :: SDL_MainThreadCallback -> Rep SDL_MainThreadCallback x # to :: Rep SDL_MainThreadCallback x -> SDL_MainThreadCallback # | |||||
| Show SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods showsPrec :: Int -> SDL_MainThreadCallback -> ShowS # show :: SDL_MainThreadCallback -> String # showList :: [SDL_MainThreadCallback] -> ShowS # | |||||
| Eq SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods (==) :: SDL_MainThreadCallback -> SDL_MainThreadCallback -> Bool # (/=) :: SDL_MainThreadCallback -> SDL_MainThreadCallback -> Bool # | |||||
| Ord SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods compare :: SDL_MainThreadCallback -> SDL_MainThreadCallback -> Ordering # (<) :: SDL_MainThreadCallback -> SDL_MainThreadCallback -> Bool # (<=) :: SDL_MainThreadCallback -> SDL_MainThreadCallback -> Bool # (>) :: SDL_MainThreadCallback -> SDL_MainThreadCallback -> Bool # (>=) :: SDL_MainThreadCallback -> SDL_MainThreadCallback -> Bool # max :: SDL_MainThreadCallback -> SDL_MainThreadCallback -> SDL_MainThreadCallback # min :: SDL_MainThreadCallback -> SDL_MainThreadCallback -> SDL_MainThreadCallback # | |||||
| HasFFIType SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ReadRaw SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods readRaw :: Ptr SDL_MainThreadCallback -> IO SDL_MainThreadCallback # | |||||
| StaticSize SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods | |||||
| WriteRaw SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods writeRaw :: Ptr SDL_MainThreadCallback -> SDL_MainThreadCallback -> IO () # | |||||
| HasCField SDL_MainThreadCallback "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Associated Types
| |||||
| ty ~ FunPtr SDL_MainThreadCallback_Aux => HasField "unwrap" SDL_MainThreadCallback ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods hasField :: SDL_MainThreadCallback -> (ty -> SDL_MainThreadCallback, ty) # | |||||
| ty ~ FunPtr SDL_MainThreadCallback_Aux => HasField "unwrap" (Ptr SDL_MainThreadCallback) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Init Methods getField :: Ptr SDL_MainThreadCallback -> Ptr ty # | |||||
| type Rep SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init type Rep SDL_MainThreadCallback = D1 ('MetaData "SDL_MainThreadCallback" "SDL3.Sys.Bindgen.Init" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_MainThreadCallback" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (FunPtr SDL_MainThreadCallback_Aux)))) | |||||
| type FFIType SDL_MainThreadCallback Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
| type CFieldType SDL_MainThreadCallback "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Init | |||||
sDL_PROP_APP_METADATA_NAME_STRING :: ByteString Source #
- C declaration
macro SDL_PROP_APP_METADATA_NAME_STRING, literal"SDL.app.metadata.name", defined atSDL3/SDL_init.h 471:9
sDL_PROP_APP_METADATA_VERSION_STRING :: ByteString Source #
- C declaration
macro SDL_PROP_APP_METADATA_VERSION_STRING, literal"SDL.app.metadata.version", defined atSDL3/SDL_init.h 472:9
sDL_PROP_APP_METADATA_IDENTIFIER_STRING :: ByteString Source #
- C declaration
macro SDL_PROP_APP_METADATA_IDENTIFIER_STRING, literal"SDL.app.metadata.identifier", defined atSDL3/SDL_init.h 473:9
sDL_PROP_APP_METADATA_CREATOR_STRING :: ByteString Source #
- C declaration
macro SDL_PROP_APP_METADATA_CREATOR_STRING, literal"SDL.app.metadata.creator", defined atSDL3/SDL_init.h 474:9
sDL_PROP_APP_METADATA_COPYRIGHT_STRING :: ByteString Source #
- C declaration
macro SDL_PROP_APP_METADATA_COPYRIGHT_STRING, literal"SDL.app.metadata.copyright", defined atSDL3/SDL_init.h 475:9
sDL_PROP_APP_METADATA_URL_STRING :: ByteString Source #
- C declaration
macro SDL_PROP_APP_METADATA_URL_STRING, literal"SDL.app.metadata.url", defined atSDL3/SDL_init.h 476:9
sDL_PROP_APP_METADATA_TYPE_STRING :: ByteString Source #
- C declaration
macro SDL_PROP_APP_METADATA_TYPE_STRING, literal"SDL.app.metadata.type", defined atSDL3/SDL_init.h 477:9