ValueArray
Object Hierarchy:
Description:
[ CCode ( ref_function = "gimp_value_array_ref" , type_id = "gimp_value_array_get_type ()" , unref_function = "gimp_value_array_unref" ) ]
[ Compact ]
[ Version ( since = "2.10" ) ]
public class ValueArray
The prime purpose of a ValueArray is for it to be used as an object property that holds an array of values.
A ValueArray wraps an array of Value elements in
order for it to be used as a boxed type through gimp_type_value_array.
Content:
Creation methods:
Methods:
- public ValueArray @ref ()
Adds a reference to a ValueArray.
- public unowned ValueArray append (Value? value)
Insert a copy of value as last element of
this.
- public ValueArray copy ()
Return an exact copy of a ValueArray by
duplicating all its values.
- public unowned Color[] get_color_array (int index)
Return a pointer to the value at index contained in
this.
- public unowned Object[] get_core_object_array (int index)
Return a pointer to the value at index contained in
this.
- public unowned Value? index (int index)
Return a pointer to the value at index contained in
this.
- public unowned ValueArray insert (int index, Value? value)
Insert a copy of value at specified position into
this.
- public int length ()
- public unowned ValueArray prepend (Value? value)
Insert a copy of value as first element of
this.
- public unowned ValueArray remove (int index)
Remove the value at position index from
this.
- public void truncate (int n_values)
- public void unref ()
Unref a ValueArray.