Clutter.DeformEffect¶
- Subclasses:
Methods¶
- Inherited:
Clutter.OffscreenEffect (6), Clutter.Effect (1), Clutter.ActorMeta (5), GObject.Object (37)
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Clutter.OffscreenEffect (2), Clutter.Effect (5), Clutter.ActorMeta (1), GObject.Object (7)
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The number of horizontal tiles |
||
r/w |
The number of vertical tiles |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.DeformEffect(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
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 directly- Return type:
Retrieves the handle to the back face material used by self
New in version 1.4.
- get_n_tiles()¶
- Returns:
- Return type:
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)¶
-
Sets 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)¶
-
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
) –
Property Details¶
- Clutter.DeformEffect.props.x_tiles¶
-
The number of horizontal tiles. The bigger the number, the smaller the tiles
New in version 1.4.