Class: Gst::ValueList

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

A fundamental type that describes an unordered list of #GValue

Class Method Summary collapse

Class Method Details

.append_and_take_value(value, append_value) ⇒ nil

Appends append_value to the GstValueList in value.

Parameters:

  • value (GObject::Value)

    a #GValue of type #GST_TYPE_LIST

  • append_value (GObject::Value)

    the value to append

Returns:

  • (nil)

.append_value(value, append_value) ⇒ nil

Appends append_value to the GstValueList in value.

Parameters:

  • value (GObject::Value)

    a #GValue of type #GST_TYPE_LIST

  • append_value (GObject::Value)

    the value to append

Returns:

  • (nil)

.concat(dest, value1, value2) ⇒ nil

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.

Parameters:

  • dest (GObject::Value)

    an uninitialized #GValue to take the result

  • value1 (GObject::Value)

    a #GValue

  • value2 (GObject::Value)

    a #GValue

Returns:

  • (nil)

.get_size(value) ⇒ Integer

Gets the number of values contained in value.

Parameters:

  • value (GObject::Value)

    a #GValue of type #GST_TYPE_LIST

Returns:

  • (Integer)

    the number of values

.get_value(value, index) ⇒ GObject::Value

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

Parameters:

  • value (GObject::Value)

    a #GValue of type #GST_TYPE_LIST

  • index (Integer)

    index of value to get from the list

Returns:

  • (GObject::Value)

    the value at the given index

.init(value, prealloc) ⇒ GObject::Value

Initializes and pre-allocates a #GValue of type #GST_TYPE_LIST.

Parameters:

  • value (GObject::Value)

    A zero-filled (uninitialized) #GValue structure

  • prealloc (Integer)

    The number of entries to pre-allocate in the list

Returns:

  • (GObject::Value)

    The #GValue structure that has been passed in

.merge(dest, value1, value2) ⇒ nil

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

Parameters:

  • dest (GObject::Value)

    an uninitialized #GValue to take the result

  • value1 (GObject::Value)

    a #GValue

  • value2 (GObject::Value)

    a #GValue

Returns:

  • (nil)

.prepend_value(value, prepend_value) ⇒ nil

Prepends prepend_value to the GstValueList in value.

Parameters:

  • value (GObject::Value)

    a #GValue of type #GST_TYPE_LIST

  • prepend_value (GObject::Value)

    the value to prepend

Returns:

  • (nil)