Class: Clutter::BehaviourPath

Inherits:
Behaviour show all
Defined in:
(unknown)

Overview

The Clutter::BehaviourPathClass struct contains only private data

Instance Method Summary collapse

Methods inherited from Behaviour

#actors, #actors_foreach, #alpha, #alpha=, #apply, #get_nth_actor, #is_applied, #n_actors, #remove, #remove_all

Constructor Details

#initialize(alpha, knots, n_knots) ⇒ Clutter::Behaviour

Creates a new path behaviour that will make the actors visit all of the given knots in order with straight lines in between.

A path will be created where the first knot is used in a %CLUTTER_PATH_MOVE_TO and the subsequent knots are used in %CLUTTER_PATH_LINE_TOs.

If alpha is not nil, the Clutter::Behaviour will take ownership of the Clutter::Alpha instance. In the case when alpha is nil, it can be set later with clutter_behaviour_set_alpha().

Parameters:

  • alpha (Clutter::Alpha)

    a Clutter::Alpha instance, or nil

  • knots (Array<Clutter::Knot>)

    an array of Clutter::Knots

  • n_knots (Integer)

    number of entries in knots

Instance Method Details

#pathClutter::Path

Returns path.

Returns:

#path=(path) ⇒ Clutter::Path

Parameters:

Returns: