Kozea / cairocffi

CFFI-based cairo bindings for Python.
https://doc.courtbouillon.org/cairocffi
BSD 3-Clause "New" or "Revised" License
208 stars 54 forks source link

Missing context.set_hairline()? #226

Closed dtromb closed 5 months ago

dtromb commented 6 months ago

It seems like the function cairo_set_hairline(cairo_boot_t) (added in 1.18) is missing from the wrapper in context.py.

This function supports drawing wireframe or single pixel scale-independent lines, and is a very important feature to have when debugging graphics renders.

It should be relatively straightforward to add!

liZe commented 6 months ago

It should be relatively straightforward to add!

Yes. Interested in opening a PR?

dtromb commented 6 months ago

Ok, will do!

The comments in the code have annotations as to which version of cairocffi newly added functions were released in, but this isn't targeted to a version. Just omit? Or... what version to put there? (FYI relevent to version target: will PR https://github.com/Kozea/cairocffi/issues/81 if you like too since we need that functionality here and will implement regardless)

liZe commented 5 months ago

Closed by #227.