draw


Description:

public virtual signal bool draw (Context cr, int width, int height)

The 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 save and restore pairs.

Parameters:

cr

the Cairo context used to draw

width

the width of the canvas

height

the height of the canvas

Returns:

true if the signal emission should stop, and false otherwise