Struct

GObjectValueArray

Description [src]

struct GValueArray {
  guint n_values;
  GValue* values;
}

A GValueArray contains an array of GValue elements.

Structure members
n_values

Number of values contained in the array.

values

Array of values.

Constructors

g_value_array_new

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

Deprecated since: 2.32

Instance methods

g_value_array_append

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

Deprecated since: 2.32

g_value_array_copy

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

Deprecated since: 2.32

g_value_array_free

Free a GValueArray including its contents.

Deprecated since: 2.32

g_value_array_get_nth

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

Deprecated since: 2.32

g_value_array_insert

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

Deprecated since: 2.32

g_value_array_prepend

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

Deprecated since: 2.32

g_value_array_remove

Remove the value at position index_ from value_array.

Deprecated since: 2.32

g_value_array_sort

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

Deprecated since: 2.32

g_value_array_sort_with_data

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

Deprecated since: 2.32