Signal

ClutterCanvas::draw

Declaration

gboolean
draw (
  ClutterCanvas* self,
  cairo_t* cr,
  gint width,
  gint height,
  gpointer user_data
)

Description [src]

The ClutterCanvas::draw signal is emitted each time a canvas is invalidated.

It is safe to connect multiple handlers to this signal: each handler invocation will be automatically protected by cairo_save() and cairo_restore() pairs.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Signal emission will restart instead of recursing
Available since:1.10

Parameters

cr cairo_t
 

The Cairo context used to draw.

 The data is owned by the caller of the function.
width gint
 

The width of the canvas.

height gint
 

The height of the canvas.

Return value

Returns: gboolean
 

TRUE if the signal emission should stop, and FALSE otherwise.