Clutter.ChildMeta

g Clutter.ChildMeta Clutter.ChildMeta GObject.Object GObject.Object GObject.Object->Clutter.ChildMeta

Subclasses:

Clutter.LayoutMeta

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_actor ()

get_container ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

actor

Clutter.Actor

r/w/co

The actor wrapped by this data

container

Clutter.Container

r/w/co

The container that created this data

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

actor

Clutter.Actor

r

the actor wrapped by this data

container

Clutter.Container

r

the container handling this data

parent_instance

GObject.Object

r

Class Details

class Clutter.ChildMeta(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Clutter.ChildMetaClass

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 the Clutter.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 type MY_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 functions Clutter.Container.do_create_child_meta(), Clutter.Container.do_destroy_child_meta(), and Clutter.Container.do_get_child_meta().

New in version 0.8.

get_actor()
Returns:

a Clutter.Actor

Return type:

Clutter.Actor

Retrieves the actor wrapped by self

New in version 0.8.

get_container()
Returns:

a Clutter.Container

Return type:

Clutter.Container

Retrieves the container using self

New in version 0.8.

Property Details

Clutter.ChildMeta.props.actor
Name:

actor

Type:

Clutter.Actor

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Clutter.Actor being wrapped by this Clutter.ChildMeta

New in version 0.8.

Clutter.ChildMeta.props.container
Name:

container

Type:

Clutter.Container

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Clutter.Container that created this Clutter.ChildMeta.

New in version 0.8.