Re: minimal cairo drawing loop

Dov Grobgeld <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CA++fsGH6GtpgjvLOq7pXWkFQ=5wFOgxPVa4x3c4r8gxyfWnBCw@mail.gmail.com>
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.

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 http://developer.gnome.org/gtk3/3.0/gtk-getting-started.html.

Regards,
Dov


On Tue, May 8, 2012 at 11:35 AM, Davide Calaminici <[email protected]>wrote:

> Hello everyone,
>
> just looking for a simple c code to create a minimal drawing loop.
>
> What i want to get is the following.
>
> Load an image
> create a surface where to draw
>
> draw lines on the surface
> clear the drawing area without cancelling the background image
> draw again
>
>
> eventually, is it possible to use two surface and swap the surface in a
> similar way of the double buffering technique?
>
> thank you very much.
>
> --
> cairo mailing list
> [email protected]
> http://lists.cairographics.org/mailman/listinfo/cairo
>

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.