Next: , Previous: ClutterAction, Up: Top


3 ClutterActorMeta

Base class of actor modifiers

3.1 Overview

<clutter-actor-meta> is an abstract class providing a common API for modifiers of <clutter-actor> behaviour, appearance or layout.

A <clutter-actor-meta> can only be owned by a single <clutter-actor> at any time.

Every sub-class of <clutter-actor-meta> should check if the <"enabled"> property is set to ‘#t’ before applying any kind of modification.

<clutter-actor-meta> is available since Clutter 1.4

3.2 Usage

— Function: clutter-actor-meta-set-name (self <clutter-actor-meta>) (name mchars)
— Method: set-name

Sets the name of meta

The name can be used to identify the <clutter-actor-meta> instance

meta
a <clutter-actor-meta>
name
the name of meta

Since 1.4

— Function: clutter-actor-meta-get-name (self <clutter-actor-meta>) ⇒  (ret mchars)
— Method: get-name

Retrieves the name set using clutter-actor-meta-set-name

meta
a <clutter-actor-meta>
ret
the name of the <clutter-actor-meta> instance, or ‘#f’ if none was set. The returned string is owned by the <clutter-actor-meta> instance and it should not be modified or freed.

Since 1.4

— Function: clutter-actor-meta-set-enabled (self <clutter-actor-meta>) (is_enabled bool)
— Method: set-enabled

Sets whether meta should be enabled or not

meta
a <clutter-actor-meta>
is-enabled
whether meta is enabled

Since 1.4

— Function: clutter-actor-meta-get-enabled (self <clutter-actor-meta>) ⇒  (ret bool)
— Method: get-enabled

Retrieves whether meta is enabled

meta
a <clutter-actor-meta>
ret
#t’ if the <clutter-actor-meta> instance is enabled

Since 1.4

— Function: clutter-actor-meta-get-actor (self <clutter-actor-meta>) ⇒  (ret <clutter-actor>)
— Method: get-actor

Retrieves a pointer to the <clutter-actor> that owns meta

meta
a <clutter-actor-meta>
ret
a pointer to a <clutter-actor> or ‘#f’.

Since 1.4