Re: deprecated gtk_cairo_create
- From: Emmanuele Bassi <ebassi gmail com>
- To: Jim Charlton <charltn gmail com>
- Cc: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: deprecated gtk_cairo_create
- Date: Fri, 30 Dec 2016 18:06:41 +0000
Hi;
On 30 December 2016 at 17:25, Jim Charlton <charltn gmail com> wrote:
If one does want to draw into a cairo_surface_t, one can create a cairo
context for drawing? E.g.
Yes, that's the expected approach.
You either create your own Cairo surface, or you ask GDK to create a
similar surface (or similar image surface) to the one used by the
GdkWindow that is the target of the rendering. Then, you call
`cairo_create()` to get a Cairo context.
cairo_t <https://cairographics.org/manual/cairo-cairo-t.html#cairo-t> *
cairo_create (/|cairo_surface_t
<https://cairographics.org/manual/cairo-cairo-surface-t.html#cairo-surface-t>
*target|/);
That use of cairo_create() is not deprecated... (I assume).
Indeed, it's not deprecated.
Ciao,
Emmanuele.
--
https://www.bassi.io
[@] ebassi [@gmail.com]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]