Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Datastructure 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
- noStaticCaps :: Maybe 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.
Instances
WrappedPtr StaticCaps Source # | |
Defined in GI.Gst.Structs.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.
noStaticCaps :: Maybe StaticCaps Source #
A convenience alias for Nothing
:: Maybe
StaticCaps
.
Methods
cleanup
:: (HasCallStack, MonadIO m) | |
=> StaticCaps |
|
-> m () |
Clean 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 ]