Class
ClutterCanvas
Description [src]
class Clutter.Canvas : GObject.Object {
/* No available fields */
}
Content for 2D painting
The ClutterCanvas
class is a ClutterContent
implementation that allows
drawing using the Cairo API on a 2D surface.
In order to draw on a ClutterCanvas
, you should connect a handler to the
ClutterCanvas::draw
signal; the signal will receive a #cairo_t context
that can be used to draw. ClutterCanvas
will emit the ClutterCanvas::draw
signal when invalidated using clutter_content_invalidate().
See canvas.c
for an example of how to use ClutterCanvas
..
Instance methods
Methods inherited from ClutterContent (3)
clutter_content_get_preferred_size
Retrieves the natural size of the content
, if any.
clutter_content_invalidate
Invalidates a ClutterContent
.
clutter_content_invalidate_size
Signals that content
‘s size changed. Attached actors with request mode
set to CLUTTER_REQUEST_CONTENT_SIZE
will have a relayout queued.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Signals inherited from ClutterContent (2)
ClutterContent::attached
This signal is emitted each time a ClutterContent
implementation is
assigned to a ClutterActor
.
ClutterContent::detached
This signal is emitted each time a ClutterContent
implementation is
removed from a ClutterActor
.
Class structure
struct ClutterCanvasClass {
gboolean (* draw) (
ClutterCanvas* canvas,
cairo_t* cr,
int width,
int height
);
}
The ClutterCanvasClass
structure contains
private data.
Class members
draw: gboolean (* draw) ( ClutterCanvas* canvas, cairo_t* cr, int width, int height )
- No description available.