[cairo] save/restore smart ptr? [cairomm]

Jonathon Jongsma jonathon at quotidian.org
Thu Aug 27 06:27:31 PDT 2009


Ian Britten wrote:
> Hi all,
> Has anyone given any thought to providing a custom smart pointer
> (helper class) for the save/restore functionality on the Context?
> Sortof like http://docs.wxwidgets.org/stable/wx_wxdcclipper.html
> 
> It seems like it'd be an ideal candidate, and would save users
> from having to manually call restore() all the time...
> 
> Just a suggestion...
> Ian
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

yes, I've done this myself in some of my personal projects, and I like the idea.  It's definitely something I'm considering for future releases if we can come up with a good name, etc.

-- 
jonner


More information about the cairo mailing list