[cairo-bugs] [Bug 57289] Cairo context should provide cairo_set_target

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 9 09:30:26 PDT 2013


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |andrej.mitrovich at gmail.com

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
There was a proposal for cairo_/save/restore/_state[1] back in 2006, but it
seems it never got implemented.

[1] : http://lists.freedesktop.org/archives/cairo/2006-January/006196.html

My needs are to be able to replace the target surface without losing internal
state (such as the line width settings). For example I could have a widget with
a backing store which a user paints on using a cairo_t context. If the widget
size changes (e.g. becomes larger), the backing store might have to be
reallocated, but then a new cairo_t context has to be created for the new

Currently that means losing all internal stack state (e.g. the user's line
width, etc). 

Either the ability to store and load the internal state externally or the
ability to replace the internal surface would work for me.

You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20130409/3f197155/attachment.html>

More information about the cairo-bugs mailing list