Commit 300e6b84 authored by Benjamin Otte's avatar Benjamin Otte

s/GdkRegion/cairo_region_t/ in all of gtk

https://bugzilla.gnome.org/show_bug.cgi?id=613284
parent 3e96cfe8
......@@ -44,7 +44,6 @@
#include "gdkinternals.h"
#include "gdkregion-generic.h"
#include "gdkalias.h"
#include "cairo-directfb.h"
......@@ -226,7 +225,7 @@ void
gdk_directfb_clip_region (GdkDrawable *drawable,
GdkGC *gc,
GdkRectangle *draw_rect,
GdkRegion *ret_clip)
cairo_region_t *ret_clip)
{
GdkDrawableImplDirectFB *private;
GdkRectangle rect;
......@@ -264,7 +263,7 @@ gdk_directfb_clip_region (GdkDrawable *drawable,
if (gc)
{
GdkGCDirectFB *gc_private = GDK_GC_DIRECTFB (gc);
GdkRegion *region = &gc_private->clip_region;
cairo_region_t *region = &gc_private->clip_region;
if (region->numRects)
{
......@@ -299,7 +298,7 @@ gdk_directfb_clip_region (GdkDrawable *drawable,
!GDK_WINDOW_OBJECT (private->wrapper)->input_only)
{
GList *cur;
GdkRegion temp;
cairo_region_t temp;
temp.numRects = 1;
temp.rects = &temp.extents;
......@@ -428,7 +427,7 @@ gdk_directfb_draw_rectangle (GdkDrawable *drawable,
gint height)
{
GdkDrawableImplDirectFB *impl;
GdkRegion clip;
cairo_region_t clip;
GdkGCDirectFB *gc_private = NULL;
IDirectFBSurface *surface = NULL;
gint i;
......@@ -543,7 +542,7 @@ gdk_directfb_draw_rectangle (GdkDrawable *drawable,
for (i = 0; i < clip.numRects; i++)
{
GdkRegionBox *box = &clip.rects[i];
cairo_region_tBox *box = &clip.rects[i];
rects[i].x = box->x1;
rects[i].y = box->y1;
......@@ -606,7 +605,7 @@ gdk_directfb_draw_polygon (GdkDrawable *drawable,
points[0].y == points[npoints-1].y))
{
GdkDrawableImplDirectFB *impl;
GdkRegion clip;
cairo_region_t clip;
gint i;
impl = GDK_DRAWABLE_IMPL_DIRECTFB (drawable);
......@@ -671,7 +670,7 @@ gdk_directfb_draw_drawable (GdkDrawable *drawable,
{
GdkDrawableImplDirectFB *impl;
GdkDrawableImplDirectFB *src_impl;
GdkRegion clip;
cairo_region_t clip;
GdkRectangle dest_rect = { xdest,
ydest,
xdest + width ,
......@@ -721,7 +720,7 @@ gdk_directfb_draw_points (GdkDrawable *drawable,
gint npoints)
{
GdkDrawableImplDirectFB *impl;
GdkRegion clip;
cairo_region_t clip;
DFBRegion region = { points->x, points->y, points->x, points->y };
......@@ -769,7 +768,7 @@ gdk_directfb_draw_segments (GdkDrawable *drawable,
gint nsegs)
{
GdkDrawableImplDirectFB *impl;
GdkRegion clip;
cairo_region_t clip;
gint i;
// DFBRegion region = { segs->x1, segs->y1, segs->x2, segs->y2 };
......@@ -847,7 +846,7 @@ gdk_directfb_draw_lines (GdkDrawable *drawable,
gint npoints)
{
GdkDrawableImplDirectFB *impl;
GdkRegion clip;
cairo_region_t clip;
gint i;
DFBRegion lines[npoints > 1 ? npoints - 1 : 1];
......@@ -920,7 +919,7 @@ gdk_directfb_draw_image (GdkDrawable *drawable,
{
GdkDrawableImplDirectFB *impl;
GdkImageDirectFB *image_private;
GdkRegion clip;
cairo_region_t clip;
GdkRectangle dest_rect = { xdest, ydest, width, height };
gint pitch = 0;
......@@ -1156,8 +1155,8 @@ gdk_directfb_draw_pixbuf (GdkDrawable *drawable,
{
GdkPixbuf *composited = NULL;
#if 0
GdkRegion *clip;
GdkRegion *drect;
cairo_region_t *clip;
cairo_region_t *drect;
GdkRectangle tmp_rect;
#endif
GdkDrawableImplDirectFB *impl = GDK_DRAWABLE_IMPL_DIRECTFB (drawable);
......
......@@ -42,7 +42,6 @@
#include "gdkgc.h"
#include "gdkpixmap.h"
#include "gdkregion-generic.h"
#include "gdkalias.h"
......@@ -313,7 +312,7 @@ gc_unset_clip_mask (GdkGC *gc)
void
_gdk_windowing_gc_set_clip_region (GdkGC *gc,
const GdkRegion *region,
const cairo_region_t *region,
gboolean reset_origin)
{
GdkGCDirectFB *data;
......
......@@ -53,7 +53,7 @@ _gdk_directfb_window_get_offsets (GdkWindow *window,
gboolean
_gdk_windowing_window_queue_antiexpose (GdkWindow *window,
GdkRegion *area)
cairo_region_t *area)
{
return FALSE;
}
......@@ -75,7 +75,7 @@ _gdk_directfb_window_scroll (GdkWindow *window,
{
GdkWindowObject *private;
GdkDrawableImplDirectFB *impl;
GdkRegion *invalidate_region = NULL;
cairo_region_t *invalidate_region = NULL;
GList *list;
g_return_if_fail (GDK_IS_WINDOW (window));
......@@ -104,7 +104,7 @@ _gdk_directfb_window_scroll (GdkWindow *window,
(!private->update_area ||
!cairo_region_contains_rectangle (private->update_area, &rect)))
{
GdkRegion *region;
cairo_region_t *region;
region = cairo_region_create_rectangle (&rect);
cairo_region_subtract (invalidate_region, region);
......@@ -148,7 +148,7 @@ _gdk_directfb_window_scroll (GdkWindow *window,
/**
* gdk_window_move_region:
* @window: a #GdkWindow
* @region: The #GdkRegion to move
* @region: The #cairo_region_t to move
* @dx: Amount to move in the X direction
* @dy: Amount to move in the Y direction
*
......@@ -162,17 +162,17 @@ _gdk_directfb_window_scroll (GdkWindow *window,
**/
void
_gdk_directfb_window_move_region (GdkWindow *window,
const GdkRegion *region,
const cairo_region_t *region,
gint dx,
gint dy)
{
GdkWindowObject *private;
GdkDrawableImplDirectFB *impl;
GdkRegion *window_clip;
GdkRegion *src_region;
GdkRegion *brought_in;
GdkRegion *dest_region;
GdkRegion *moving_invalid_region;
cairo_region_t *window_clip;
cairo_region_t *src_region;
cairo_region_t *brought_in;
cairo_region_t *dest_region;
cairo_region_t *moving_invalid_region;
GdkRectangle dest_extents;
g_return_if_fail (GDK_IS_WINDOW (window));
......
......@@ -38,7 +38,6 @@
#include "gdkinternals.h"
#include "gdkcursor.h"
#include "gdkdisplay-directfb.h"
#include "gdkregion-generic.h"
#include <cairo.h>
#include <string.h>
......@@ -72,14 +71,14 @@ struct _GdkDrawableImplDirectFB
gboolean buffered;
GdkRegion paint_region;
cairo_region_t paint_region;
gint paint_depth;
gint width;
gint height;
gint abs_x;
gint abs_y;
GdkRegion clip_region;
cairo_region_t clip_region;
GdkColormap *colormap;
......@@ -179,7 +178,7 @@ void _gdk_directfb_window_scroll (GdkWindow *window,
gint dx,
gint dy);
void _gdk_directfb_window_move_region (GdkWindow *window,
const GdkRegion *region,
const cairo_region_t *region,
gint dx,
gint dy);
......@@ -213,7 +212,7 @@ typedef struct
{
GdkGC parent_instance;
GdkRegion clip_region;
cairo_region_t clip_region;
GdkGCValuesMask values_mask;
GdkGCValues values;
......@@ -335,14 +334,14 @@ void gdk_fb_window_set_child_handler (GdkWindow *window,
void gdk_directfb_clip_region (GdkDrawable *drawable,
GdkGC *gc,
GdkRectangle *draw_rect,
GdkRegion *ret_clip);
cairo_region_t *ret_clip);
/* Utilities for avoiding mallocs */
static inline void
temp_region_init_copy( GdkRegion *region,
const GdkRegion *source)
temp_region_init_copy( cairo_region_t *region,
const cairo_region_t *source)
{
if (region != source) /* don't want to copy to itself */
{
......@@ -351,19 +350,19 @@ temp_region_init_copy( GdkRegion *region,
if (region->rects && region->rects != &region->extents)
g_free( region->rects );
region->rects = g_new (GdkRegionBox, source->numRects);
region->rects = g_new (cairo_region_tBox, source->numRects);
region->size = source->numRects;
}
region->numRects = source->numRects;
region->extents = source->extents;
memcpy( region->rects, source->rects, source->numRects * sizeof (GdkRegionBox) );
memcpy( region->rects, source->rects, source->numRects * sizeof (cairo_region_tBox) );
}
}
static inline void
temp_region_init_rectangle( GdkRegion *region,
temp_region_init_rectangle( cairo_region_t *region,
const GdkRectangle *rect )
{
region->numRects = 1;
......@@ -376,7 +375,7 @@ temp_region_init_rectangle( GdkRegion *region,
}
static inline void
temp_region_init_rectangle_vals( GdkRegion *region,
temp_region_init_rectangle_vals( cairo_region_t *region,
int x,
int y,
int w,
......@@ -392,7 +391,7 @@ temp_region_init_rectangle_vals( GdkRegion *region,
}
static inline void
temp_region_reset( GdkRegion *region )
temp_region_reset( cairo_region_t *region )
{
if (region->size > 32 && region->rects && region->rects != &region->extents) {
g_free( region->rects );
......@@ -405,7 +404,7 @@ temp_region_reset( GdkRegion *region )
}
static inline void
temp_region_deinit( GdkRegion *region )
temp_region_deinit( cairo_region_t *region )
{
if (region->rects && region->rects != &region->extents) {
g_free( region->rects );
......
......@@ -40,8 +40,6 @@
#include "gdkprivate-directfb.h"
#include "gdkdisplay-directfb.h"
#include "gdkregion-generic.h"
#include "gdkinternals.h"
#include "gdkalias.h"
#include "cairo.h"
......@@ -57,7 +55,7 @@ D_DEBUG_DOMAIN( GDKDFB_Paintable, "GDKDFB/Paintable", "GDK DirectFB Paintable" )
D_DEBUG_DOMAIN( GDKDFB_Window, "GDKDFB/Window", "GDK DirectFB Window" );
static GdkRegion * gdk_window_impl_directfb_get_visible_region (GdkDrawable *drawable);
static cairo_region_t * gdk_window_impl_directfb_get_visible_region (GdkDrawable *drawable);
static void gdk_window_impl_directfb_set_colormap (GdkDrawable *drawable,
GdkColormap *colormap);
static void gdk_window_impl_directfb_init (GdkWindowImplDirectFB *window);
......@@ -209,7 +207,7 @@ gdk_window_impl_directfb_finalize (GObject *object)
G_OBJECT_CLASS (parent_class)->finalize (object);
}
static GdkRegion*
static cairo_region_t*
gdk_window_impl_directfb_get_visible_region (GdkDrawable *drawable)
{
GdkDrawableImplDirectFB *priv = GDK_DRAWABLE_IMPL_DIRECTFB (drawable);
......@@ -1942,7 +1940,7 @@ gdk_directfb_window_set_events (GdkWindow *window,
static void
gdk_directfb_window_shape_combine_region (GdkWindow *window,
const GdkRegion *shape_region,
const cairo_region_t *shape_region,
gint offset_x,
gint offset_y)
{
......@@ -1950,7 +1948,7 @@ gdk_directfb_window_shape_combine_region (GdkWindow *window,
void
gdk_directfb_window_input_shape_combine_region (GdkWindow *window,
const GdkRegion *shape_region,
const cairo_region_t *shape_region,
gint offset_x,
gint offset_y)
{
......@@ -1959,7 +1957,7 @@ gdk_directfb_window_input_shape_combine_region (GdkWindow *window,
static void
gdk_directfb_window_queue_translation (GdkWindow *window,
GdkGC *gc,
GdkRegion *region,
cairo_region_t *region,
gint dx,
gint dy)
{
......@@ -2622,7 +2620,7 @@ gdk_window_set_urgency_hint (GdkWindow *window,
static void
gdk_window_impl_directfb_begin_paint_region (GdkPaintable *paintable,
GdkWindow *window,
const GdkRegion *region)
const cairo_region_t *region)
{
GdkDrawableImplDirectFB *impl;
GdkWindowImplDirectFB *wimpl;
......@@ -2679,7 +2677,7 @@ gdk_window_impl_directfb_begin_paint_region (GdkPaintable *paintable,
for (i = 0; i < region->numRects; i++)
{
GdkRegionBox *box = &region->rects[i];
cairo_region_tBox *box = &region->rects[i];
D_DEBUG_AT( GDKDFB_Window, " -> [%2d] %4d,%4d-%4dx%4d\n", i, GDKDFB_RECTANGLE_VALS_FROM_BOX( box ) );
......@@ -2766,13 +2764,13 @@ gdk_window_impl_directfb_end_paint (GdkPaintable *paintable)
D_DEBUG_AT( GDKDFB_Window, " -> depth is still %d\n", impl->paint_depth );
}
GdkRegion *
cairo_region_t *
_gdk_windowing_get_shape_for_mask (GdkBitmap *mask)
{
return NULL;
}
GdkRegion *
cairo_region_t *
_gdk_windowing_window_get_shape (GdkWindow *window)
{
return NULL;
......@@ -2784,7 +2782,7 @@ _gdk_windowing_window_get_next_serial (GdkDisplay *display)
return 0;
}
GdkRegion *
cairo_region_t *
_gdk_windowing_window_get_input_shape (GdkWindow *window)
{
return NULL;
......@@ -2802,7 +2800,7 @@ _gdk_windowing_after_process_all_updates (void)
void
_gdk_windowing_window_process_updates_recurse (GdkWindow *window,
GdkRegion *region)
cairo_region_t *region)
{
_gdk_window_process_updates_recurse (window, region);
}
......@@ -2861,7 +2859,7 @@ gdk_directfb_window_get_root_coords (GdkWindow *window,
static gboolean
gdk_directfb_window_queue_antiexpose (GdkWindow *window,
GdkRegion *area)
cairo_region_t *area)
{
return FALSE;
}
......
......@@ -132,7 +132,7 @@ gdk_cairo_rectangle (cairo_t *cr,
/**
* gdk_cairo_region:
* @cr: a #cairo_t
* @region: a #GdkRegion
* @region: a #cairo_region_t
*
* Adds the given region to the current path of @cr.
*
......@@ -140,7 +140,7 @@ gdk_cairo_rectangle (cairo_t *cr,
**/
void
gdk_cairo_region (cairo_t *cr,
const GdkRegion *region)
const cairo_region_t *region)
{
cairo_rectangle_int_t box;
gint n_boxes, i;
......
......@@ -48,7 +48,7 @@ void gdk_cairo_set_source_pixmap (cairo_t *cr,
void gdk_cairo_rectangle (cairo_t *cr,
const GdkRectangle *rectangle);
void gdk_cairo_region (cairo_t *cr,
const GdkRegion *region);
const cairo_region_t *region);
G_END_DECLS
......
......@@ -48,7 +48,7 @@ static GdkDrawable* gdk_drawable_real_get_composite_drawable (GdkDrawable *draw
gint height,
gint *composite_x_offset,
gint *composite_y_offset);
static GdkRegion * gdk_drawable_real_get_visible_region (GdkDrawable *drawable);
static cairo_region_t * gdk_drawable_real_get_visible_region (GdkDrawable *drawable);
static void gdk_drawable_real_draw_pixbuf (GdkDrawable *drawable,
GdkGC *gc,
GdkPixbuf *pixbuf,
......@@ -1059,10 +1059,10 @@ gdk_drawable_real_get_composite_drawable (GdkDrawable *drawable,
* but no area outside of this region will be affected by drawing
* primitives.
*
* Returns: a #GdkRegion. This must be freed with cairo_region_destroy()
* Returns: a #cairo_region_t. This must be freed with cairo_region_destroy()
* when you are done.
**/
GdkRegion *
cairo_region_t *
gdk_drawable_get_clip_region (GdkDrawable *drawable)
{
g_return_val_if_fail (GDK_IS_DRAWABLE (drawable), NULL);
......@@ -1079,10 +1079,10 @@ gdk_drawable_get_clip_region (GdkDrawable *drawable)
* obscured by other windows, but no area outside of this region
* is visible.
*
* Returns: a #GdkRegion. This must be freed with cairo_region_destroy()
* Returns: a #cairo_region_t. This must be freed with cairo_region_destroy()
* when you are done.
**/
GdkRegion *
cairo_region_t *
gdk_drawable_get_visible_region (GdkDrawable *drawable)
{
g_return_val_if_fail (GDK_IS_DRAWABLE (drawable), NULL);
......@@ -1090,7 +1090,7 @@ gdk_drawable_get_visible_region (GdkDrawable *drawable)
return GDK_DRAWABLE_GET_CLASS (drawable)->get_visible_region (drawable);
}
static GdkRegion *
static cairo_region_t *
gdk_drawable_real_get_visible_region (GdkDrawable *drawable)
{
GdkRectangle rect;
......@@ -1371,8 +1371,8 @@ gdk_drawable_real_draw_pixbuf (GdkDrawable *drawable,
{
GdkPixbuf *composited = NULL;
gint dwidth, dheight;
GdkRegion *clip;
GdkRegion *drect;
cairo_region_t *clip;
cairo_region_t *drect;
GdkRectangle tmp_rect;
GdkDrawable *real_drawable;
......
......@@ -140,8 +140,8 @@ struct _GdkDrawableClass
gint width,
gint height);
GdkRegion* (*get_clip_region) (GdkDrawable *drawable);
GdkRegion* (*get_visible_region) (GdkDrawable *drawable);
cairo_region_t* (*get_clip_region) (GdkDrawable *drawable);
cairo_region_t* (*get_visible_region) (GdkDrawable *drawable);
GdkDrawable* (*get_composite_drawable) (GdkDrawable *drawable,
gint x,
......@@ -372,8 +372,8 @@ GdkImage *gdk_drawable_copy_to_image (GdkDrawable *drawable,
gint width,
gint height);
GdkRegion *gdk_drawable_get_clip_region (GdkDrawable *drawable);
GdkRegion *gdk_drawable_get_visible_region (GdkDrawable *drawable);
cairo_region_t *gdk_drawable_get_clip_region (GdkDrawable *drawable);
cairo_region_t *gdk_drawable_get_visible_region (GdkDrawable *drawable);
G_END_DECLS
......
......@@ -279,7 +279,7 @@ struct _GdkEventExpose
GdkWindow *window;
gint8 send_event;
GdkRectangle area;
GdkRegion *region;
cairo_region_t *region;
gint count; /* If non-zero, how many more events follow. */
};
......
......@@ -41,13 +41,13 @@ typedef struct _GdkGCPrivate GdkGCPrivate;
struct _GdkGCPrivate
{
GdkRegion *clip_region;
cairo_region_t *clip_region;
guint32 region_tag_applied;
int region_tag_offset_x;
int region_tag_offset_y;
GdkRegion *old_clip_region;
cairo_region_t *old_clip_region;
GdkPixmap *old_clip_mask;
GdkBitmap *stipple;
......@@ -538,7 +538,7 @@ gdk_gc_set_clip_mask (GdkGC *gc,
/* Takes ownership of passed in region */
static void
_gdk_gc_set_clip_region_real (GdkGC *gc,
GdkRegion *region,
cairo_region_t *region,
gboolean reset_origin)
{
GdkGCPrivate *priv = GDK_GC_GET_PRIVATE (gc);
......@@ -560,7 +560,7 @@ _gdk_gc_set_clip_region_real (GdkGC *gc,
/* Doesn't copy region, allows not to reset origin */
void
_gdk_gc_set_clip_region_internal (GdkGC *gc,
GdkRegion *region,
cairo_region_t *region,
gboolean reset_origin)
{
_gdk_gc_remove_drawable_clip (gc);
......@@ -571,7 +571,7 @@ _gdk_gc_set_clip_region_internal (GdkGC *gc,
void
_gdk_gc_add_drawable_clip (GdkGC *gc,
guint32 region_tag,
GdkRegion *region,
cairo_region_t *region,
int offset_x,
int offset_y)
{
......@@ -634,7 +634,7 @@ _gdk_gc_add_drawable_clip (GdkGC *gc,
else if (overlap == CAIRO_REGION_OVERLAP_OUT)
{
/* No intersection, set empty clip region */
GdkRegion *empty = cairo_region_create ();
cairo_region_t *empty = cairo_region_create ();
cairo_region_destroy (region);
priv->old_clip_mask = g_object_ref (priv->clip_mask);
......@@ -704,7 +704,7 @@ void
gdk_gc_set_clip_rectangle (GdkGC *gc,
const GdkRectangle *rectangle)
{
GdkRegion *region;
cairo_region_t *region;
g_return_if_fail (GDK_IS_GC (gc));
......@@ -721,7 +721,7 @@ gdk_gc_set_clip_rectangle (GdkGC *gc,
/**
* gdk_gc_set_clip_region:
* @gc: a #GdkGC.
* @region: the #GdkRegion.
* @region: the #cairo_region_t.
*
* Sets the clip mask for a graphics context from a region structure.
* The clip mask is interpreted relative to the clip origin. (See
......@@ -729,9 +729,9 @@ gdk_gc_set_clip_rectangle (GdkGC *gc,
**/
void
gdk_gc_set_clip_region (GdkGC *gc,
const GdkRegion *region)
const cairo_region_t *region)
{
GdkRegion *copy;
cairo_region_t *copy;
g_return_if_fail (GDK_IS_GC (gc));
......@@ -755,7 +755,7 @@ gdk_gc_set_clip_region (GdkGC *gc,
* (if a clip mask is set, the return will be %NULL)
* This value is owned by the GC and must not be freed.
**/
GdkRegion *
cairo_region_t *
_gdk_gc_get_clip_region (GdkGC *gc)
{
g_return_val_if_fail (GDK_IS_GC (gc), NULL);
......
......@@ -252,7 +252,7 @@ void gdk_gc_set_clip_mask (GdkGC *gc,
void gdk_gc_set_clip_rectangle (GdkGC *gc,
const GdkRectangle *rectangle);
void gdk_gc_set_clip_region (GdkGC *gc,
const GdkRegion *region);
const cairo_region_t *region);
void gdk_gc_set_subwindow (GdkGC *gc,
GdkSubwindowMode mode);
void gdk_gc_set_exposures (GdkGC *gc,
......
......@@ -212,7 +212,7 @@ struct _GdkWindowObject
GSList *paint_stack;
GdkRegion *update_area;
cairo_region_t *update_area;
guint update_freeze_count;
guint8 window_type;
......@@ -248,8 +248,8 @@ struct _GdkWindowObject
int abs_x, abs_y; /* Absolute offset in impl */
gint width, height;
guint32 clip_tag;
GdkRegion *clip_region; /* Clip region (wrt toplevel) in window coords */
GdkRegion *clip_region_with_children; /* Clip region in window coords */
cairo_region_t *clip_region; /* Clip region (wrt toplevel) in window coords */
cairo_region_t *clip_region_with_children; /* Clip region in window coords */
GdkCursor *cursor;
GHashTable *device_cursor;
gint8 toplevel_window_type;
......@@ -266,8 +266,8 @@ struct _GdkWindowObject
GList *outstanding_moves;
GdkRegion *shape;
GdkRegion *input_shape;
cairo_region_t *shape;
cairo_region_t *input_shape;
cairo_surface_t *cairo_surface;
guint outstanding_surfaces; /* only set on impl window */
......@@ -397,7 +397,7 @@ void _gdk_window_update_size (GdkWindow *window);
gboolean _gdk_window_update_viewable (GdkWindow *window);
void _gdk_window_process_updates_recurse (GdkWindow *window,
GdkRegion *expose_region);
cairo_region_t *expose_region);
void _gdk_screen_close (GdkScreen *screen);
......@@ -408,7 +408,7 @@ void _gdk_gc_init (GdkGC *gc,
GdkGCValues *values,
GdkGCValuesMask values_mask);
GdkRegion *_gdk_gc_get_clip_region (GdkGC *gc);
cairo_region_t *_gdk_gc_get_clip_region (GdkGC *gc);
GdkBitmap *_gdk_gc_get_clip_mask (GdkGC *gc);
gboolean _gdk_gc_get_exposures (GdkGC *gc);
GdkFill _gdk_gc_get_fill (GdkGC *gc);
......@@ -418,12 +418,12 @@ guint32 _gdk_gc_get_fg_pixel (GdkGC *gc);
guint32 _gdk_gc_get_bg_pixel (GdkGC *gc);
void _gdk_gc_add_drawable_clip (GdkGC *gc,
guint32 region_tag,
GdkRegion *region,
cairo_region_t *region,
int offset_x,
int offset_y);
void _gdk_gc_remove_drawable_clip (GdkGC *gc);
void _gdk_gc_set_clip_region_internal (GdkGC *gc,
GdkRegion *region,
cairo_region_t *region,
gboolean reset_origin);
GdkSubwindowMode _gdk_gc_get_subwindow (GdkGC *gc);
......@@ -457,9 +457,9 @@ gulong _gdk_windowing_window_get_next_serial (GdkDisplay *display);
void _gdk_windowing_window_get_offsets (GdkWindow *window,
gint *x_offset,
gint *y_offset);
GdkRegion *_gdk_windowing_window_get_shape (GdkWindow *window);
GdkRegion *_gdk_windowing_window_get_input_shape(GdkWindow *window);
GdkRegion *_gdk_windowing_get_shape_for_mask (GdkBitmap *mask);
cairo_region_t *_gdk_windowing_window_get_shape (GdkWindow *window);
cairo_region_t *_gdk_windowing_window_get_input_shape(GdkWindow *window);
cairo_region_t *_gdk_windowing_get_shape_for_mask (GdkBitmap *mask);
void _gdk_windowing_window_beep (GdkWindow *window);
......@@ -489,7 +489,7 @@ void _gdk_windowing_got_event (GdkDisplay *display,
gulong serial);
void _gdk_windowing_window_process_updates_recurse (GdkWindow *window,
GdkRegion *expose_region);
cairo_region_t *expose_region);
void _gdk_windowing_before_process_all_updates (void);
void _gdk_windowing_after_process_all_updates (void);
......@@ -528,7 +528,7 @@ struct _GdkPaintableIface
void (* begin_paint_region) (GdkPaintable *paintable,
GdkWindow *window,
const GdkRegion *region);
const cairo_region_t *region);
void (* end_paint) (GdkPaintable *paintable);
};
......@@ -555,7 +555,7 @@ GType _gdk_pixmap_impl_get_type (void) G_GNUC_CONST;
* will already return the new region.
**/
void _gdk_windowing_gc_set_clip_region (GdkGC *gc,
const GdkRegion *region,
const cairo_region_t *region,
gboolean reset_origin);
/**
......@@ -630,7 +630,7 @@ void _gdk_display_pointer_info_foreach (GdkDisplay *display,
gpointer user_data);
void _gdk_window_invalidate_for_expose (GdkWindow *window,
GdkRegion *region);
cairo_region_t *region);
void _gdk_windowing_set_cairo_surface_size (cairo_surface_t *surface,
int width,
......@@ -647,7 +647,7 @@ GdkWindow * _gdk_window_find_descendant_at (GdkWindow *toplevel,
double *found_y);
void _gdk_window_add_damage (GdkWindow *toplevel,
GdkRegion *damaged_region);
cairo_region_t *damaged_region);
GdkEvent * _gdk_make_event (GdkWindow *window,
GdkEventType type,
......@@ -675,7 +675,7 @@ void _gdk_display_set_window_under_pointer (GdkDisplay *display,
void _gdk_synthesize_crossing_events_for_geometry_change (GdkWindow *changed_window);
GdkRegion *_gdk_window_calculate_full_clip_region (GdkWindow *window,
cairo_region_t *_gdk_window_calculate_full_clip_region (GdkWindow *window,
GdkWindow *base_window,