ValueArray

A gstreamer.ValueArray contains an array of gobject.Value elements.

Constructors

this
this(GValueArray* gValueArray, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(uint nPrealloced)

Allocate and initialize a new gstreamer.ValueArray, optionally preserve space for n_prealloced elements. New arrays always contain 0 elements, regardless of the value of n_prealloced.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

append
ValueArray append(Value value)

Insert a copy of value as last element of value_array. If value is NULL, an uninitialized value is appended.

copy
ValueArray copy()

Construct an exact copy of a gstreamer.ValueArray by duplicating all its contents.

free
void free()

Free a gstreamer.ValueArray including its contents.

getNth
Value getNth(uint index)

Return a pointer to the value at index_ containd in value_array.

getStruct
void* getStruct()

the main Gtk struct as a void*

getValueArrayStruct
GValueArray* getValueArrayStruct(bool transferOwnership)

Get the main Gtk struct

insert
ValueArray insert(uint index, Value value)

Insert a copy of value at specified position into value_array. If value is NULL, an uninitialized value is inserted.

prepend
ValueArray prepend(Value value)

Insert a copy of value as first element of value_array. If value is NULL, an uninitialized value is prepended.

remove
ValueArray remove(uint index)

Remove the value at position index_ from value_array.

sort
ValueArray sort(GCompareFunc compareFunc)

Sort value_array using compare_func to compare the elements according to the semantics of GCompareFunc

sortWithData
ValueArray sortWithData(GCompareDataFunc compareFunc, void* userData)

Sort value_array using compare_func to compare the elements according to the semantics of GCompareDataFunc

Static functions

getType
GType getType()

Variables

gValueArray
GValueArray* gValueArray;

the main Gtk struct