[cairo] RFC: introduce cairo_surface_get_height() / width()

Enrico Weigelt, metux IT consult enrico.weigelt at gr13.net
Sat Jul 9 10:30:15 UTC 2016

On 08.07.2016 17:10, Uli Schlachter wrote:


>> 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.


More information about the cairo mailing list