[cairo] cairo_gstate_t?
Behdad Esfahbod
behdad at behdad.org
Sat Oct 8 09:37:15 PDT 2011
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
More information about the cairo
mailing list