Gimp.ObjectArray.new
function new(object_type: GObject.Type, data: Array(GObject.Object), static_data: Boolean): Gimp.ObjectArray {
// Gjs wrapper for gimp_object_array_new()
}
Creates a new Gimp.ObjectArray containing object pointers, of size length.
If static_data is true, data is used as-is.
If static_data is false, the object and array will be re-allocated, hence you are expected to free your input data after.
- object_type
the array will hold objects of this type
- data
an array of objects.
- static_data
whether the objects in data are static objects and don't need to be copied.
- Returns
a new Gimp.ObjectArray.