ValueList#
- class ValueList(*args, **kwargs)#
A fundamental type that describes an unordered list of Value
Methods#
- class ValueList
- classmethod append_and_take_value(value: Value, append_value: Value) None#
Appends
append_valueto the GstValueList invalue.Added in version 1.2.
- Parameters:
value – a
Valueof typeGST_TYPE_LISTappend_value – the value to append
- classmethod append_value(value: Value, append_value: Value) None#
Appends
append_valueto the GstValueList invalue.- Parameters:
value – a
Valueof typeGST_TYPE_LISTappend_value – the value to append
- classmethod concat(value1: Value, value2: Value) Value#
Concatenates copies of
value1andvalue2into a list. Values that are not of typeGST_TYPE_LISTare treated as if they were lists of length 1.destwill be initialized to the typeGST_TYPE_LIST.
- classmethod get_size(value: Value) int#
Gets the number of values contained in
value.- Parameters:
value – a
Valueof typeGST_TYPE_LIST
- classmethod get_value(value: Value, index: int) Value#
Gets the value that is a member of the list contained in
valueand has the indexindex.- Parameters:
value – a
Valueof typeGST_TYPE_LISTindex – index of value to get from the list
- classmethod init(value: Value, prealloc: int) Value#
Initializes and pre-allocates a
Valueof typeGST_TYPE_LIST.Added in version 1.18.
- Parameters:
value – A zero-filled (uninitialized)
Valuestructureprealloc – The number of entries to pre-allocate in the list
- classmethod merge(value1: Value, value2: Value) Value#
Merges copies of
value1andvalue2. Values that are not of typeGST_TYPE_LISTare treated as if they were lists of length 1.The result will be put into
destand will either be a list that will not contain any duplicates, or a non-list type (ifvalue1andvalue2were equal).