summaryrefslogtreecommitdiff
path: root/src/cairo-gstate.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-04-19 16:29:04 +0000
committerCarl Worth <cworth@cworth.org>2005-04-19 16:29:04 +0000
commit9c10b54e5e98a5c5beca48c51ea930c2072ff6bc (patch)
treec3962a126cadfdc201f1a0ce82183d8e2744bb38 /src/cairo-gstate.c
parent60ec322241ef01930ae63195651249a97ddbe6f7 (diff)
Add new cairo_paint function.
Add new get_extents function to the surface backend interface. Add function to query current clip_extents. Implement the new get_extents function for each backend. Save the clip extents from set_clip_region and implement _cairo_surface_get_clip_extents. Abstract away the evil XGetGeometry roundtrip in _cairo_xlib_surface_get_size. Rewrite a couple of tests to call cairo_paint.
Diffstat (limited to 'src/cairo-gstate.c')
-rw-r--r--src/cairo-gstate.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c
index 98b2888ba..560974b63 100644
--- a/src/cairo-gstate.c
+++ b/src/cairo-gstate.c
@@ -1298,6 +1298,13 @@ _cairo_gstate_pattern_transform (cairo_gstate_t *gstate,
}
cairo_status_t
+_cairo_gstate_get_clip_extents (cairo_gstate_t *gstate,
+ cairo_rectangle_t *rectangle)
+{
+ return _cairo_surface_get_clip_extents (gstate->surface, rectangle);
+}
+
+cairo_status_t
_cairo_gstate_stroke (cairo_gstate_t *gstate)
{
cairo_status_t status;