| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Camera
Description
Video capture for the SDL library.
This API lets apps read input from video sources, like webcams. Camera devices can be enumerated, queried, and opened. Once opened, it will provide SDL_Surface objects as new frames of video come in. These surfaces can be uploaded to an SDL_Texture or processed as pixels in memory.
Several platforms will alert the user if an app tries to access a camera, and some will present a UI asking the user if your application should be allowed to obtain images at all, which they can deny. A successfully opened camera will not provide images until permission is granted. Applications, after opening a camera device, can see if they were granted access by either polling with the SDL_GetCameraPermissionState() function, or waiting for an SDL_EVENT_CAMERA_DEVICE_APPROVED or SDL_EVENT_CAMERA_DEVICE_DENIED event. Platforms that don't have any user approval process will report approval immediately.
Note that SDL cameras only provide video as individual frames; they will not provide full-motion video encoded in a movie file format, although an app is free to encode the acquired frames into any format it likes. It also does not provide audio from the camera hardware through this API; not only do many webcams not have microphones at all, many people from streamers to people on Zoom calls will want to use a separate microphone regardless of the camera. In any case, recorded audio will be available through SDL's audio API no matter what hardware provides the microphone.
Camera gotchas
Consumer-level camera hardware tends to take a little while to warm up, once the device has been opened. Generally most camera apps have some sort of UI to take a picture (a button to snap a pic while a preview is showing, some sort of multi-second countdown for the user to pose, like a photo booth), which puts control in the users' hands, or they are intended to stay on for long times (Pokemon Go, etc).
It's not uncommon that a newly-opened camera will provide a couple of completely black frames, maybe followed by some under-exposed images. If taking a single frame automatically, or recording video from a camera's input without the user initiating it from a preview, it could be wise to drop the first several frames (if not the first several seconds worth of frames!) before using images from a camera. This is a unique ID for a camera device for the time it is connected to the system, and is never reused for the lifetime of the application.
If the device is disconnected and reconnected, it will get a new ID.
The value 0 is an invalid ID.
- See also
sDL_GetCameras
Since: 3.2.0
Synopsis
- newtype SDL_CameraID = SDL_CameraID {}
- data SDL_Camera
- data SDL_CameraSpec = SDL_CameraSpec {}
- newtype SDL_CameraPosition = SDL_CameraPosition {}
- pattern SDL_CAMERA_POSITION_UNKNOWN :: SDL_CameraPosition
- pattern SDL_CAMERA_POSITION_FRONT_FACING :: SDL_CameraPosition
- pattern SDL_CAMERA_POSITION_BACK_FACING :: SDL_CameraPosition
- newtype SDL_CameraPermissionState = SDL_CameraPermissionState {}
- pattern SDL_CAMERA_PERMISSION_STATE_DENIED :: SDL_CameraPermissionState
- pattern SDL_CAMERA_PERMISSION_STATE_PENDING :: SDL_CameraPermissionState
- pattern SDL_CAMERA_PERMISSION_STATE_APPROVED :: SDL_CameraPermissionState
Documentation
newtype SDL_CameraID Source #
- C declaration
SDL_CameraID, defined atSDL3/SDL_camera.h 95:16
Constructors
| SDL_CameraID | |
Instances
data SDL_Camera Source #
The opaque structure used to identify an opened SDL camera.
- C declaration
struct SDL_Camera, defined atSDL3/SDL_camera.h 102:16
Since: 3.2.0
data SDL_CameraSpec Source #
The details of an output format for a camera device.
Cameras often support multiple formats; each one will be encapsulated in this struct.
- See also
sDL_GetCameraSupportedFormats,sDL_GetCameraFormat- C declaration
struct SDL_CameraSpec, defined atSDL3/SDL_camera.h 115:16
Since: 3.2.0
Constructors
| SDL_CameraSpec | |
Fields
| |
Instances
| Storable SDL_CameraSpec Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods sizeOf :: SDL_CameraSpec -> Int # alignment :: SDL_CameraSpec -> Int # peekElemOff :: Ptr SDL_CameraSpec -> Int -> IO SDL_CameraSpec # pokeElemOff :: Ptr SDL_CameraSpec -> Int -> SDL_CameraSpec -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_CameraSpec # pokeByteOff :: Ptr b -> Int -> SDL_CameraSpec -> IO () # peek :: Ptr SDL_CameraSpec -> IO SDL_CameraSpec # poke :: Ptr SDL_CameraSpec -> SDL_CameraSpec -> IO () # | |||||
| Generic SDL_CameraSpec Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
Methods from :: SDL_CameraSpec -> Rep SDL_CameraSpec x # to :: Rep SDL_CameraSpec x -> SDL_CameraSpec # | |||||
| Show SDL_CameraSpec Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods showsPrec :: Int -> SDL_CameraSpec -> ShowS # show :: SDL_CameraSpec -> String # showList :: [SDL_CameraSpec] -> ShowS # | |||||
| Eq SDL_CameraSpec Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods (==) :: SDL_CameraSpec -> SDL_CameraSpec -> Bool # (/=) :: SDL_CameraSpec -> SDL_CameraSpec -> Bool # | |||||
| ReadRaw SDL_CameraSpec Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods readRaw :: Ptr SDL_CameraSpec -> IO SDL_CameraSpec # | |||||
| StaticSize SDL_CameraSpec Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods staticSizeOf :: Proxy SDL_CameraSpec -> Int # staticAlignment :: Proxy SDL_CameraSpec -> Int # | |||||
| WriteRaw SDL_CameraSpec Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods writeRaw :: Ptr SDL_CameraSpec -> SDL_CameraSpec -> IO () # | |||||
| IsStruct SDL_CameraSpec Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods zero :: SDL_CameraSpec # | |||||
| HasCField SDL_CameraSpec "colorspace" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
| |||||
| HasCField SDL_CameraSpec "format" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
| |||||
| HasCField SDL_CameraSpec "framerate_denominator" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
| |||||
| HasCField SDL_CameraSpec "framerate_numerator" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
| |||||
| HasCField SDL_CameraSpec "height" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
| |||||
| HasCField SDL_CameraSpec "width" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
| |||||
| ty ~ SDL_Colorspace => HasField "colorspace" SDL_CameraSpec ty Source # | Frame colorspace
| ||||
Defined in SDL3.Sys.Bindgen.Camera Methods hasField :: SDL_CameraSpec -> (ty -> SDL_CameraSpec, ty) # | |||||
| ty ~ SDL_PixelFormat => HasField "format" SDL_CameraSpec ty Source # | Frame format
| ||||
Defined in SDL3.Sys.Bindgen.Camera Methods hasField :: SDL_CameraSpec -> (ty -> SDL_CameraSpec, ty) # | |||||
| ty ~ CInt => HasField "framerate_denominator" SDL_CameraSpec ty Source # | Frame rate denominator ((num / denom) == FPS, (denom / num) == duration in seconds)
| ||||
Defined in SDL3.Sys.Bindgen.Camera Methods hasField :: SDL_CameraSpec -> (ty -> SDL_CameraSpec, ty) # | |||||
| ty ~ CInt => HasField "framerate_numerator" SDL_CameraSpec ty Source # | Frame rate numerator ((num / denom) == FPS, (denom / num) == duration in seconds)
| ||||
Defined in SDL3.Sys.Bindgen.Camera Methods hasField :: SDL_CameraSpec -> (ty -> SDL_CameraSpec, ty) # | |||||
| ty ~ CInt => HasField "height" SDL_CameraSpec ty Source # | Frame height
| ||||
Defined in SDL3.Sys.Bindgen.Camera Methods hasField :: SDL_CameraSpec -> (ty -> SDL_CameraSpec, ty) # | |||||
| ty ~ CInt => HasField "width" SDL_CameraSpec ty Source # | Frame width
| ||||
Defined in SDL3.Sys.Bindgen.Camera Methods hasField :: SDL_CameraSpec -> (ty -> SDL_CameraSpec, ty) # | |||||
| ty ~ SDL_Colorspace => HasField "colorspace" (Ptr SDL_CameraSpec) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods getField :: Ptr SDL_CameraSpec -> Ptr ty # | |||||
| ty ~ SDL_PixelFormat => HasField "format" (Ptr SDL_CameraSpec) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods getField :: Ptr SDL_CameraSpec -> Ptr ty # | |||||
| ty ~ CInt => HasField "framerate_denominator" (Ptr SDL_CameraSpec) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods getField :: Ptr SDL_CameraSpec -> Ptr ty # | |||||
| ty ~ CInt => HasField "framerate_numerator" (Ptr SDL_CameraSpec) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods getField :: Ptr SDL_CameraSpec -> Ptr ty # | |||||
| ty ~ CInt => HasField "height" (Ptr SDL_CameraSpec) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods getField :: Ptr SDL_CameraSpec -> Ptr ty # | |||||
| ty ~ CInt => HasField "width" (Ptr SDL_CameraSpec) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods getField :: Ptr SDL_CameraSpec -> Ptr ty # | |||||
| type Rep SDL_CameraSpec Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera type Rep SDL_CameraSpec = D1 ('MetaData "SDL_CameraSpec" "SDL3.Sys.Bindgen.Camera" "sdl3-bindgen-sys-0.0.1.0-inplace" 'False) (C1 ('MetaCons "SDL_CameraSpec" 'PrefixI 'True) ((S1 ('MetaSel ('Just "format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SDL_PixelFormat) :*: (S1 ('MetaSel ('Just "colorspace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SDL_Colorspace) :*: S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt))) :*: (S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt) :*: (S1 ('MetaSel ('Just "framerate_numerator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt) :*: S1 ('MetaSel ('Just "framerate_denominator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt))))) | |||||
| type CFieldType SDL_CameraSpec "colorspace" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| type CFieldType SDL_CameraSpec "format" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| type CFieldType SDL_CameraSpec "framerate_denominator" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| type CFieldType SDL_CameraSpec "framerate_numerator" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| type CFieldType SDL_CameraSpec "height" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| type CFieldType SDL_CameraSpec "width" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
newtype SDL_CameraPosition Source #
The position of camera in relation to system device.
- See also
sDL_GetCameraPosition- C declaration
enum SDL_CameraPosition, defined atSDL3/SDL_camera.h 132:14
Since: 3.2.0
Constructors
| SDL_CameraPosition | |
Instances
| Storable SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods sizeOf :: SDL_CameraPosition -> Int # alignment :: SDL_CameraPosition -> Int # peekElemOff :: Ptr SDL_CameraPosition -> Int -> IO SDL_CameraPosition # pokeElemOff :: Ptr SDL_CameraPosition -> Int -> SDL_CameraPosition -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_CameraPosition # pokeByteOff :: Ptr b -> Int -> SDL_CameraPosition -> IO () # peek :: Ptr SDL_CameraPosition -> IO SDL_CameraPosition # poke :: Ptr SDL_CameraPosition -> SDL_CameraPosition -> IO () # | |||||
| Generic SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
Methods from :: SDL_CameraPosition -> Rep SDL_CameraPosition x # to :: Rep SDL_CameraPosition x -> SDL_CameraPosition # | |||||
| Read SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods readsPrec :: Int -> ReadS SDL_CameraPosition # readList :: ReadS [SDL_CameraPosition] # | |||||
| Show SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods showsPrec :: Int -> SDL_CameraPosition -> ShowS # show :: SDL_CameraPosition -> String # showList :: [SDL_CameraPosition] -> ShowS # | |||||
| Eq SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods (==) :: SDL_CameraPosition -> SDL_CameraPosition -> Bool # (/=) :: SDL_CameraPosition -> SDL_CameraPosition -> Bool # | |||||
| Ord SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods compare :: SDL_CameraPosition -> SDL_CameraPosition -> Ordering # (<) :: SDL_CameraPosition -> SDL_CameraPosition -> Bool # (<=) :: SDL_CameraPosition -> SDL_CameraPosition -> Bool # (>) :: SDL_CameraPosition -> SDL_CameraPosition -> Bool # (>=) :: SDL_CameraPosition -> SDL_CameraPosition -> Bool # max :: SDL_CameraPosition -> SDL_CameraPosition -> SDL_CameraPosition # min :: SDL_CameraPosition -> SDL_CameraPosition -> SDL_CameraPosition # | |||||
| Prim SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods sizeOfType# :: Proxy SDL_CameraPosition -> Int# # sizeOf# :: SDL_CameraPosition -> Int# # alignmentOfType# :: Proxy SDL_CameraPosition -> Int# # alignment# :: SDL_CameraPosition -> Int# # indexByteArray# :: ByteArray# -> Int# -> SDL_CameraPosition # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, SDL_CameraPosition #) # writeByteArray# :: MutableByteArray# s -> Int# -> SDL_CameraPosition -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> SDL_CameraPosition -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> SDL_CameraPosition # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, SDL_CameraPosition #) # writeOffAddr# :: Addr# -> Int# -> SDL_CameraPosition -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> SDL_CameraPosition -> State# s -> State# s # | |||||
| CEnum SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
Methods toCEnum :: CEnumZ SDL_CameraPosition -> SDL_CameraPosition # fromCEnum :: SDL_CameraPosition -> CEnumZ SDL_CameraPosition # declaredValues :: proxy SDL_CameraPosition -> DeclaredValues SDL_CameraPosition # showsUndeclared :: proxy SDL_CameraPosition -> Int -> CEnumZ SDL_CameraPosition -> ShowS # readPrecUndeclared :: ReadPrec SDL_CameraPosition # isDeclared :: SDL_CameraPosition -> Bool # mkDeclared :: CEnumZ SDL_CameraPosition -> Maybe SDL_CameraPosition # | |||||
| SequentialCEnum SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| HasFFIType SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
Methods toFFIType :: SDL_CameraPosition -> FFIType SDL_CameraPosition # fromFFIType :: FFIType SDL_CameraPosition -> SDL_CameraPosition # | |||||
| ReadRaw SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods readRaw :: Ptr SDL_CameraPosition -> IO SDL_CameraPosition # | |||||
| StaticSize SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods staticSizeOf :: Proxy SDL_CameraPosition -> Int # | |||||
| WriteRaw SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods writeRaw :: Ptr SDL_CameraPosition -> SDL_CameraPosition -> IO () # | |||||
| HasCField SDL_CameraPosition "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
| |||||
| ty ~ CUInt => HasField "unwrap" SDL_CameraPosition ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods hasField :: SDL_CameraPosition -> (ty -> SDL_CameraPosition, ty) # | |||||
| ty ~ CUInt => HasField "unwrap" (Ptr SDL_CameraPosition) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods getField :: Ptr SDL_CameraPosition -> Ptr ty # | |||||
| type Rep SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera type Rep SDL_CameraPosition = D1 ('MetaData "SDL_CameraPosition" "SDL3.Sys.Bindgen.Camera" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_CameraPosition" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt))) | |||||
| type CEnumZ SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| type FFIType SDL_CameraPosition Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| type CFieldType SDL_CameraPosition "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
pattern SDL_CAMERA_POSITION_UNKNOWN :: SDL_CameraPosition Source #
- C declaration
SDL_CAMERA_POSITION_UNKNOWN, defined atSDL3/SDL_camera.h 134:5
pattern SDL_CAMERA_POSITION_FRONT_FACING :: SDL_CameraPosition Source #
- C declaration
SDL_CAMERA_POSITION_FRONT_FACING, defined atSDL3/SDL_camera.h 135:5
pattern SDL_CAMERA_POSITION_BACK_FACING :: SDL_CameraPosition Source #
- C declaration
SDL_CAMERA_POSITION_BACK_FACING, defined atSDL3/SDL_camera.h 136:5
newtype SDL_CameraPermissionState Source #
The current state of a request for camera access.
- See also
sDL_GetCameraPermissionState- C declaration
enum SDL_CameraPermissionState, defined atSDL3/SDL_camera.h 146:14
Since: 3.4.0
Constructors
| SDL_CameraPermissionState | |
Instances
| Storable SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods sizeOf :: SDL_CameraPermissionState -> Int # alignment :: SDL_CameraPermissionState -> Int # peekElemOff :: Ptr SDL_CameraPermissionState -> Int -> IO SDL_CameraPermissionState # pokeElemOff :: Ptr SDL_CameraPermissionState -> Int -> SDL_CameraPermissionState -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_CameraPermissionState # pokeByteOff :: Ptr b -> Int -> SDL_CameraPermissionState -> IO () # peek :: Ptr SDL_CameraPermissionState -> IO SDL_CameraPermissionState # poke :: Ptr SDL_CameraPermissionState -> SDL_CameraPermissionState -> IO () # | |||||
| Generic SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
Methods from :: SDL_CameraPermissionState -> Rep SDL_CameraPermissionState x # to :: Rep SDL_CameraPermissionState x -> SDL_CameraPermissionState # | |||||
| Read SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| Show SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods showsPrec :: Int -> SDL_CameraPermissionState -> ShowS # show :: SDL_CameraPermissionState -> String # showList :: [SDL_CameraPermissionState] -> ShowS # | |||||
| Eq SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods (==) :: SDL_CameraPermissionState -> SDL_CameraPermissionState -> Bool # (/=) :: SDL_CameraPermissionState -> SDL_CameraPermissionState -> Bool # | |||||
| Ord SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods compare :: SDL_CameraPermissionState -> SDL_CameraPermissionState -> Ordering # (<) :: SDL_CameraPermissionState -> SDL_CameraPermissionState -> Bool # (<=) :: SDL_CameraPermissionState -> SDL_CameraPermissionState -> Bool # (>) :: SDL_CameraPermissionState -> SDL_CameraPermissionState -> Bool # (>=) :: SDL_CameraPermissionState -> SDL_CameraPermissionState -> Bool # max :: SDL_CameraPermissionState -> SDL_CameraPermissionState -> SDL_CameraPermissionState # min :: SDL_CameraPermissionState -> SDL_CameraPermissionState -> SDL_CameraPermissionState # | |||||
| Prim SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods sizeOfType# :: Proxy SDL_CameraPermissionState -> Int# # sizeOf# :: SDL_CameraPermissionState -> Int# # alignmentOfType# :: Proxy SDL_CameraPermissionState -> Int# # alignment# :: SDL_CameraPermissionState -> Int# # indexByteArray# :: ByteArray# -> Int# -> SDL_CameraPermissionState # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, SDL_CameraPermissionState #) # writeByteArray# :: MutableByteArray# s -> Int# -> SDL_CameraPermissionState -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> SDL_CameraPermissionState -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> SDL_CameraPermissionState # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, SDL_CameraPermissionState #) # writeOffAddr# :: Addr# -> Int# -> SDL_CameraPermissionState -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> SDL_CameraPermissionState -> State# s -> State# s # | |||||
| CEnum SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
Methods toCEnum :: CEnumZ SDL_CameraPermissionState -> SDL_CameraPermissionState # fromCEnum :: SDL_CameraPermissionState -> CEnumZ SDL_CameraPermissionState # declaredValues :: proxy SDL_CameraPermissionState -> DeclaredValues SDL_CameraPermissionState # showsUndeclared :: proxy SDL_CameraPermissionState -> Int -> CEnumZ SDL_CameraPermissionState -> ShowS # readPrecUndeclared :: ReadPrec SDL_CameraPermissionState # isDeclared :: SDL_CameraPermissionState -> Bool # mkDeclared :: CEnumZ SDL_CameraPermissionState -> Maybe SDL_CameraPermissionState # | |||||
| SequentialCEnum SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| HasFFIType SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
| |||||
| ReadRaw SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods readRaw :: Ptr SDL_CameraPermissionState -> IO SDL_CameraPermissionState # | |||||
| StaticSize SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods | |||||
| WriteRaw SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods writeRaw :: Ptr SDL_CameraPermissionState -> SDL_CameraPermissionState -> IO () # | |||||
| HasCField SDL_CameraPermissionState "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Associated Types
| |||||
| ty ~ CInt => HasField "unwrap" SDL_CameraPermissionState ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods hasField :: SDL_CameraPermissionState -> (ty -> SDL_CameraPermissionState, ty) # | |||||
| ty ~ CInt => HasField "unwrap" (Ptr SDL_CameraPermissionState) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera Methods getField :: Ptr SDL_CameraPermissionState -> Ptr ty # | |||||
| type Rep SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera type Rep SDL_CameraPermissionState = D1 ('MetaData "SDL_CameraPermissionState" "SDL3.Sys.Bindgen.Camera" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_CameraPermissionState" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt))) | |||||
| type CEnumZ SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| type FFIType SDL_CameraPermissionState Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
| type CFieldType SDL_CameraPermissionState "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Camera | |||||
pattern SDL_CAMERA_PERMISSION_STATE_DENIED :: SDL_CameraPermissionState Source #
- C declaration
SDL_CAMERA_PERMISSION_STATE_DENIED, defined atSDL3/SDL_camera.h 148:5
pattern SDL_CAMERA_PERMISSION_STATE_PENDING :: SDL_CameraPermissionState Source #
- C declaration
SDL_CAMERA_PERMISSION_STATE_PENDING, defined atSDL3/SDL_camera.h 149:5
pattern SDL_CAMERA_PERMISSION_STATE_APPROVED :: SDL_CameraPermissionState Source #
- C declaration
SDL_CAMERA_PERMISSION_STATE_APPROVED, defined atSDL3/SDL_camera.h 150:5