Clutter.OffscreenEffect¶
- Subclasses:
Clutter.BlurEffect
,Clutter.BrightnessContrastEffect
,Clutter.ColorizeEffect
,Clutter.DeformEffect
,Clutter.DesaturateEffect
,Clutter.ShaderEffect
Methods¶
- Inherited:
Clutter.Effect (1), Clutter.ActorMeta (5), GObject.Object (37)
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Clutter.Effect (5), Clutter.ActorMeta (1), GObject.Object (7)
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.OffscreenEffect(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
The
Clutter.OffscreenEffect
structure contains only private data and should be accessed using the provided APINew in version 1.4.
- create_texture(width, height)¶
- Parameters:
- Returns:
a handle to a Cogl texture, or %COGL_INVALID_HANDLE. The returned handle has its reference count increased.
- Return type:
Calls the create_texture() virtual function of the self
New in version 1.4.
- get_target()¶
- Returns:
a
Cogl.Material
orNone
. The returned material is owned by Clutter and it should not be modified or freed- Return type:
Retrieves the material used as a render target for the offscreen buffer created by self
You should only use the returned
Cogl.Material
when painting. The returned material might change between different frames.New in version 1.4.
- get_target_rect()¶
- Returns:
True
if the offscreen buffer has a valid rectangle, andFalse
otherwise- rect:
return location for the target area
- Return type:
(
bool
, rect:Clutter.Rect
)
Retrieves the origin and size of the offscreen buffer used by self to paint the actor to which it has been applied.
This function should only be called by
Clutter.OffscreenEffect
implementations, from within theClutter.OffscreenEffect.do_paint_target
() virtual function.New in version 1.14.
- get_target_size()¶
-
Retrieves the size of the offscreen buffer used by self to paint the actor to which it has been applied.
This function should only be called by
Clutter.OffscreenEffect
implementations, from within theClutter.OffscreenEffect.do_paint_target
() virtual function.New in version 1.8.
Deprecated since version 1.14: Use
Clutter.OffscreenEffect.get_target_rect
() instead
- get_texture()¶
- Returns:
a #CoglHandle or %COGL_INVALID_HANDLE. The returned texture is owned by Clutter and it should not be modified or freed
- Return type:
Retrieves the texture used as a render target for the offscreen buffer created by self
You should only use the returned texture when painting. The texture may change after ClutterEffect::pre_paint is called so the effect implementation should update any references to the texture after chaining-up to the parent’s pre_paint implementation. This can be used instead of
Clutter.OffscreenEffect.get_target
() when the effect subclass wants to paint using its own material.New in version 1.10.
- paint_target()¶
Calls the paint_target() virtual function of the self
New in version 1.4.
- do_create_texture(width, height) virtual¶
- Parameters:
- Returns:
a handle to a Cogl texture, or %COGL_INVALID_HANDLE. The returned handle has its reference count increased.
- Return type:
Calls the create_texture() virtual function of the effect
New in version 1.4.
- do_paint_target() virtual¶
Calls the paint_target() virtual function of the effect
New in version 1.4.