[cairo] Self-contained X11 source code to draw with Cairo

Bill Spitzak spitzak at gmail.com
Tue Oct 20 16:17:28 PDT 2009


This is a cleaned up version of my code to use Cairo without using gtk 
or another toolkit.

In this version the code you may actually want to alter to change what 
the program does has been extracted into functions at the bottom, making 
it a lot easier to adapt. This has also been tested and works with pango 
drawing (requires pkg-config to compile, however).

Hope some Cairo users enjoy this. Please send any feedback!

Bill Spitzak

-------------- next part --------------
A non-text attachment was scrubbed...
Name: x11cairo.c
Type: text/x-csrc
Size: 14203 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20091020/4eb243d0/attachment-0001.c 


More information about the cairo mailing list