
@c %start of fragment

@deffn Function clutter-cairo-texture-new  (width@tie{}@code{unsigned-int}) (height@tie{}@code{unsigned-int}) @result{}@tie{} (ret@tie{}@code{<clutter-actor>})
Creates a new @code{<clutter-cairo-texture>} actor, with a surface of
@var{width} by @var{height} pixels.

@table @var
@item width
the width of the surface

@item height
the height of the surface

@item ret
the newly created @code{<clutter-cairo-texture>} actor

@end table

Since 1.0

@end deffn

@deffn Function clutter-cairo-texture-invalidate  (self@tie{}@code{<clutter-cairo-texture>})
@deffnx Method invalidate
Invalidates the whole surface of a @code{<clutter-cairo-texture>}.

This function will cause the @code{<"draw">} signal to be emitted.

See also: @code{clutter-cairo-texture-invalidate-rectangle}

@table @var
@item self
a @code{<clutter-cairo-texture>}

@end table

Since 1.8

@end deffn

@deffn Function clutter-cairo-texture-clear  (self@tie{}@code{<clutter-cairo-texture>})
@deffnx Method clear
Clears @var{self}'s internal drawing surface, so that the next upload
will replace the previous contents of the @code{<clutter-cairo-texture>}
rather than adding to it.

Calling this function from within a @code{<"draw">} signal handler will
clear the invalidated area.

@table @var
@item self
a @code{<clutter-cairo-texture>}

@end table

Since 1.0

@end deffn

@deffn Function clutter-cairo-set-source-color  (cr@tie{}@code{cairo-t}) (color@tie{}@code{<clutter-color>})
Utility function for setting the source color of @var{cr} using a
@code{<clutter-color>}. This function is the equivalent of:

@example 

  cairo_set_source_rgba (cr,
                         color->red / 255.0,
                         color->green / 255.0,
                         color->blue / 255.0,
                         color->alpha / 255.0);
@end example

@table @var
@item cr
a Cairo context

@item color
a @code{<clutter-color>}

@end table

Since 1.0

@end deffn


@c %end of fragment
