Re: GdkRectangle vs cairo_rectangle_int_t
- From: Emmanuele Bassi <ebassi gmail com>
- To: Juan Rafael García Blanco <juanrgar gmail com>
- Cc: GTK Devel List <gtk-devel-list gnome org>
- Subject: Re: GdkRectangle vs cairo_rectangle_int_t
- Date: Tue, 28 Jan 2014 19:36:51 +0000
hi;
On 28 January 2014 19:30, Juan Rafael García Blanco <juanrgar gmail com> wrote:
Just wondering, why gtk_popover_set_pointing_to() takes an argument of type cairo_rectangle_int_t and not
of type GdkRectangle? Which one is better suited for each situation? I know one if a typedef of the other,
but I’m curious and I can’t think of it myself. I guess cairo_rectangle_int_t makes more sense when the
rectangle is something actually drawn, and GdkRectangle is more general.
GdkRectangle is a typedef to cairo_rectangle_int_t, so the two types
are completely identical.
GdkRectangle predates cairo_rectangle_int_t; it actually predates the
whole of libcairo. during the transition from 2.x to 3.x we considered
the idea of dropping GdkRectangle, but the churn was judged too much.
newly written API should use Cairo types — cairo_rectangle_t,
cairo_rectangle_int_t, and cairo_region_t.
ciao,
Emmanuele.
--
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]