[cairo] global clip for a cairo context

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Sat Jan 2 06:11:30 PST 2016

Hi folks,

is it possible to set a global clip onto an cairo context, which
remains for the lifetime of the context (or until explicitly reset),
so it will never ever paint outside these boundaries ?

I'm looking for a way to achieve clipping in my tiny widget toolkit.
The individual widget's paint callback should get passed a cairo_t*,
representing it's paint area, just like if it had its own surface.


Enrico Weigelt,
metux IT consulting

More information about the cairo mailing list