Clutter.DeformEffect¶
Subclasses: | Clutter.PageTurnEffect |
---|
Methods¶
Inherited: | Clutter.OffscreenEffect (6), Clutter.Effect (1), Clutter.ActorMeta (5), GObject.Object (37) |
---|---|
Structs: | GObject.ObjectClass (5) |
get_back_material () |
|
get_n_tiles () |
|
invalidate () |
|
set_back_material (material) |
|
set_n_tiles (x_tiles, y_tiles) |
Virtual Methods¶
Inherited: | Clutter.OffscreenEffect (2), Clutter.Effect (5), Clutter.ActorMeta (1), GObject.Object (7) |
---|
do_deform_vertex (width, height, vertex) |
Properties¶
Inherited: | Clutter.ActorMeta (3) |
---|
Name | Type | Flags | Short Description |
---|---|---|---|
x-tiles |
int |
r/w | The number of horizontal tiles |
y-tiles |
int |
r/w | The number of vertical tiles |
Signals¶
Inherited: | GObject.Object (1) |
---|
Fields¶
Inherited: | GObject.Object (1) |
---|
Name | Type | Access | Description |
---|---|---|---|
parent_instance | Clutter.OffscreenEffect |
r |
Class Details¶
-
class
Clutter.
DeformEffect
(**kwargs)¶ Bases: Clutter.OffscreenEffect
Abstract: Yes Structure: Clutter.DeformEffectClass
The
Clutter.DeformEffect
structure contains only private data and should be accessed using the provided APINew in version 1.4.
-
get_back_material
()¶ Returns: a handle for the material, or None
. The returned material is owned by theClutter.DeformEffect
and it should not be freed directlyReturn type: object
Retrieves the handle to the back face material used by self
New in version 1.4.
-
get_n_tiles
()¶ Returns: x_tiles: return location for the number of horizontal tiles, or None
y_tiles: return location for the number of vertical tiles, or None
Return type: (x_tiles: int
, y_tiles:int
)Retrieves the number of horizontal and vertical tiles used to sub-divide the actor’s geometry during the effect
New in version 1.4.
-
invalidate
()¶ Invalidates the self ‘s vertices and, if it is associated to an actor, it will queue a redraw
New in version 1.4.
-
set_back_material
(material)¶ Parameters: material ( object
orNone
) – a handle to a Cogl materialSets the material that should be used when drawing the back face of the actor during a deformation
The
Clutter.DeformEffect
will take a reference on the material’s handleNew in version 1.4.
-
set_n_tiles
(x_tiles, y_tiles)¶ Parameters: Sets the number of horizontal and vertical tiles to be used when applying the effect
More tiles allow a finer grained deformation at the expenses of computation
New in version 1.4.
-
do_deform_vertex
(width, height, vertex) virtual¶ Parameters: - width (
float
) – - height (
float
) – - vertex (
Cogl.TextureVertex
) –
- width (
-