Deprecated 2.32DeprecatedconstructorDeprecatedn_prealloced: numberDeprecatedappendInsert a copy of value as last element of value_array. If value is
null, an uninitialized value is appended.
OptionalDeprecatedvalue: GObject.ValueGObject.Value to copy into GObject.ValueArray, or null
the GObject.ValueArray passed in as value_array
DeprecatedcopyConstruct an exact copy of a GObject.ValueArray by duplicating all its contents.
Newly allocated copy of GObject.ValueArray
Deprecatedget_Return a pointer to the value at index_ contained in value_array.
Deprecatedindex_: numberindex of the value of interest
pointer to a value at index_ in value_array
DeprecatedinsertInsert a copy of value at specified position into value_array. If value
is null, an uninitialized value is inserted.
Deprecatedindex_: numberinsertion position, must be <= value_array->;n_values
OptionalDeprecatedvalue: GObject.ValueGObject.Value to copy into GObject.ValueArray, or null
the GObject.ValueArray passed in as value_array
DeprecatedprependInsert a copy of value as first element of value_array. If value is
null, an uninitialized value is prepended.
OptionalDeprecatedvalue: GObject.ValueGObject.Value to copy into GObject.ValueArray, or null
the GObject.ValueArray passed in as value_array
DeprecatedremoveRemove the value at position index_ from value_array.
Deprecatedindex_: numberposition of value to remove, which must be less than value_array->n_values
the GObject.ValueArray passed in as value_array
DeprecatedsortSort value_array using compare_func to compare the elements according to
the semantics of GLib.CompareFunc.
The current implementation uses the same sorting algorithm as standard
C qsort() function.
Deprecatedcompare_func: CompareFuncfunction to compare elements
the GObject.ValueArray passed in as value_array
Sort value_array using compare_func to compare the elements according
to the semantics of GLib.CompareDataFunc.
The current implementation uses the same sorting algorithm as standard
C qsort() function.
Deprecatedcompare_func: CompareDataFuncfunction to compare elements
the GObject.ValueArray passed in as value_array
StaticDeprecatednewDeprecatedn_prealloced: number
A GObject.ValueArray is a container structure to hold an array of generic values.
The prime purpose of a GObject.ValueArray is for it to be used as an object property that holds an array of values. A GObject.ValueArray wraps an array of GObject.Value elements in order for it to be used as a boxed type through
G_TYPE_VALUE_ARRAY.GObject.ValueArray is deprecated in favour of GLib.Array since GLib 2.32. It is possible to create a GLib.Array that behaves like a GObject.ValueArray by using the size of GObject.Value as the element size, and by setting GObject.Value.unset as the clear function using GLib.Array.set_clear_func, for instance, the following code:
can be replaced by:
Deprecated
since 2.32: Use GLib.Array instead, if possible for the given use case, as described above.