Back to Seed Clases

Clutter


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Clutter.ChildMeta

Class Clutter.ChildMeta

Import line: Clutter = imports.gi.Clutter;
GIR File: Clutter-1.0.gir
C documentation: ClutterChildMeta
Class : ChildMeta
Extends: GObject.Object
  Show / Hide Inherited methods, properties and signals
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 ClutterChildMeta and set the ClutterContainerIface::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 ClutterChildMeta 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 ClutterContainerIface::create_child_meta, ClutterContainerIface::destroy_child_meta and ClutterContainerIface::get_child_meta.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Clutter.Container
Method
get_child_meta (Actor actor) : Clutter.ChildMeta
Retrieves the ClutterChildMeta which contains the data about the
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:32:35 GMT+0800 (HKT)