Debian Codegraph @

docs/reference/constants.rst

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