ClutterX11.TexturePixmap¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.Texture (28), Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4)
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Clutter.Texture (3), Clutter.Actor (35), GObject.Object (7), Clutter.Animatable (5), Clutter.Container (13), Clutter.Scriptable (4)
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
If the texture should be kept in sync with any pixmap changes. |
||
r |
If window has been destroyed |
||
r/w |
The X11 Pixmap to be bound |
||
r |
The depth (in number of bits) of the pixmap bound to this texture |
||
r |
The height of the pixmap bound to this texture |
||
r |
The width of the pixmap bound to this texture |
||
r/w |
The X11 Window to be bound |
||
r |
If window is mapped |
||
r |
If this is an override-redirect window |
||
r/w |
If composite window redirects are set to Automatic (or Manual if false) |
||
r |
X position of window on screen according to X11 |
||
r |
Y position of window on screen according to X11 |
Signals¶
Name |
Short Description |
---|---|
|
|
The |
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class ClutterX11.TexturePixmap(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ClutterX11.TexturePixmap
structure contains only private dataNew in version 0.8.
- classmethod new()¶
- Returns:
A new
ClutterX11.TexturePixmap
- Return type:
Creates a new
ClutterX11.TexturePixmap
which can be used to display the contents of an X11 Pixmap inside a Clutter scene graphNew in version 0.8.
- classmethod new_with_pixmap(pixmap)¶
- Parameters:
pixmap (
int
) – the X Pixmap to which this texture should be bound- Returns:
A new
ClutterX11.TexturePixmap
bound to the given X Pixmap- Return type:
Creates a new
ClutterX11.TexturePixmap
for pixmapNew in version 0.8.
- classmethod new_with_window(window)¶
- Parameters:
window (
int
) – the X window to which this texture should be bound- Returns:
A new
ClutterX11.TexturePixmap
bound to the given X window.- Return type:
Creates a new
ClutterX11.TexturePixmap
for windowNew in version 0.8.
- set_automatic(setting)¶
-
Enables or disables the automatic updates ot self in case the backing pixmap or window is damaged
New in version 0.8.
- set_pixmap(pixmap)¶
- Parameters:
pixmap (
int
) – the X Pixmap to which the texture should be bound
Sets the X Pixmap to which the texture should be bound.
New in version 0.8.
- set_window(window, automatic)¶
- Parameters:
Sets up a suitable pixmap for the window, using the composite and damage extensions if possible, and then calls
ClutterX11.TexturePixmap.set_pixmap
().If you want to display a window in a
Clutter.Texture
, you probably want this function, or its older sister, clutter_glx_texture_pixmap_set_window().This function has no effect unless the XComposite extension is available.
New in version 0.8.
- sync_window()¶
Resets the texture’s pixmap from its window, perhaps in response to the pixmap’s invalidation as the window changed size.
New in version 0.8.
- update_area(x, y, width, height)¶
- Parameters:
Performs the actual binding of texture to the current content of the pixmap. Can be called to update the texture if the pixmap content has changed.
New in version 0.8.
- do_update_area(x, y, width, height) virtual¶
- Parameters:
Performs the actual binding of texture to the current content of the pixmap. Can be called to update the texture if the pixmap content has changed.
New in version 0.8.
Signal Details¶
- ClutterX11.TexturePixmap.signals.queue_damage_redraw(texture_pixmap, x, y, width, height)¶
- Signal Name:
queue-damage-redraw
- Flags:
- Parameters:
texture_pixmap (
ClutterX11.TexturePixmap
) – The object which received the signalx (
int
) – The top left x position of the damage regiony (
int
) – The top left y position of the damage regionwidth (
int
) – The width of the damage regionheight (
int
) – The height of the damage region
::queue-damage-redraw
is emitted to notify that some sub-region of the texture has been changed (either by an automatic damage update or by an explicit call toClutterX11.TexturePixmap.update_area
). This usually means a redraw needs to be queued for the actor.The default handler will queue a clipped redraw in response to the damage, using the assumption that the pixmap is being painted to a rectangle covering the transformed allocation of the actor. If you sub-class and change the paint method so this isn’t true then you must also provide your own damage signal handler to queue a redraw that blocks this default behaviour.
New in version 1.2.
- ClutterX11.TexturePixmap.signals.update_area(texture_pixmap, x, y, width, height)¶
- Signal Name:
update-area
- Flags:
- Parameters:
texture_pixmap (
ClutterX11.TexturePixmap
) – The object which received the signalx (
int
) – X coordinate of the area to updatey (
int
) – Y coordinate of the area to updatewidth (
int
) – width of the area to updateheight (
int
) – height of the area to update
The
::update-area
signal is emitted to ask the texture to update its content from its source pixmap.New in version 0.8.
Property Details¶
- ClutterX11.TexturePixmap.props.automatic_updates¶
-
If the texture should be kept in sync with any pixmap changes.
- ClutterX11.TexturePixmap.props.destroyed¶
-
If window has been destroyed
- ClutterX11.TexturePixmap.props.pixmap¶
-
The X11 Pixmap to be bound
- ClutterX11.TexturePixmap.props.pixmap_depth¶
-
The depth (in number of bits) of the pixmap bound to this texture
- ClutterX11.TexturePixmap.props.pixmap_height¶
-
The height of the pixmap bound to this texture
- ClutterX11.TexturePixmap.props.pixmap_width¶
-
The width of the pixmap bound to this texture
- ClutterX11.TexturePixmap.props.window¶
-
The X11 Window to be bound
- ClutterX11.TexturePixmap.props.window_mapped¶
-
If window is mapped
- ClutterX11.TexturePixmap.props.window_override_redirect¶
-
If this is an override-redirect window
- ClutterX11.TexturePixmap.props.window_redirect_automatic¶
-
If composite window redirects are set to Automatic (or Manual if false)
- ClutterX11.TexturePixmap.props.window_x¶
-
X position of window on screen according to X11