[cairo] cairo_gstate_t?

Fred Kiefer fredkiefer at gmx.de
Sat Oct 8 12:40:33 PDT 2011


I would highly welcome that addition to cairo. This is the interface we need for GNUstep to easily implement the display Postscript interface we need to provide. Up to now we needed to work around this restrictin by adding a rather ugly and inefficent layer ourselves.

Fred


Am 08.10.2011 um 18:37 schrieb Behdad Esfahbod <behdad at behdad.org>:

> I know this has been discussed many many times, but I was thinking about it
> again today.  I think we should model it like the cairo_path_t.  Ie, the
> following API will be exposed:
> 
> cairo_gstate_t *
> cairo_copy_gstate (cairo_t *cr);
> 
> cairo_gstate_t *
> cairo_gstate_copy (cairo_gstate_t *gstate);
> 
> void
> cairo_set_gstate (cairo_t *cr, cairo_gstate_t *gstate);
> 
> And perhaps:
> 
> void
> cairo_push_gstate (cairo_t *cr, cairo_gstate_t *gstate);
> 
> cairo_gstate_t *
> cairo_pop_gstate (cairo_t *cr);
> 
> void
> cairo_gstate_reference (cairo_gstate_t *gstate)
> 
> void
> cairo_gstate_destroy (cairo_gstate_t *gstate)
> 
> 
> Thoughts?
> 
> behdad
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo


More information about the cairo mailing list