Commit Graph

7 Commits

Author SHA1 Message Date
Christoph Reiter 55ea24fb6b Use -fvisibility=hidden 2018-04-13 18:39:44 +02:00
Christoph Reiter e4fc9db660 Add support for all fspaths 2017-08-18 16:27:37 +02:00
Christoph Reiter c05af22381 Add cairo.Glyph. Fixes #53
It's a tuple subclass, so can be used everywhere where it was used before.

In the documentation remove all the optional glyph array lengths, as they
are not strictly needed (one cas just pass slices) and just complicate things.
2017-07-22 16:13:30 +02:00
Christoph Reiter b780969870 Implement richcompare for Surface and Path. See #52
So that two instances wrapping the same object compare equally.
2017-07-14 09:21:29 +02:00
Christoph Reiter acc4578f5f Add enum types. Fixes #26
This adds a new Python type for each C level enum type.
The enum type is an int sublcass with its own repr implementation
to get something nice like cairo.Antialias.DEFAULT.

The module level constants are now aliases for the type attributes,
e.g. cairo.ANTIALIAS_DEFAULT == cairo.Antialias.DEFAULT.

This only adds the types and does not make function return them
(except in one case to see how it works). More work will follow
in the following commits.
2017-05-02 12:35:03 +02:00
Christoph Reiter 0170e90026 surface: Add mime data support. Fixes #7
Add Surface.set_mime_data(), Surface.get_mime_data(),
Surface.supports_mime_type(), HAS_MIME_SURFACE, MIME_TYPE_*.

set_mime_data() takes a buffer and keeps it alive.
get_mime_data() tries to return the same object.
2017-04-16 10:56:42 +02:00
Christoph Reiter 727470e8a1 Port to Python 3 2017-04-07 11:15:35 +02:00