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 |
A fundamental type that describes an ordered list of Value
Synopsis
- newtype ValueArray = ValueArray (ManagedPtr ValueArray)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ValueArray o) => IsValueArray o
- toValueArray :: (MonadIO m, IsValueArray o) => o -> m ValueArray
- valueArrayAppendAndTakeValue :: (HasCallStack, MonadIO m) => GValue -> GValue -> m ()
- valueArrayAppendValue :: (HasCallStack, MonadIO m) => GValue -> GValue -> m ()
- valueArrayGetSize :: (HasCallStack, MonadIO m) => GValue -> m Word32
- valueArrayGetValue :: (HasCallStack, MonadIO m) => GValue -> Word32 -> m GValue
- valueArrayInit :: (HasCallStack, MonadIO m) => GValue -> Word32 -> m GValue
- valueArrayPrependValue :: (HasCallStack, MonadIO m) => GValue -> GValue -> m ()
Exported types
newtype ValueArray Source #
Memory-managed wrapper type.
ValueArray (ManagedPtr ValueArray) |
Instances
Eq ValueArray Source # | |
Defined in GI.Gst.Objects.ValueArray (==) :: ValueArray -> ValueArray -> Bool # (/=) :: ValueArray -> ValueArray -> Bool # | |
BoxedPtr ValueArray Source # | |
Defined in GI.Gst.Objects.ValueArray boxedPtrCopy :: ValueArray -> IO ValueArray boxedPtrFree :: ValueArray -> IO () | |
ManagedPtrNewtype ValueArray Source # | |
Defined in GI.Gst.Objects.ValueArray toManagedPtr :: ValueArray -> ManagedPtr ValueArray | |
TypedObject ValueArray Source # | |
Defined in GI.Gst.Objects.ValueArray | |
HasParentTypes ValueArray Source # | |
Defined in GI.Gst.Objects.ValueArray | |
type ParentTypes ValueArray Source # | |
Defined in GI.Gst.Objects.ValueArray |
class (BoxedPtr o, TypedObject o, IsDescendantOf ValueArray o) => IsValueArray o Source #
Type class for types which can be safely cast to ValueArray
, for instance with toValueArray
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf ValueArray o) => IsValueArray o Source # | |
Defined in GI.Gst.Objects.ValueArray |
toValueArray :: (MonadIO m, IsValueArray o) => o -> m ValueArray Source #
Cast to ValueArray
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
appendAndTakeValue
valueArrayAppendAndTakeValue Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m () |
Appends appendValue
to the GstValueArray in value
.
Since: 1.2
appendValue
valueArrayAppendValue Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m () |
Appends appendValue
to the GstValueArray in value
.
getSize
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Word32 | Returns: the number of values |
Gets the number of values contained in value
.
getValue
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Word32 |
|
-> m GValue | Returns: the value at the given index |
Gets the value that is a member of the array contained in value
and
has the index index
.
init
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Word32 |
|
-> m GValue | Returns: The |
Initializes and pre-allocates a Value
of type GST_TYPE_ARRAY
.
Since: 1.18
prependValue
valueArrayPrependValue Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m () |
Prepends prependValue
to the GstValueArray in value
.