Re: RFC: introduce cairo_surface_get_height() / width()
"Enrico Weigelt, metux IT consult" <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
On 08.07.2016 17:10, Uli Schlachter wrote: Hi, >> So, should we introduce generic functions (and corresponding >> backend ops) for that ? > > What's the size of an unbounded surface? maybe (-1,-1) ? > By the way, there is already a "generic hack" that does what you want. Create a > new cairo context and ask for its clip extents: > https://github.com/awesomeWM/awesome/blob/b33fb2a03a2a49b71820e337fc548663203537df/lib/gears/surface.lua#L125-L129 thx that seems to for work for me. --mtx -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo