new_with_properties
Description:
[ Version ( since = "2.54" ) ]
public static Object new_with_properties (Type object_type, string[] names, Value[] values)
public static Object new_with_properties (Type object_type, string[] names, Value[] values)
Creates a new instance of a Object subtype and sets its properties using the provided arrays.
Both arrays must have exactly names.length
elements, and the names and values correspond by index.
Construction parameters (see g_param_construct, g_param_construct_only) which are not explicitly specified are set to their default values.
Parameters:
object_type |
the object type to instantiate |
names |
the names of each property to be set |
values |
the values of each property to be set |
n_properties |
the number of properties |
Returns:
a new instance of |