Function
GtkDrawingAreaDrawFunc
Declaration
void
(* GtkDrawingAreaDrawFunc) (
GtkDrawingArea* drawing_area,
cairo_t* cr,
int width,
int height,
gpointer user_data
)
Description [src]
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-
Type:
GtkDrawingAreaThe
GtkDrawingAreato redraw.The data is owned by the caller of the function. cr-
Type:
cairo_tThe context to draw to.
The data is owned by the caller of the function. width-
Type:
intThe actual width of the contents. This value will be at least as wide as GtkDrawingArea:width.
height-
Type:
intThe actual height of the contents. This value will be at least as wide as GtkDrawingArea:height.
user_data-
Type:
gpointerUser data.
The argument can be NULL.The data is owned by the caller of the function.