:right-sidebar: True ValueList =================================================================== .. currentmodule:: gi.repository.Gst .. class:: ValueList(*args, **kwargs) :no-contents-entry: A fundamental type that describes an unordered list of :obj:`~gi.repository.GObject.Value` Methods ------- .. rst-class:: interim-class .. class:: ValueList :no-index: .. classmethod:: append_and_take_value(append_value: ~gi.repository.GObject.Value) -> None Appends ``append_value`` to the GstValueList in ``value``\. .. versionadded:: 1.2 :param append_value: the value to append .. classmethod:: append_value(append_value: ~gi.repository.GObject.Value) -> None Appends ``append_value`` to the GstValueList in ``value``\. :param append_value: the value to append .. classmethod:: concat(value2: ~gi.repository.GObject.Value) -> ~gi.repository.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``. :param value2: a :obj:`~gi.repository.GObject.Value` .. classmethod:: get_size() -> int Gets the number of values contained in ``value``\. .. classmethod:: get_value(index: int) -> ~gi.repository.GObject.Value Gets the value that is a member of the list contained in ``value`` and has the index ``index``\. :param index: index of value to get from the list .. classmethod:: init(prealloc: int) -> ~gi.repository.GObject.Value Initializes and pre-allocates a :obj:`~gi.repository.GObject.Value` of type ``GST_TYPE_LIST``. .. versionadded:: 1.18 :param prealloc: The number of entries to pre-allocate in the list .. classmethod:: merge(value2: ~gi.repository.GObject.Value) -> ~gi.repository.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). :param value2: a :obj:`~gi.repository.GObject.Value` .. classmethod:: prepend_value(prepend_value: ~gi.repository.GObject.Value) -> None Prepends ``prepend_value`` to the GstValueList in ``value``\. :param prepend_value: the value to prepend