[cairo] GTKCairo development
oeyvindk at hig.no
Sat May 1 08:17:51 PDT 2004
* Owen Taylor <otaylor at redhat.com> [040501 16:42]:
> We might want a convenience function something on the Gdk/Cairo
> interface to set the Cairo color from a GdkColor so you
> can do:
> gdk_cairo_set_color (cairo, &style->base[GTK_STATE_NORMAL]);
Somehow I feel cairo_gdk_set_color would make more sense, since the first
parameter for the function is the cairo state, my initial naming of
cairo_set_g?k_color was to make it similar to cairo_set_rgb_color.
I've implemented the function in the cairo_custom.[ch] files of the
gtkcairo_slide example, using your naming convention, on the grounds
that it only is necesary when using g?k with cairo, and it is uninteresting
in all other cases.
I'll move it over to the gtkcairo module when I have more time
to spend on these issues.
> Here what we need is Pango/Cairo integration ... obviously that is a
> fairly big job, but since we have a real font system, spending effort
> integrating GTK+ with the toy font system is a bit weird. It's on my
> roadmap, but probably will take a while yet. If someone else wanted to
> play around with that, that would be great.
The only reason to spend some effort integrating this is that the toy
API in cairo is good enough for very simple things, like labels, and
I think the default case of not choosing a font should automatically
choose a font that is consistent with the rest of the ui.
/V\ Øyvind Kolås, Gjøvik University College, Norway
/(_)\ <oeyvindk at hig.no>,<pippin at users.sourceforge.net>
More information about the cairo