<div dir="ltr"><font face="arial,helvetica,sans-serif">Cairo is a library for drawing images, and it does not have any user interface associated with it. The questions you ask are assuming that you have an event loop where you have redrawing etc. That is not the case for cairo.<br>
<br>That said, there are several graphics toolkits that make use of cairo. One of them is gtk that in its latest version, gtk-3.0, uses cairo exclusively for all its compositions. If that is what you are looking for you should have a look at <a href="http://developer.gnome.org/gtk3/3.0/gtk-getting-started.html">http://developer.gnome.org/gtk3/3.0/gtk-getting-started.html</a> .<br>
<br>Regards,<br>Dov<br><br></font><br><div class="gmail_quote">On Tue, May 8, 2012 at 11:35 AM, Davide Calaminici <span dir="ltr">&lt;<a href="mailto:amiblit@gmail.com" target="_blank">amiblit@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br><br>just looking for a simple c code to create a minimal drawing loop.<br><br>What i want to get is the following.<br>
<br>Load an image<br>create a surface where to draw<br><br>draw lines on the surface<br>
clear the drawing area without cancelling the background image<br>draw again<br><br><br>eventually, is it possible to use two surface and swap the surface in a similar way of the double buffering technique?<br><br>thank you very much.<br>

<br>--<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br></blockquote></div><br></div>