Class: Clutter::Behaviour
- Inherits:
-
Object
- Object
- Clutter::Behaviour
- Defined in:
- (unknown)
Overview
Base class for behaviours.
Direct Known Subclasses
BehaviourDepth, BehaviourEllipse, BehaviourOpacity, BehaviourPath, BehaviourRotate, BehaviourScale
Instance Method Summary collapse
-
#actors ⇒ GLib::SList<Clutter::Actor>
Retrieves all the actors to which behave applies.
-
#actors_foreach(func, data) ⇒ nil
Calls func for every actor driven by behave.
-
#alpha ⇒ Clutter::Alpha
The Clutter::Alpha object used to drive this behaviour.
-
#alpha=(alpha) ⇒ Clutter::Alpha
The Clutter::Alpha object used to drive this behaviour.
-
#apply(actor) ⇒ nil
Applies behave to actor.
-
#get_nth_actor(index_) ⇒ Clutter::Actor
Gets an actor the behaviour was applied to referenced by index num.
-
#is_applied(actor) ⇒ Boolean
Check if behave applied to actor.
-
#n_actors ⇒ Integer
Gets the number of actors this behaviour is applied too.
-
#remove(actor) ⇒ nil
Removes actor from the list of Clutter::Actors to which behave applies.
-
#remove_all ⇒ nil
Removes every actor from the list that behave holds.
Instance Method Details
#actors ⇒ GLib::SList<Clutter::Actor>
Retrieves all the actors to which behave applies. It is not recommended for derived classes to use this in there alpha notify method but use #clutter_behaviour_actors_foreach as it avoids alot of needless allocations.
#actors_foreach(func, data) ⇒ nil
Calls func for every actor driven by behave.
#alpha ⇒ Clutter::Alpha
The Clutter::Alpha object used to drive this behaviour. A #ClutterAlpha object binds a Clutter::Timeline and a function which computes a value (the "alpha") depending on the time. Each time the alpha value changes the alpha-notify virtual function is called.
#alpha=(alpha) ⇒ Clutter::Alpha
The Clutter::Alpha object used to drive this behaviour. A #ClutterAlpha object binds a Clutter::Timeline and a function which computes a value (the "alpha") depending on the time. Each time the alpha value changes the alpha-notify virtual function is called.
#apply(actor) ⇒ nil
Applies behave to actor. This function adds a reference on the actor.
#get_nth_actor(index_) ⇒ Clutter::Actor
Gets an actor the behaviour was applied to referenced by index num.
#is_applied(actor) ⇒ Boolean
Check if behave applied to actor.
#n_actors ⇒ Integer
Gets the number of actors this behaviour is applied too.
#remove(actor) ⇒ nil
Removes actor from the list of Clutter::Actors to which behave applies. This function removes a reference on the actor.
#remove_all ⇒ nil
Removes every actor from the list that behave holds.