Top |
void | clutter_actor_meta_set_name () |
const gchar * | clutter_actor_meta_get_name () |
void | clutter_actor_meta_set_enabled () |
gboolean | clutter_actor_meta_get_enabled () |
ClutterActor * | clutter_actor_meta_get_actor () |
GObject ╰── GInitiallyUnowned ╰── ClutterActorMeta ├── ClutterAction ├── ClutterConstraint ╰── ClutterEffect
ClutterActorMeta is an abstract class providing a common API for modifiers of ClutterActor behaviour, appearance or layout.
A ClutterActorMeta can only be owned by a single ClutterActor at any time.
Every sub-class of ClutterActorMeta should check if the
“enabled” property is set to TRUE
before applying
any kind of modification.
ClutterActorMeta is available since Clutter 1.4
void clutter_actor_meta_set_name (ClutterActorMeta *meta
,const gchar *name
);
Sets the name of meta
The name can be used to identify the ClutterActorMeta instance
Since: 1.4
const gchar *
clutter_actor_meta_get_name (ClutterActorMeta *meta
);
Retrieves the name set using clutter_actor_meta_set_name()
the name of the ClutterActorMeta
instance, or NULL
if none was set. The returned string is owned
by the ClutterActorMeta instance and it should not be modified
or freed.
[transfer none]
Since: 1.4
void clutter_actor_meta_set_enabled (ClutterActorMeta *meta
,gboolean is_enabled
);
Sets whether meta
should be enabled or not
Since: 1.4
gboolean
clutter_actor_meta_get_enabled (ClutterActorMeta *meta
);
Retrieves whether meta
is enabled
Since: 1.4
ClutterActor *
clutter_actor_meta_get_actor (ClutterActorMeta *meta
);
Retrieves a pointer to the ClutterActor that owns meta
Since: 1.4
typedef struct _ClutterActorMeta ClutterActorMeta;
The ClutterActorMeta structure contains only private data and should be accessed using the provided API
Since: 1.4
struct ClutterActorMetaClass { /** * ClutterActorMetaClass::set_actor: * @meta: a #ClutterActorMeta * @actor: (allow-none): the actor attached to @meta, or %NULL * * Virtual function, called when @meta is attached or detached * from a #ClutterActor. */ void (* set_actor) (ClutterActorMeta *meta, ClutterActor *actor); };
The ClutterActorMetaClass structure contains only private data
virtual function, invoked when attaching and detaching a ClutterActorMeta instance to a ClutterActor |
Since: 1.4
“actor”
property“actor” ClutterActor *
The ClutterActor attached to the ClutterActorMeta instance
Flags: Read
Since: 1.4
“enabled”
property “enabled” gboolean
Whether or not the ClutterActorMeta is enabled
Flags: Read / Write
Default value: TRUE
Since: 1.4
“name”
property “name” gchar *
The unique name to access the ClutterActorMeta
Flags: Read / Write
Default value: NULL
Since: 1.4