mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
2f6140c066
This was giving outdated advice.
793 B
793 B
Title: Cairo interaction
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 [class@Gdk.Surface]. You can either use a GtkDrawingArea widget or gtk_snapshot_append_cairo for drawing with cairo in a GTK4 application.
Additional functions allow use [struct@Gdk.Rectangle]s with Cairo
and to use [struct@Gdk.RGBA], GdkPixbuf
, and [class@Gdk.Surface]
instances as sources for drawing operations.
For more information on Cairo, please see the Cairo API reference.