| Clutter 0.8.6 Reference Manual | ||||
|---|---|---|---|---|
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);
"parent-texture" ClutterTexture* : Read / Write "repeat-x" gboolean : Read / Write "repeat-y" gboolean : Read / Write
ClutterCloneTexture allows the cloning of existing ClutterTexture based actors whilst saving underlying graphics resources.
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;
ClutterActor* clutter_clone_texture_new (ClutterTexture *texture);
Creates an efficient 'clone' of a pre-existing texture with which it shares the underlying pixbuf data.
You can use clutter_clone_texture_set_parent_texture() to change the
cloned texture.
|
a ClutterTexture, or NULL
|
Returns : |
the newly created ClutterCloneTexture |
ClutterTexture* clutter_clone_texture_get_parent_texture (ClutterCloneTexture *clone);
Retrieves the parent ClutterTexture used by clone.
|
a ClutterCloneTexture |
Returns : |
a ClutterTexture actor, or NULL
|
Since 0.2
void clutter_clone_texture_set_parent_texture
(ClutterCloneTexture *clone,
ClutterTexture *texture);
Sets the parent texture cloned by the ClutterCloneTexture.
|
a ClutterCloneTexture |
|
a ClutterTexture or NULL
|
Since 0.2
"parent-texture" property"parent-texture" ClutterTexture* : Read / Write
The parent texture to clone.
"repeat-x" property"repeat-x" gboolean : Read / Write
Reapeat underlying pixbuf rather than scale in x direction.
Default value: FALSE
"repeat-y" property"repeat-y" gboolean : Read / Write
Reapeat underlying pixbuf rather than scale in y direction.
Default value: FALSE