Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Data structure to initialize Caps
from a string description usually
used in conjunction with GST_STATIC_CAPS()
and staticCapsGet
to
instantiate a Caps
.
Synopsis
- newtype StaticCaps = StaticCaps (ManagedPtr StaticCaps)
- newZeroStaticCaps :: MonadIO m => m StaticCaps
- staticCapsCleanup :: (HasCallStack, MonadIO m) => StaticCaps -> m ()
- staticCapsGet :: (HasCallStack, MonadIO m) => StaticCaps -> m (Maybe Caps)
- clearStaticCapsCaps :: MonadIO m => StaticCaps -> m ()
- getStaticCapsCaps :: MonadIO m => StaticCaps -> m (Maybe Caps)
- setStaticCapsCaps :: MonadIO m => StaticCaps -> Ptr Caps -> m ()
- clearStaticCapsString :: MonadIO m => StaticCaps -> m ()
- getStaticCapsString :: MonadIO m => StaticCaps -> m (Maybe Text)
- setStaticCapsString :: MonadIO m => StaticCaps -> CString -> m ()
Exported types
newtype StaticCaps Source #
Memory-managed wrapper type.
StaticCaps (ManagedPtr StaticCaps) |
Instances
Eq StaticCaps Source # | |
Defined in GI.Gst.Structs.StaticCaps (==) :: StaticCaps -> StaticCaps -> Bool # (/=) :: StaticCaps -> StaticCaps -> Bool # | |
BoxedPtr StaticCaps Source # | |
Defined in GI.Gst.Structs.StaticCaps boxedPtrCopy :: StaticCaps -> IO StaticCaps boxedPtrFree :: StaticCaps -> IO () | |
CallocPtr StaticCaps Source # | |
Defined in GI.Gst.Structs.StaticCaps boxedPtrCalloc :: IO (Ptr StaticCaps) | |
ManagedPtrNewtype StaticCaps Source # | |
Defined in GI.Gst.Structs.StaticCaps toManagedPtr :: StaticCaps -> ManagedPtr StaticCaps | |
tag ~ 'AttrSet => Constructible StaticCaps tag Source # | |
Defined in GI.Gst.Structs.StaticCaps new :: MonadIO m => (ManagedPtr StaticCaps -> StaticCaps) -> [AttrOp StaticCaps tag] -> m StaticCaps |
newZeroStaticCaps :: MonadIO m => m StaticCaps Source #
Construct a StaticCaps
struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
cleanup
:: (HasCallStack, MonadIO m) | |
=> StaticCaps |
|
-> m () |
Cleans up the cached caps contained in staticCaps
.
get
:: (HasCallStack, MonadIO m) | |
=> StaticCaps |
|
-> m (Maybe Caps) | Returns: a pointer to the |
Converts a StaticCaps
to a Caps
.
Properties
caps
the cached Caps
clearStaticCapsCaps :: MonadIO m => StaticCaps -> m () Source #
Set the value of the “caps
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#caps
getStaticCapsCaps :: MonadIO m => StaticCaps -> m (Maybe Caps) Source #
Get the value of the “caps
” field.
When overloading is enabled, this is equivalent to
get
staticCaps #caps
setStaticCapsCaps :: MonadIO m => StaticCaps -> Ptr Caps -> m () Source #
Set the value of the “caps
” field.
When overloading is enabled, this is equivalent to
set
staticCaps [ #caps:=
value ]
string
a string describing a caps
clearStaticCapsString :: MonadIO m => StaticCaps -> m () Source #
Set the value of the “string
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#string
getStaticCapsString :: MonadIO m => StaticCaps -> m (Maybe Text) Source #
Get the value of the “string
” field.
When overloading is enabled, this is equivalent to
get
staticCaps #string
setStaticCapsString :: MonadIO m => StaticCaps -> CString -> m () Source #
Set the value of the “string
” field.
When overloading is enabled, this is equivalent to
set
staticCaps [ #string:=
value ]