Summary: | Cairo context should provide cairo_set_target | ||
---|---|---|---|
Product: | cairo | Reporter: | Timothy Pearson <kb9vqf> |
Component: | general | Assignee: | Chris Wilson <chris> |
Status: | RESOLVED MOVED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | andrej.mitrovich |
Version: | 1.12.8 | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Timothy Pearson
2012-11-19 19:47:32 UTC
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 surface. 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. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/99. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.