DrawingAreaDrawFunc


Description:

[ CCode ( instance_pos = 4.9 ) ]
public delegate void DrawingAreaDrawFunc (DrawingArea drawing_area, Context cr, int width, int 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.

Parameters:

drawing_area

the `GtkDrawingArea` to redraw

cr

the context to draw to

width

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

height

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

user_data

user data


Namespace: Gtk
Package: gtk4



2022 vala-language.org