diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-21 02:57:48 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-03-21 04:10:07 +0100 |
commit | ef693f317c0d3f21e6ec537400d3747c5457ea28 (patch) | |
tree | a21ac8f11fa44bfd356ffcf28bc965ea47f3aa0c /gdk | |
parent | f5ff44595a98fe128dfa35a312599315e887123d (diff) | |
download | gtk+-ef693f317c0d3f21e6ec537400d3747c5457ea28.tar.gz |
surface: Remove gdk_surface_get_clip_region()
... and gdk_surface_get_visible_region() APIs. They are unused.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdksurface.c | 48 | ||||
-rw-r--r-- | gdk/gdksurface.h | 5 |
2 files changed, 0 insertions, 53 deletions
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index b11b884753..e93cb64925 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -1976,54 +1976,6 @@ gdk_surface_get_drawing_context (GdkSurface *surface) return surface->drawing_context; } -/** - * gdk_surface_get_clip_region: - * @surface: a #GdkSurface - * - * Computes the region of a surface that potentially can be written - * to by drawing primitives. This region may not take into account - * other factors such as if the surface is obscured by other surfaces, - * but no area outside of this region will be affected by drawing - * primitives. - * - * Returns: a #cairo_region_t. This must be freed with cairo_region_destroy() - * when you are done. - **/ -cairo_region_t* -gdk_surface_get_clip_region (GdkSurface *surface) -{ - cairo_region_t *result; - - g_return_val_if_fail (GDK_SURFACE (surface), NULL); - - result = cairo_region_copy (surface->clip_region); - - if (surface->current_paint.region != NULL) - cairo_region_intersect (result, surface->current_paint.region); - - return result; -} - -/** - * gdk_surface_get_visible_region: - * @surface: a #GdkSurface - * - * Computes the region of the @surface that is potentially visible. - * This does not necessarily take into account if the surface is - * obscured by other surfaces, but no area outside of this region - * is visible. - * - * Returns: a #cairo_region_t. This must be freed with cairo_region_destroy() - * when you are done. - **/ -cairo_region_t * -gdk_surface_get_visible_region (GdkSurface *surface) -{ - g_return_val_if_fail (GDK_IS_SURFACE (surface), NULL); - - return cairo_region_copy (surface->clip_region); -} - static void gdk_surface_clear_backing_region (GdkSurface *surface) { diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h index 3f19c746ea..8ea5cfaa93 100644 --- a/gdk/gdksurface.h +++ b/gdk/gdksurface.h @@ -609,11 +609,6 @@ void gdk_surface_set_geometry_hints (GdkSurface *surface, GdkSurfaceHints geom_mask); GDK_AVAILABLE_IN_ALL -cairo_region_t *gdk_surface_get_clip_region (GdkSurface *surface); -GDK_AVAILABLE_IN_ALL -cairo_region_t *gdk_surface_get_visible_region(GdkSurface *surface); - -GDK_AVAILABLE_IN_ALL GdkDrawingContext *gdk_surface_begin_draw_frame (GdkSurface *surface, GdkDrawContext *context, const cairo_region_t *region); |