Cairo interaction [src]

Functions to support using cairo

Cairo is a graphics library that supports vector graphics and image compositing that can be used with GTK.

GDK does not wrap the Cairo API and it is not possible to use cairo directly to draw on a GdkSurface. You can either use a GtkDrawingArea widget or gtk_snapshot_append_cairo for drawing with cairo in a GTK4 application.

Additional functions allow use GdkRectangles with Cairo and to use GdkRGBA, GdkPixbuf, and GdkSurface instances as sources for drawing operations.

For more information on Cairo, please see the Cairo API reference.