[cairo-bugs] [Bug 5686] RFE - named savepoints

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 23 18:13:06 PST 2006


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=5686          
     




------- Additional Comments From cworth at cworth.org  2006-01-24 13:08 -------
Actually, cairo_copy had some huge problems and that's why we removed it.

I've always known we needed a real solution for the use case and I had often
imagined adding:

cairo_gstate_t *
cairo_get_gstate (cairo_t *cr);

void
cairo_set_gstate (cairo_t *cr, cairo_gstate_t *gstate);

but I've never been satisfied enough with that interface to actually implement.

But, now, Robert, you've made a fantastic suggestion. I really like the insight
that the desired action here is a variant of save/restore. Here's the API I
think I would like:

cairo_state_t *
cairo_save_state (cairo_t *cr);

void
cairo_restore_state (cairo_t *cr, cairo_state_t *state);

We should talk about this on the cairo at cairographics.org mailing list.

I like this enough that I'll draft a message there if nobody beats me to it.

-Carl
          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list