summaryrefslogtreecommitdiff
path: root/docs/reference/gdk/cairo.md
blob: f7d3c969b4369dd5017986856ae29c924c4667a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
----
Title: Cairo interaction
----

## Functions to support using cairo

[Cairo](http://cairographics.org) is a graphics library that supports vector
graphics and image compositing that can be used with GTK.

GDK does not wrap the Cairo API; instead it allows to create Cairo
drawing contexts which can be used to draw on [class@Gdk.Surface]s.

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](https://www.cairographics.org/manual/).