6.6 GtkDrawingAreaDrawFunc

Callback: GtkDrawingAreaDrawFunc

A procedure given for it is called as (procedure drawing-area cr width height).

Whenever drawing-area needs to redraw, this function will be called.

This function should exclusively redraw the contents of the drawing area and must not call any widget functions that cause changes.

drawing-area

Passed: a <GtkDrawingArea>.

the <GtkDrawingArea> to redraw

cr

Passed: a <CairoContext>.

the context to draw to

width

Passed: a 32-bit integer.

the actual width of the contents. This value will be at least as wide as GtkDrawingArea:width.

height

Passed: a 32-bit integer.

the actual height of the contents. This value will be at least as wide as GtkDrawingArea:height.

user-data

Not passed: it is the user data that guile-gi supplied.

user data