Clutter.ChildMeta¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The actor wrapped by this data |
||
r/w/co |
The container that created this data |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
actor |
r |
the actor wrapped by this data |
|
container |
r |
the container handling this data |
|
parent_instance |
r |
Class Details¶
- class Clutter.ChildMeta(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Base interface for container specific state for child actors. A child data is meant to be used when you need to keep track of information about each individual child added to a container.
In order to use it you should create your own subclass of
Clutter.ChildMeta
and set theClutter.ContainerIface
child_meta_type interface member to your subclass type, like:static void my_container_iface_init (ClutterContainerIface *iface) { // set the rest of the #ClutterContainer vtable container_iface->child_meta_type = MY_TYPE_CHILD_META; }
This will automatically create a
Clutter.ChildMeta
of typeMY_TYPE_CHILD_META
for every actor that is added to the container.The child data for an actor can be retrieved using the
Clutter.Container.get_child_meta
() function.The properties of the data and your subclass can be manipulated with clutter_container_child_set() and clutter_container_child_get() which act like g_object_set() and g_object_get().
You can provide hooks for your own storage as well as control the instantiation by overriding the
Clutter.ContainerIface
virtual functionsClutter.Container.do_create_child_meta
(),Clutter.Container.do_destroy_child_meta
(), andClutter.Container.do_get_child_meta
().New in version 0.8.
- get_actor()¶
- Returns:
- Return type:
Retrieves the actor wrapped by self
New in version 0.8.
- get_container()¶
- Returns:
- Return type:
Retrieves the container using self
New in version 0.8.
Property Details¶
- Clutter.ChildMeta.props.actor¶
- Name:
actor
- Type:
- Default Value:
- Flags:
The
Clutter.Actor
being wrapped by thisClutter.ChildMeta
New in version 0.8.
- Clutter.ChildMeta.props.container¶
- Name:
container
- Type:
- Default Value:
- Flags:
The
Clutter.Container
that created thisClutter.ChildMeta
.New in version 0.8.