Next: , Previous: ClutterClickAction, Up: Top


21 ClutterClone

An actor that displays a clone of a source actor

21.1 Overview

<clutter-clone> is a <clutter-actor> which draws with the paint function of another actor, scaled to fit its own allocation.

<clutter-clone> can be used to efficiently clone any other actor.

This is different from clutter-texture-new-from-actor which requires support for FBOs in the underlying GL implementation.

<clutter-clone> is available since Clutter 1.0

21.2 Usage

— Function: clutter-clone-new (source <clutter-actor>) ⇒  (ret <clutter-actor>)

Creates a new <clutter-actor> which clones source/

source
a <clutter-actor>, or ‘#f
ret
the newly created <clutter-clone>

Since 1.0

— Function: clutter-clone-set-source (self <clutter-clone>) (source <clutter-actor>)
— Method: set-source

Sets source as the source actor to be cloned by self.

self
a <clutter-clone>
source
a <clutter-actor>, or ‘#f’.

Since 1.0

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

Retrieves the source <clutter-actor> being cloned by self.

self
a <clutter-clone>
ret
the actor source for the clone.

Since 1.0