Re: cairo functions too use instead of gdk ones
- From: Tadej Borovšak <tadeboro gmail com>
- To: Christopher Roy Bratusek <zanghar freenet de>
- Cc: gtk-list gnome org
- Subject: Re: cairo functions too use instead of gdk ones
- Date: Thu, 23 Sep 2010 21:11:57 +0200
Hi.
Replacements would probably look like this:
> gdk_gc_new
cairo_create() or gdk_cairo_create() if you're using GTK+
> gdk_gc_set_foreground
cairo_set_source_rgb() or gdk_cairo_set_source_color()
> gdk_pixmap_create_from_xpm
This last one is a bit tricky, since you should not use GdkPixmaps
anymore. For equivalent result, you'll need to
- create new cairo surface that will serve as a replacement for GdkPixmap
- load XPM into GdkPixbuf
- paint that pixbuf onto your new surface
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]