1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
.. _constants:
******************************
Module Functions and Constants
******************************
.. currentmodule:: cairo
Module Functions
================
.. autofunction:: cairo_version
.. autofunction:: cairo_version_string
.. autofunction:: get_include
Module Constants
================
.. autodata:: version
.. autodata:: version_info
.. autodata:: CAIRO_VERSION
.. autodata:: CAIRO_VERSION_STRING
.. autodata:: CAIRO_VERSION_MAJOR
.. autodata:: CAIRO_VERSION_MINOR
.. autodata:: CAIRO_VERSION_MICRO
.. _constants_HAS:
cairo.HAS
---------
1 if the feature is present in the underlying C cairo library, 0 otherwise.
.. autodata:: HAS_ATSUI_FONT
.. autodata:: HAS_FT_FONT
.. autodata:: HAS_GLITZ_SURFACE
.. autodata:: HAS_IMAGE_SURFACE
.. autodata:: HAS_PDF_SURFACE
.. autodata:: HAS_PNG_FUNCTIONS
.. autodata:: HAS_PS_SURFACE
.. autodata:: HAS_RECORDING_SURFACE
.. autodata:: HAS_SVG_SURFACE
.. autodata:: HAS_USER_FONT
.. autodata:: HAS_QUARTZ_SURFACE
.. autodata:: HAS_WIN32_FONT
.. autodata:: HAS_WIN32_SURFACE
.. autodata:: HAS_XCB_SURFACE
.. autodata:: HAS_XLIB_SURFACE
.. autodata:: HAS_MIME_SURFACE
.. autodata:: HAS_SCRIPT_SURFACE
.. autodata:: HAS_TEE_SURFACE
.. autodata:: HAS_DWRITE_FONT
.. _constants_TAG:
cairo.TAG
---------
.. autodata:: TAG_DEST
.. autodata:: TAG_LINK
.. autodata:: TAG_CONTENT
.. autodata:: TAG_CONTENT_REF
.. _constants_MIME_TYPE:
cairo.MIME_TYPE
---------------
.. autodata:: MIME_TYPE_JP2
.. autodata:: MIME_TYPE_JPEG
.. autodata:: MIME_TYPE_PNG
.. autodata:: MIME_TYPE_URI
.. autodata:: MIME_TYPE_UNIQUE_ID
.. autodata:: MIME_TYPE_CCITT_FAX
.. autodata:: MIME_TYPE_CCITT_FAX_PARAMS
.. autodata:: MIME_TYPE_EPS
.. autodata:: MIME_TYPE_EPS_PARAMS
.. autodata:: MIME_TYPE_JBIG2
.. autodata:: MIME_TYPE_JBIG2_GLOBAL
.. autodata:: MIME_TYPE_JBIG2_GLOBAL_ID
Other Constants
---------------
.. autodata:: PDF_OUTLINE_ROOT
.. autodata:: COLOR_PALETTE_DEFAULT
Other Classes and Functions
===========================
.. class:: _PathLike
This type only exists for documentation purposes.
On Unix it is equal to what Python allows as a filesystem path. On Windows
with cairo <=1.15.8 only ANSI paths are supported. With cairo >=1.15.10
all paths are supported as long as they don't contain surrogates.
Many functions taking a path also allow passing in an already open Python
file object. This can be used to support all Python filesystem paths
independent of the underlying platform or cairo version.
.. versionadded:: 1.15.1
Older versions only supported a subset of :obj:`str` paths
.. class:: _FileLike
This type only exists for documentation purposes.
This represents a file object opened in binary mode: :obj:`typing.BinaryIO`
.. class:: _SomeSurface
This type only exists for documentation purposes.
This represents a :class:`Surface` subclass.
|