[cairo] virtual surfaces and composition

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Tue Dec 8 22:44:54 PST 2015

Hi folks,

I'm currently designing a new widget toolkit (focused on embedded /
full screen targets) and exploring whether cairo is suitable for that.

One important thing I didnt find out yet is how to create virtual
surfaces / canvas'es which later can be composited onto the screen.

The idea goes like this:

For each widget, there will be an virtual surface / canvas, where the
the widget renders itself on. In most cases, it will only be temporarily
accessible - when the engine calls the individual widget's paint handler
(unless the widget explicitly asks for a permanent surface). Optimally
widgets will only be repainted, when it actually changes (eg. not on
moving / scrolling, etc) - it's entirely up to the engine, whether
to buffer pixmaps or paint operations, etc.

How can I achieve that w/ cairo ?



mit freundlichen Grüßen
Enrico Weigelt,
metux IT consulting

More information about the cairo mailing list