| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Surface
Description
SDL surfaces are buffers of pixels in system RAM. These are useful for passing around and manipulating images that are not stored in GPU memory.
SDL_Surface makes serious efforts to manage images in various formats, and provides a reasonable toolbox for transforming the data, including copying between surfaces, filling rectangles in the image data, etc.
There is also a simple .bmp loader, SDL_LoadBMP(), and a simple .png loader, SDL_LoadPNG(). SDL itself does not provide loaders for other file formats, but there are several excellent external libraries that do, including its own satellite library, SDL_image In general these functions are thread-safe in that they can be called on different threads with different surfaces. You should not try to modify any surface from two threads simultaneously. The flags on an SDL_Surface.
These are generally considered read-only.
Since: 3.2.0
Synopsis
- newtype SDL_SurfaceFlags = SDL_SurfaceFlags {}
- sDL_SURFACE_PREALLOCATED :: CUInt
- sDL_SURFACE_LOCK_NEEDED :: CUInt
- sDL_SURFACE_LOCKED :: CUInt
- sDL_SURFACE_SIMD_ALIGNED :: CUInt
- newtype SDL_ScaleMode = SDL_ScaleMode {}
- pattern SDL_SCALEMODE_INVALID :: SDL_ScaleMode
- pattern SDL_SCALEMODE_NEAREST :: SDL_ScaleMode
- pattern SDL_SCALEMODE_LINEAR :: SDL_ScaleMode
- pattern SDL_SCALEMODE_PIXELART :: SDL_ScaleMode
- newtype SDL_FlipMode = SDL_FlipMode {}
- pattern SDL_FLIP_NONE :: SDL_FlipMode
- pattern SDL_FLIP_HORIZONTAL :: SDL_FlipMode
- pattern SDL_FLIP_VERTICAL :: SDL_FlipMode
- pattern SDL_FLIP_HORIZONTAL_AND_VERTICAL :: SDL_FlipMode
- data SDL_Surface = SDL_Surface {}
- sDL_PROP_SURFACE_SDR_WHITE_POINT_FLOAT :: ByteString
- sDL_PROP_SURFACE_HDR_HEADROOM_FLOAT :: ByteString
- sDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING :: ByteString
- sDL_PROP_SURFACE_HOTSPOT_X_NUMBER :: ByteString
- sDL_PROP_SURFACE_HOTSPOT_Y_NUMBER :: ByteString
- sDL_PROP_SURFACE_ROTATION_FLOAT :: ByteString
Documentation
newtype SDL_SurfaceFlags Source #
- C declaration
SDL_SurfaceFlags, defined atSDL3/SDL_surface.h 68:16
Constructors
| SDL_SurfaceFlags | |
Instances
sDL_SURFACE_PREALLOCATED :: CUInt Source #
Surface uses preallocated pixel memory
- C declaration
macro SDL_SURFACE_PREALLOCATED, defined atSDL3/SDL_surface.h 70:9
sDL_SURFACE_LOCK_NEEDED :: CUInt Source #
Surface needs to be locked to access pixels
- C declaration
macro SDL_SURFACE_LOCK_NEEDED, defined atSDL3/SDL_surface.h 71:9
sDL_SURFACE_LOCKED :: CUInt Source #
Surface is currently locked
- C declaration
macro SDL_SURFACE_LOCKED, defined atSDL3/SDL_surface.h 72:9
sDL_SURFACE_SIMD_ALIGNED :: CUInt Source #
Surface uses pixel memory allocated with SDL_aligned_alloc()
- C declaration
macro SDL_SURFACE_SIMD_ALIGNED, defined atSDL3/SDL_surface.h 73:9
newtype SDL_ScaleMode Source #
The scaling mode.
- C declaration
enum SDL_ScaleMode, defined atSDL3/SDL_surface.h 87:14
Since: 3.2.0
Constructors
| SDL_ScaleMode | |
Instances
| Storable SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods sizeOf :: SDL_ScaleMode -> Int # alignment :: SDL_ScaleMode -> Int # peekElemOff :: Ptr SDL_ScaleMode -> Int -> IO SDL_ScaleMode # pokeElemOff :: Ptr SDL_ScaleMode -> Int -> SDL_ScaleMode -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_ScaleMode # pokeByteOff :: Ptr b -> Int -> SDL_ScaleMode -> IO () # peek :: Ptr SDL_ScaleMode -> IO SDL_ScaleMode # poke :: Ptr SDL_ScaleMode -> SDL_ScaleMode -> IO () # | |||||
| Generic SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| Read SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods readsPrec :: Int -> ReadS SDL_ScaleMode # readList :: ReadS [SDL_ScaleMode] # | |||||
| Show SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods showsPrec :: Int -> SDL_ScaleMode -> ShowS # show :: SDL_ScaleMode -> String # showList :: [SDL_ScaleMode] -> ShowS # | |||||
| Eq SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods (==) :: SDL_ScaleMode -> SDL_ScaleMode -> Bool # (/=) :: SDL_ScaleMode -> SDL_ScaleMode -> Bool # | |||||
| Ord SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods compare :: SDL_ScaleMode -> SDL_ScaleMode -> Ordering # (<) :: SDL_ScaleMode -> SDL_ScaleMode -> Bool # (<=) :: SDL_ScaleMode -> SDL_ScaleMode -> Bool # (>) :: SDL_ScaleMode -> SDL_ScaleMode -> Bool # (>=) :: SDL_ScaleMode -> SDL_ScaleMode -> Bool # max :: SDL_ScaleMode -> SDL_ScaleMode -> SDL_ScaleMode # min :: SDL_ScaleMode -> SDL_ScaleMode -> SDL_ScaleMode # | |||||
| Prim SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods sizeOfType# :: Proxy SDL_ScaleMode -> Int# # sizeOf# :: SDL_ScaleMode -> Int# # alignmentOfType# :: Proxy SDL_ScaleMode -> Int# # alignment# :: SDL_ScaleMode -> Int# # indexByteArray# :: ByteArray# -> Int# -> SDL_ScaleMode # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, SDL_ScaleMode #) # writeByteArray# :: MutableByteArray# s -> Int# -> SDL_ScaleMode -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> SDL_ScaleMode -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> SDL_ScaleMode # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, SDL_ScaleMode #) # writeOffAddr# :: Addr# -> Int# -> SDL_ScaleMode -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> SDL_ScaleMode -> State# s -> State# s # | |||||
| CEnum SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
Methods toCEnum :: CEnumZ SDL_ScaleMode -> SDL_ScaleMode # fromCEnum :: SDL_ScaleMode -> CEnumZ SDL_ScaleMode # declaredValues :: proxy SDL_ScaleMode -> DeclaredValues SDL_ScaleMode # showsUndeclared :: proxy SDL_ScaleMode -> Int -> CEnumZ SDL_ScaleMode -> ShowS # readPrecUndeclared :: ReadPrec SDL_ScaleMode # isDeclared :: SDL_ScaleMode -> Bool # | |||||
| SequentialCEnum SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| HasFFIType SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
Methods | |||||
| ReadRaw SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods readRaw :: Ptr SDL_ScaleMode -> IO SDL_ScaleMode # | |||||
| StaticSize SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| WriteRaw SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods writeRaw :: Ptr SDL_ScaleMode -> SDL_ScaleMode -> IO () # | |||||
| HasCField SDL_ScaleMode "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| ty ~ CInt => HasField "unwrap" SDL_ScaleMode ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods hasField :: SDL_ScaleMode -> (ty -> SDL_ScaleMode, ty) # | |||||
| ty ~ CInt => HasField "unwrap" (Ptr SDL_ScaleMode) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods getField :: Ptr SDL_ScaleMode -> Ptr ty # | |||||
| type Rep SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface type Rep SDL_ScaleMode = D1 ('MetaData "SDL_ScaleMode" "SDL3.Sys.Bindgen.Surface" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_ScaleMode" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CInt))) | |||||
| type CEnumZ SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type FFIType SDL_ScaleMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type CFieldType SDL_ScaleMode "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
pattern SDL_SCALEMODE_INVALID :: SDL_ScaleMode Source #
- C declaration
SDL_SCALEMODE_INVALID, defined atSDL3/SDL_surface.h 89:5
pattern SDL_SCALEMODE_NEAREST :: SDL_ScaleMode Source #
nearest pixel sampling
- C declaration
SDL_SCALEMODE_NEAREST, defined atSDL3/SDL_surface.h 90:5
pattern SDL_SCALEMODE_LINEAR :: SDL_ScaleMode Source #
linear filtering
- C declaration
SDL_SCALEMODE_LINEAR, defined atSDL3/SDL_surface.h 91:5
pattern SDL_SCALEMODE_PIXELART :: SDL_ScaleMode Source #
nearest pixel sampling with improved scaling for pixel art, available since SDL 3.4.0
- C declaration
SDL_SCALEMODE_PIXELART, defined atSDL3/SDL_surface.h 92:5
newtype SDL_FlipMode Source #
The flip mode.
- C declaration
enum SDL_FlipMode, defined atSDL3/SDL_surface.h 100:14
Since: 3.2.0
Constructors
| SDL_FlipMode | |
Instances
| Storable SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods sizeOf :: SDL_FlipMode -> Int # alignment :: SDL_FlipMode -> Int # peekElemOff :: Ptr SDL_FlipMode -> Int -> IO SDL_FlipMode # pokeElemOff :: Ptr SDL_FlipMode -> Int -> SDL_FlipMode -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_FlipMode # pokeByteOff :: Ptr b -> Int -> SDL_FlipMode -> IO () # peek :: Ptr SDL_FlipMode -> IO SDL_FlipMode # poke :: Ptr SDL_FlipMode -> SDL_FlipMode -> IO () # | |||||
| Generic SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| Read SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods readsPrec :: Int -> ReadS SDL_FlipMode # readList :: ReadS [SDL_FlipMode] # | |||||
| Show SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods showsPrec :: Int -> SDL_FlipMode -> ShowS # show :: SDL_FlipMode -> String # showList :: [SDL_FlipMode] -> ShowS # | |||||
| Eq SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| Ord SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods compare :: SDL_FlipMode -> SDL_FlipMode -> Ordering # (<) :: SDL_FlipMode -> SDL_FlipMode -> Bool # (<=) :: SDL_FlipMode -> SDL_FlipMode -> Bool # (>) :: SDL_FlipMode -> SDL_FlipMode -> Bool # (>=) :: SDL_FlipMode -> SDL_FlipMode -> Bool # max :: SDL_FlipMode -> SDL_FlipMode -> SDL_FlipMode # min :: SDL_FlipMode -> SDL_FlipMode -> SDL_FlipMode # | |||||
| Prim SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods sizeOfType# :: Proxy SDL_FlipMode -> Int# # sizeOf# :: SDL_FlipMode -> Int# # alignmentOfType# :: Proxy SDL_FlipMode -> Int# # alignment# :: SDL_FlipMode -> Int# # indexByteArray# :: ByteArray# -> Int# -> SDL_FlipMode # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, SDL_FlipMode #) # writeByteArray# :: MutableByteArray# s -> Int# -> SDL_FlipMode -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> SDL_FlipMode -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> SDL_FlipMode # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, SDL_FlipMode #) # writeOffAddr# :: Addr# -> Int# -> SDL_FlipMode -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> SDL_FlipMode -> State# s -> State# s # | |||||
| CEnum SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
Methods toCEnum :: CEnumZ SDL_FlipMode -> SDL_FlipMode # fromCEnum :: SDL_FlipMode -> CEnumZ SDL_FlipMode # declaredValues :: proxy SDL_FlipMode -> DeclaredValues SDL_FlipMode # showsUndeclared :: proxy SDL_FlipMode -> Int -> CEnumZ SDL_FlipMode -> ShowS # readPrecUndeclared :: ReadPrec SDL_FlipMode # isDeclared :: SDL_FlipMode -> Bool # | |||||
| SequentialCEnum SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| HasFFIType SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
Methods | |||||
| ReadRaw SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods readRaw :: Ptr SDL_FlipMode -> IO SDL_FlipMode # | |||||
| StaticSize SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| WriteRaw SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods writeRaw :: Ptr SDL_FlipMode -> SDL_FlipMode -> IO () # | |||||
| HasCField SDL_FlipMode "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| ty ~ CUInt => HasField "unwrap" SDL_FlipMode ty Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods hasField :: SDL_FlipMode -> (ty -> SDL_FlipMode, ty) # | |||||
| ty ~ CUInt => HasField "unwrap" (Ptr SDL_FlipMode) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods getField :: Ptr SDL_FlipMode -> Ptr ty # | |||||
| type Rep SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface type Rep SDL_FlipMode = D1 ('MetaData "SDL_FlipMode" "SDL3.Sys.Bindgen.Surface" "sdl3-bindgen-sys-0.0.1.0-inplace" 'True) (C1 ('MetaCons "SDL_FlipMode" 'PrefixI 'True) (S1 ('MetaSel ('Just "unwrap") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CUInt))) | |||||
| type CEnumZ SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type FFIType SDL_FlipMode Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type CFieldType SDL_FlipMode "unwrap" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
pattern SDL_FLIP_NONE :: SDL_FlipMode Source #
Do not flip
- C declaration
SDL_FLIP_NONE, defined atSDL3/SDL_surface.h 102:5
pattern SDL_FLIP_HORIZONTAL :: SDL_FlipMode Source #
flip horizontally
- C declaration
SDL_FLIP_HORIZONTAL, defined atSDL3/SDL_surface.h 103:5
pattern SDL_FLIP_VERTICAL :: SDL_FlipMode Source #
flip vertically
- C declaration
SDL_FLIP_VERTICAL, defined atSDL3/SDL_surface.h 104:5
pattern SDL_FLIP_HORIZONTAL_AND_VERTICAL :: SDL_FlipMode Source #
flip horizontally and vertically (not a diagonal flip)
- C declaration
SDL_FLIP_HORIZONTAL_AND_VERTICAL, defined atSDL3/SDL_surface.h 105:5
data SDL_Surface Source #
A collection of pixels used in software blitting.
Pixels are arranged in memory in rows, with the top row first. Each row occupies an amount of memory given by the pitch (sometimes known as the row stride in non-SDL APIs).
Within each row, pixels are arranged from left to right until the width is reached. Each pixel occupies a number of bits appropriate for its format, with most formats representing each pixel as one or more whole bytes (in some indexed formats, instead multiple pixels are packed into each byte), and a byte order given by the format. After encoding all pixels, any remaining bytes to reach the pitch are used as padding to reach a desired alignment, and have undefined contents.
When a surface holds YUV format data, the planes are assumed to be contiguous without padding between them, e.g. a 32x32 surface in NV12 format with a pitch of 32 would consist of 32x32 bytes of Y plane followed by 32x16 bytes of UV plane.
When a surface holds MJPG format data, pixels points at the compressed JPEG image and pitch is the length of that data.
- See also
sDL_CreateSurface,sDL_DestroySurface- C declaration
struct SDL_Surface, defined atSDL3/SDL_surface.h 138:8
Since: 3.2.0
Constructors
| SDL_Surface | |
Fields
| |
Instances
| Storable SDL_Surface Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods sizeOf :: SDL_Surface -> Int # alignment :: SDL_Surface -> Int # peekElemOff :: Ptr SDL_Surface -> Int -> IO SDL_Surface # pokeElemOff :: Ptr SDL_Surface -> Int -> SDL_Surface -> IO () # peekByteOff :: Ptr b -> Int -> IO SDL_Surface # pokeByteOff :: Ptr b -> Int -> SDL_Surface -> IO () # peek :: Ptr SDL_Surface -> IO SDL_Surface # poke :: Ptr SDL_Surface -> SDL_Surface -> IO () # | |||||
| Generic SDL_Surface Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| Show SDL_Surface Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods showsPrec :: Int -> SDL_Surface -> ShowS # show :: SDL_Surface -> String # showList :: [SDL_Surface] -> ShowS # | |||||
| Eq SDL_Surface Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| ReadRaw SDL_Surface Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods readRaw :: Ptr SDL_Surface -> IO SDL_Surface # | |||||
| StaticSize SDL_Surface Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| WriteRaw SDL_Surface Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods writeRaw :: Ptr SDL_Surface -> SDL_Surface -> IO () # | |||||
| IsStruct SDL_Surface Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods zero :: SDL_Surface # | |||||
| HasCField SDL_Surface "flags" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| HasCField SDL_Surface "format" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| HasCField SDL_Surface "h" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| HasCField SDL_Surface "pitch" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| HasCField SDL_Surface "pixels" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| HasCField SDL_Surface "refcount" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| HasCField SDL_Surface "reserved" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| HasCField SDL_Surface "w" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Associated Types
| |||||
| ty ~ SDL_SurfaceFlags => HasField "flags" SDL_Surface ty Source # | The flags of the surface, read-only
| ||||
Defined in SDL3.Sys.Bindgen.Surface Methods hasField :: SDL_Surface -> (ty -> SDL_Surface, ty) # | |||||
| ty ~ SDL_PixelFormat => HasField "format" SDL_Surface ty Source # | The format of the surface, read-only
| ||||
Defined in SDL3.Sys.Bindgen.Surface Methods hasField :: SDL_Surface -> (ty -> SDL_Surface, ty) # | |||||
| ty ~ CInt => HasField "h" SDL_Surface ty Source # | The height of the surface, read-only.
| ||||
Defined in SDL3.Sys.Bindgen.Surface Methods hasField :: SDL_Surface -> (ty -> SDL_Surface, ty) # | |||||
| ty ~ CInt => HasField "pitch" SDL_Surface ty Source # | The distance in bytes between rows of pixels, read-only
| ||||
Defined in SDL3.Sys.Bindgen.Surface Methods hasField :: SDL_Surface -> (ty -> SDL_Surface, ty) # | |||||
| ty ~ Ptr Void => HasField "pixels" SDL_Surface ty Source # | A pointer to the pixels of the surface, the pixels are writeable if non-NULL
| ||||
Defined in SDL3.Sys.Bindgen.Surface Methods hasField :: SDL_Surface -> (ty -> SDL_Surface, ty) # | |||||
| ty ~ CInt => HasField "refcount" SDL_Surface ty Source # | Application reference count, used when freeing surface
| ||||
Defined in SDL3.Sys.Bindgen.Surface Methods hasField :: SDL_Surface -> (ty -> SDL_Surface, ty) # | |||||
| ty ~ Ptr Void => HasField "reserved" SDL_Surface ty Source # | Reserved for internal use
| ||||
Defined in SDL3.Sys.Bindgen.Surface Methods hasField :: SDL_Surface -> (ty -> SDL_Surface, ty) # | |||||
| ty ~ CInt => HasField "w" SDL_Surface ty Source # | The width of the surface, read-only.
| ||||
Defined in SDL3.Sys.Bindgen.Surface Methods hasField :: SDL_Surface -> (ty -> SDL_Surface, ty) # | |||||
| ty ~ SDL_SurfaceFlags => HasField "flags" (Ptr SDL_Surface) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods getField :: Ptr SDL_Surface -> Ptr ty # | |||||
| ty ~ SDL_PixelFormat => HasField "format" (Ptr SDL_Surface) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods getField :: Ptr SDL_Surface -> Ptr ty # | |||||
| ty ~ CInt => HasField "h" (Ptr SDL_Surface) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods getField :: Ptr SDL_Surface -> Ptr ty # | |||||
| ty ~ CInt => HasField "pitch" (Ptr SDL_Surface) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods getField :: Ptr SDL_Surface -> Ptr ty # | |||||
| ty ~ Ptr Void => HasField "pixels" (Ptr SDL_Surface) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods getField :: Ptr SDL_Surface -> Ptr ty # | |||||
| ty ~ CInt => HasField "refcount" (Ptr SDL_Surface) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods getField :: Ptr SDL_Surface -> Ptr ty # | |||||
| ty ~ Ptr Void => HasField "reserved" (Ptr SDL_Surface) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods getField :: Ptr SDL_Surface -> Ptr ty # | |||||
| ty ~ CInt => HasField "w" (Ptr SDL_Surface) (Ptr ty :: Type) Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface Methods getField :: Ptr SDL_Surface -> Ptr ty # | |||||
| type Rep SDL_Surface Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface type Rep SDL_Surface = D1 ('MetaData "SDL_Surface" "SDL3.Sys.Bindgen.Surface" "sdl3-bindgen-sys-0.0.1.0-inplace" 'False) (C1 ('MetaCons "SDL_Surface" 'PrefixI 'True) (((S1 ('MetaSel ('Just "flags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SDL_SurfaceFlags) :*: S1 ('MetaSel ('Just "format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SDL_PixelFormat)) :*: (S1 ('MetaSel ('Just "w") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt) :*: S1 ('MetaSel ('Just "h") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt))) :*: ((S1 ('MetaSel ('Just "pitch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt) :*: S1 ('MetaSel ('Just "pixels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Ptr Void))) :*: (S1 ('MetaSel ('Just "refcount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CInt) :*: S1 ('MetaSel ('Just "reserved") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Ptr Void)))))) | |||||
| type CFieldType SDL_Surface "flags" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type CFieldType SDL_Surface "format" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type CFieldType SDL_Surface "h" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type CFieldType SDL_Surface "pitch" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type CFieldType SDL_Surface "pixels" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type CFieldType SDL_Surface "refcount" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type CFieldType SDL_Surface "reserved" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
| type CFieldType SDL_Surface "w" Source # | |||||
Defined in SDL3.Sys.Bindgen.Surface | |||||
sDL_PROP_SURFACE_SDR_WHITE_POINT_FLOAT :: ByteString Source #
- C declaration
macro SDL_PROP_SURFACE_SDR_WHITE_POINT_FLOAT, literal"SDL.surface.SDR_white_point", defined atSDL3/SDL_surface.h 261:9
sDL_PROP_SURFACE_HDR_HEADROOM_FLOAT :: ByteString Source #
- C declaration
macro SDL_PROP_SURFACE_HDR_HEADROOM_FLOAT, literal"SDL.surface.HDR_headroom", defined atSDL3/SDL_surface.h 262:9
sDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING :: ByteString Source #
- C declaration
macro SDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING, literal"SDL.surface.tonemap", defined atSDL3/SDL_surface.h 263:9
sDL_PROP_SURFACE_HOTSPOT_X_NUMBER :: ByteString Source #
- C declaration
macro SDL_PROP_SURFACE_HOTSPOT_X_NUMBER, literal"SDL.surface.hotspot.x", defined atSDL3/SDL_surface.h 264:9
sDL_PROP_SURFACE_HOTSPOT_Y_NUMBER :: ByteString Source #
- C declaration
macro SDL_PROP_SURFACE_HOTSPOT_Y_NUMBER, literal"SDL.surface.hotspot.y", defined atSDL3/SDL_surface.h 265:9
sDL_PROP_SURFACE_ROTATION_FLOAT :: ByteString Source #
- C declaration
macro SDL_PROP_SURFACE_ROTATION_FLOAT, literal"SDL.surface.rotation", defined atSDL3/SDL_surface.h 266:9