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 unordered list of Value
Synopsis
- newtype ValueList = ValueList (ManagedPtr ValueList)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ValueList o) => IsValueList o
- toValueList :: (MonadIO m, IsValueList o) => o -> m ValueList
- valueListAppendAndTakeValue :: (HasCallStack, MonadIO m) => GValue -> GValue -> m ()
- valueListAppendValue :: (HasCallStack, MonadIO m) => GValue -> GValue -> m ()
- valueListConcat :: (HasCallStack, MonadIO m) => GValue -> GValue -> m GValue
- valueListGetSize :: (HasCallStack, MonadIO m) => GValue -> m Word32
- valueListGetValue :: (HasCallStack, MonadIO m) => GValue -> Word32 -> m GValue
- valueListInit :: (HasCallStack, MonadIO m) => GValue -> Word32 -> m GValue
- valueListMerge :: (HasCallStack, MonadIO m) => GValue -> GValue -> m GValue
- valueListPrependValue :: (HasCallStack, MonadIO m) => GValue -> GValue -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq ValueList Source # | |
BoxedPtr ValueList Source # | |
Defined in GI.Gst.Objects.ValueList boxedPtrCopy :: ValueList -> IO ValueList # boxedPtrFree :: ValueList -> IO () # | |
ManagedPtrNewtype ValueList Source # | |
Defined in GI.Gst.Objects.ValueList | |
TypedObject ValueList Source # | |
Defined in GI.Gst.Objects.ValueList | |
HasParentTypes ValueList Source # | |
Defined in GI.Gst.Objects.ValueList | |
type ParentTypes ValueList Source # | |
Defined in GI.Gst.Objects.ValueList |
class (BoxedPtr o, TypedObject o, IsDescendantOf ValueList o) => IsValueList o Source #
Type class for types which can be safely cast to ValueList
, for instance with toValueList
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf ValueList o) => IsValueList o Source # | |
Defined in GI.Gst.Objects.ValueList |
toValueList :: (MonadIO m, IsValueList o) => o -> m ValueList Source #
Methods
appendAndTakeValue
valueListAppendAndTakeValue Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m () |
Appends appendValue
to the GstValueList in value
.
Since: 1.2
appendValue
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m () |
Appends appendValue
to the GstValueList in value
.
concat
Concatenates copies of value1
and value2
into a list. Values that are not
of type GST_TYPE_LIST
are treated as if they were lists of length 1.
dest
will be initialized to the type GST_TYPE_LIST
.
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 list 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_LIST
.
Since: 1.18
merge
Merges copies of value1
and value2
. Values that are not
of type GST_TYPE_LIST
are treated as if they were lists of length 1.
The result will be put into dest
and will either be a list that will not
contain any duplicates, or a non-list type (if value1
and value2
were equal).
prependValue
valueListPrependValue Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m () |
Prepends prependValue
to the GstValueList in value
.