mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
gdk: define GdkRectangle structure for introspection scanning
https://bugzilla.gnome.org/show_bug.cgi?id=748833
This commit is contained in:
parent
9a7e69a990
commit
724cc00f9b
@ -75,7 +75,23 @@ typedef struct _GdkPoint GdkPoint;
|
|||||||
* Defines the position and size of a rectangle. It is identical to
|
* Defines the position and size of a rectangle. It is identical to
|
||||||
* #cairo_rectangle_int_t.
|
* #cairo_rectangle_int_t.
|
||||||
*/
|
*/
|
||||||
|
#ifdef __GI_SCANNER__
|
||||||
|
/* The introspection scanner is currently unable to lookup how
|
||||||
|
* cairo_rectangle_int_t is actually defined. This prevents
|
||||||
|
* introspection data for the GdkRectangle type to include fields
|
||||||
|
* descriptions. To workaround this issue, we define it with the same
|
||||||
|
* content as cairo_rectangle_int_t, but only under the introspection
|
||||||
|
* define.
|
||||||
|
*/
|
||||||
|
struct _GdkRectangle
|
||||||
|
{
|
||||||
|
int x, y;
|
||||||
|
int width, height;
|
||||||
|
};
|
||||||
|
typedef struct _GdkRectangle GdkRectangle;
|
||||||
|
#else
|
||||||
typedef cairo_rectangle_int_t GdkRectangle;
|
typedef cairo_rectangle_int_t GdkRectangle;
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GdkAtom:
|
* GdkAtom:
|
||||||
|
Loading…
Reference in New Issue
Block a user