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