ClutterCloneTexture

ClutterCloneTexture — Actor for cloning existing textures in an efficient way.

Synopsis




            ClutterCloneTexture;
            ClutterCloneTextureClass;
ClutterActor* clutter_clone_texture_new     (ClutterTexture *texture);
ClutterTexture* clutter_clone_texture_get_parent_texture
                                            (ClutterCloneTexture *clone);
void        clutter_clone_texture_set_parent_texture
                                            (ClutterCloneTexture *clone,
                                             ClutterTexture *texture);


Object Hierarchy


  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----ClutterCloneTexture

Properties


  "parent-texture"       ClutterTexture        : Read / Write / Construct

Description

ClutterCloneTexture allows the cloning of existing ClutterTexture based actors whilst saving underlying graphics resources.

Details

ClutterCloneTexture

typedef struct _ClutterCloneTexture ClutterCloneTexture;

ClutterCloneTexture has no publicly available members.


ClutterCloneTextureClass

typedef struct {
  ClutterActorClass parent_class;

  /* padding for future expansion */
  void (*_clutter_clone_1) (void);
  void (*_clutter_clone_2) (void);
  void (*_clutter_clone_3) (void);
  void (*_clutter_clone_4) (void);
} ClutterCloneTextureClass;


clutter_clone_texture_new ()

ClutterActor* clutter_clone_texture_new     (ClutterTexture *texture);

Creates an efficient 'clone' of a pre-existing texture if which it shares the underlying pixbuf data.

You can use clutter_clone_texture_set_parent_texture() to change the parent texture to be cloned.

texture : a ClutterTexture or NULL
Returns : the newly created ClutterCloneTexture

clutter_clone_texture_get_parent_texture ()

ClutterTexture* clutter_clone_texture_get_parent_texture
                                            (ClutterCloneTexture *clone);

Retrieves the parent ClutterTexture used by clone.

clone : a ClutterCloneTexture
Returns : a ClutterTexture actor, or NULL

Since 0.2


clutter_clone_texture_set_parent_texture ()

void        clutter_clone_texture_set_parent_texture
                                            (ClutterCloneTexture *clone,
                                             ClutterTexture *texture);

Sets the parent texture cloned by the ClutterCloneTexture.

clone : a ClutterCloneTexture
texture : a ClutterTexture or NULL

Since 0.2

Property Details

The "parent-texture" property

  "parent-texture"       ClutterTexture        : Read / Write / Construct

The parent texture to clone.