ComponentParameterBag
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "e_cal_component_parameter_bag_get_type ()" ) ]
[ Compact ]
public class ComponentParameterBag
Opaque structure, which represents a bad (list) of Parameter objects.
Use the functions below to work with it.
Content:
Creation methods:
Methods:
- public unowned Parameter? @get (uint index)
- public void add (Parameter param)
Adds a copy of the param
into the
this.
- public void assign (ComponentParameterBag src_bag)
Assigns content of the src_bag
into the
this.
- public void clear ()
Removes all parameters from the this, thus
it doesn't contain any parameter after this function returns.
- public ComponentParameterBag copy ()
Returns a newly allocated copy of this,
which should be freed with e_cal_component_parameter_bag_free
, when no longer needed.
- public void fill_property (Property property)
Adds all the stored parameters in the this
to the property
.
- public uint get_count ()
- public uint get_first_by_kind (ParameterKind kind)
- public void remove (uint index)
- public uint remove_by_kind (ParameterKind kind, bool all)
Removes the first or all (depending on the all
) parameters of
the given kind
.
- public void set_from_property (Property property, ComponentParameterBagFilterFunc? func)
Fills the this with parameters from the
property
, for which the func
returned true.
- public void take (owned Parameter param)
Adds the param
into the this
and assumes ownership of the param
.