Clutter Reference Manual: ClutterClone

## ClutterClone ClutterClone — An actor that displays a clone of a source actor |

## Synopsis

    struct              ClutterClone;
    struct              ClutterCloneClass;
    ClutterActor *      clutter_clone_new                   (ClutterActor *source);
    void                clutter_clone_set_source            (ClutterClone *self,
                                                             ClutterActor *source);
    ClutterActor *      clutter_clone_get_source            (ClutterClone *self);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----ClutterActor
                   +----ClutterClone

## Implemented Interfaces

ClutterClone implements ClutterContainer, ClutterScriptable, ClutterAnimatable and AtkImplementorIface.

## Properties

      "source"                   ClutterActor*         : Read / Write / Construct

## Description

ClutterClone is a ClutterActor which draws with the paint function of another actor, scaled to fit its own allocation.

ClutterClone can be used to efficiently clone any other actor.

### Note

This is different from `clutter_texture_new_from_actor()` which requires support for FBOs in the underlying GL implementation.

ClutterClone is available since Clutter 1.0

## Details

### struct ClutterClone

    struct ClutterClone;

The ClutterClone structure contains only private data and should be accessed using the provided API

Since 1.0

### struct ClutterCloneClass

    struct ClutterCloneClass {
    };

The ClutterCloneClass structure contains only private data

Since 1.0

### clutter_clone_new ()

    ClutterActor *      clutter_clone_new                   (ClutterActor *source);

Creates a new ClutterActor which clones `source`/

`source` : | a ClutterActor, or `NULL`
Returns : | the newly created ClutterClone

Since 1.0

### clutter_clone_set_source ()

    void                clutter_clone_set_source            (ClutterClone *self,
                                                             ClutterActor *source);

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

`self` : | a ClutterClone
`source` : | a ClutterActor, or `NULL`. [allow-none]

Since 1.0

### clutter_clone_get_source ()

    ClutterActor *      clutter_clone_get_source            (ClutterClone *self);

Retrieves the source ClutterActor being cloned by `self`.

`self` : | a ClutterClone
Returns : | the actor source for the clone. [transfer none]

Since 1.0

## Property Details

### The `"source"` property

      "source"                   ClutterActor*         : Read / Write / Construct

This property specifies the source actor being cloned.

Since 1.0