Add internal gdk_cairo_region_from_clip helper

This extract the current cairo clip region if possible and
returns it as a cairo_region_T. It will be needed by later code.
This commit is contained in:
Alexander Larsson
2014-10-09 09:58:36 +02:00
committed by Matthias Clasen
parent 892c6bd6f9
commit ceeed1c48d
2 changed files with 39 additions and 2 deletions

View File

@ -319,8 +319,10 @@ void _gdk_windowing_event_data_free (GdkEvent *event);
void _gdk_set_window_state (GdkWindow *window,
GdkWindowState new_state);
gboolean _gdk_cairo_surface_extents (cairo_surface_t *surface,
GdkRectangle *extents);
gboolean _gdk_cairo_surface_extents (cairo_surface_t *surface,
GdkRectangle *extents);
cairo_region_t *gdk_cairo_region_from_clip (cairo_t *cr);
/*************************************
* Interfaces used by windowing code *