Gst.ValueList

g Gst.ValueList Gst.ValueList

Subclasses:

None

Methods

class

append_and_take_value (value, append_value)

class

append_value (value, append_value)

class

concat (value1, value2)

class

get_size (value)

class

get_value (value, index)

class

init (value, prealloc)

class

merge (value1, value2)

class

prepend_value (value, prepend_value)

Virtual Methods

None

Fields

None

Class Details

class Gst.ValueList
Abstract:

No

A fundamental type that describes an unordered list of GObject.Value

classmethod append_and_take_value(value, append_value)[source]
Parameters:

Appends append_value to the Gst.ValueList in value.

New in version 1.2.

classmethod append_value(value, append_value)[source]
Parameters:

Appends append_value to the Gst.ValueList in value.

classmethod concat(value1, value2)[source]
Parameters:
Returns:

an uninitialized GObject.Value to take the result

Return type:

dest: GObject.Value

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.

classmethod get_size(value)[source]
Parameters:

value (GObject.Value) – a GObject.Value of type #GST_TYPE_LIST

Returns:

the number of values

Return type:

int

Gets the number of values contained in value.

classmethod get_value(value, index)[source]
Parameters:
Returns:

the value at the given index

Return type:

GObject.Value

Gets the value that is a member of the list contained in value and has the index index.

classmethod init(value, prealloc)[source]
Parameters:
  • value (GObject.Value) – A zero-filled (uninitialized) GObject.Value structure

  • prealloc (int) – The number of entries to pre-allocate in the list

Returns:

The GObject.Value structure that has been passed in

Return type:

GObject.Value

Initializes and pre-allocates a GObject.Value of type #GST_TYPE_LIST.

New in version 1.18.

classmethod merge(value1, value2)[source]
Parameters:
Returns:

an uninitialized GObject.Value to take the result

Return type:

dest: GObject.Value

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).

classmethod prepend_value(value, prepend_value)[source]
Parameters:

Prepends prepend_value to the Gst.ValueList in value.