clutter.Texture — An actor for displaying and manipulating images
class clutter.Texture(clutter.Actor): |
|
clutter.Actor Signal Prototypes
"size-change" | def callback( |
"pixbuf-change" | def callback( |
clutter.Texture
is a base class for displaying and manipulating pixel buffer type data.
The set_from_rgb_data
() and
set_pixbuf
() methods are used to copy image
data into texture memory and subsequently realize the texture.
If texture reads are supported by underlying GL implementation unrealizing/hiding frees image data from texture memory moving to main system memory. Re-realizing then performs the opposite operation. This process allows basic management of commonly limited available texture memory.
request_coords
() and its
wrappers. To display an area of a texture without scaling, you should
set the clip area using set_clip
().
clutter.Texture(pixbuf
=None)
pixbuf : | The pixbuf to be displayed by the texture,
or None . |
Returns : | a new clutter.Texture .
|
Creates a new clutter.Texture
object.
def callback(texture
, width
, height
, user_param1
, ...
)
texture : | the texture that received the signal |
width : | the new width of the source data |
height : | the new height of the source data |
user_param1 : | the first user parameter (if any) specified with the connect () |
... : | additional user parameters (if any) |
The "size-change" signal is emitted each time the size of the pixbuf used by @texture changes. The new size is given as argument to the callback.
def callback(texture
, user_param1
, ...
)
texture : | the texture that received the signal |
user_param1 : | the first user parameter (if any) specified with the connect () |
... : | additional user parameters (if any) |
The "pixbuf-change" signal is emitted each time the pixbuf
used by the clutter.Texture
changes.