Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > f367b81d465d696a7733ff78cd285c03 > files > 8

libgtkcairo2-0.3-5mdv2009.0.i586.rpm

/* gtkcairo - GTK+ widget for displaying a Cairo surface.
 *
 * Hacked up by Evan Martin <martine@danga.com>.
 * further modified by OEyvind Kolaas <oeyvindk@hig.no>
 */


GtkCairo is a library that provides a new widget to be used in your
GTK+ program: a Cairo surface.


Dependencies
------------

GtkCairo depends on the obvious two:
 - GTK 2: http://www.gtk.org
 - Cairo: http://www.cairographics.org


Usage
-----

Hook up to the widgets "paint" signal with your custom drawing code,
queue redraw of the widget using gtk_widget_queue_draw (widget);

The interesting bits are the operations you can perform on the Cairo
surface, the documentation of which is outside the scope of GtkCairo.

To use GtkCairo in your code, add the package "gtkcairo" to the list
of packages you pull in via pkg-config.


Backend selection
-----------------

GtkCairo should choose a reasonable cairo backend by default, at the
moment this means the xlib backend since it provides AA at all times,
setting the backend can be done through the enviroment variable

export GTKCAIRO_BACKEND = gl
export GTKCAIRO_BACKEND = xlib
export GTKCAIRO_BACKEND = image

before starting an application.


Acknowledgement
---------------

The majority of GtkCairo was a cut'n'paste job from from grrobot, by
Carl Worth.


vim: tw=70