CairoTexture
Object Hierarchy:
Description:
[
CCode ( type_id =
"clutter_cairo_texture_get_type ()" ) ]
[
Version ( deprecated =
true , deprecated_since =
"1.12" , since =
"1.0" ) ]
public class CairoTexture :
Texture,
Implementor,
Animatable,
Container,
Scriptable
Warning: CairoTexture is deprecated since 1.12.
The CairoTexture struct contains only private data.
Content:
Properties:
- public bool auto_resize { get; set; }
Controls whether the CairoTexture should
automatically resize the Cairo surface whenever the actor's allocation changes.
- public uint surface_height { get; set; }
The height of the Cairo surface used by the
CairoTexture actor, in pixels.
- public uint surface_width { get; set; }
The width of the Cairo surface used by the
CairoTexture actor, in pixels.
Creation methods:
Methods:
- public void clear ()
Clears this's internal drawing
surface, so that the next upload will replace the previous contents of the CairoTexture rather than adding
to it.
- public Context create ()
Creates a new Cairo context for the cairo texture.
- public Context create_region (int x_offset, int y_offset, int width, int height)
Creates a new Cairo context that will updat the region defined by
x_offset, y_offset, width and height.
- public bool get_auto_resize ()
- public void get_surface_size (out uint width, out uint height)
Retrieves the surface width and height for
this.
- public void invalidate ()
Invalidates the whole surface of a CairoTexture
.
- public void invalidate_rectangle (RectangleInt? rect)
Invalidates a rectangular region of a CairoTexture
.
- public void set_auto_resize (bool value)
Sets whether the CairoTexture should ensure
that the backing Cairo surface used matches the allocation assigned to the actor.
- public void set_surface_size (uint width, uint height)
Resizes the Cairo surface used by this
to width and height.
Signals:
Inherited Members:
All known members inherited from class Clutter.Texture
All known members inherited from class Clutter.Actor
All known members inherited from class GLib.Object
All known members inherited from interface Atk.Implementor
All known members inherited from interface Clutter.Animatable
All known members inherited from interface Clutter.Container
All known members inherited from interface Clutter.Scriptable