1.16 MB
/srv/reproducible-results/archlinuxrb-build-0vojdiRo/b1/python-cairo/python-cairo-docs-1.26.0-1-x86_64.pkg.tar.zst vs.
/srv/reproducible-results/archlinuxrb-build-0vojdiRo/b2/python-cairo/python-cairo-docs-1.26.0-1-x86_64.pkg.tar.zst
1.16 MB
python-cairo-docs-1.26.0-1-x86_64.pkg.tar
8.37 KB
file list
    
Offset 1, 9 lines modifiedOffset 1, 9 lines modified
1 -rw-r--r--···0·root·········(0)·root·········(0)·····9237·2024-02-15·02:41:19.000000·.BUILDINFO1 -rw-r--r--···0·root·········(0)·root·········(0)·····9237·2024-02-15·02:41:19.000000·.BUILDINFO
2 -rw-r--r--···0·root·········(0)·root·········(0)·····8153·2024-02-15·02:41:19.000000·.MTREE2 -rw-r--r--···0·root·········(0)·root·········(0)·····8164·2024-02-15·02:41:19.000000·.MTREE
3 -rw-r--r--···0·root·········(0)·root·········(0)······487·2024-02-15·02:41:19.000000·.PKGINFO3 -rw-r--r--···0·root·········(0)·root·········(0)······487·2024-02-15·02:41:19.000000·.PKGINFO
4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·02:41:19.000000·usr/4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·02:41:19.000000·usr/
5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·02:41:19.000000·usr/share/5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·02:41:19.000000·usr/share/
6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·02:41:19.000000·usr/share/doc/6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·02:41:19.000000·usr/share/doc/
7 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·02:41:19.000000·usr/share/doc/pycairo/7 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·02:41:19.000000·usr/share/doc/pycairo/
8 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·02:41:19.000000·usr/share/doc/pycairo/html/8 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-15·02:41:19.000000·usr/share/doc/pycairo/html/
9 -rw-r--r--···0·root·········(0)·root·········(0)······230·2024-02-15·02:41:19.000000·usr/share/doc/pycairo/html/.buildinfo9 -rw-r--r--···0·root·········(0)·root·········(0)······230·2024-02-15·02:41:19.000000·usr/share/doc/pycairo/html/.buildinfo
12.6 KB
.MTREE
12.6 KB
.MTREE-content
    
Offset 1, 25 lines modifiedOffset 1, 25 lines modified
1 #mtree1 #mtree
2 /set·type=file·uid=0·gid=0·mode=6442 /set·type=file·uid=0·gid=0·mode=644
3 ./.BUILDINFO·time=1707964879.0·size=9237·md5digest=eceb3a53210dd7c6eb39719e324dcede·sha256digest=5115a1b74914d6795a4e5b770d2a21bbe09272e93e1a7ccabb0db387e51f39023 ./.BUILDINFO·time=1707964879.0·size=9237·md5digest=eceb3a53210dd7c6eb39719e324dcede·sha256digest=5115a1b74914d6795a4e5b770d2a21bbe09272e93e1a7ccabb0db387e51f3902
4 ./.PKGINFO·time=1707964879.0·size=487·md5digest=5eb7e7a347b128dc91ccd5bae6a988fb·sha256digest=1d9f9162baba9b5d3239596dca1969ae86891400a5785f98495bc6e20d880b4f4 ./.PKGINFO·time=1707964879.0·size=487·md5digest=7c6aba85835ac7c6c3febdffc1bb1a73·sha256digest=ac94a76b09c4f2f9108c4ce2e6bf910c08297cdb816213d1047f5b6828d40f81
5 ./usr·time=1707964879.0·mode=755·type=dir5 ./usr·time=1707964879.0·mode=755·type=dir
6 ./usr/share·time=1707964879.0·mode=755·type=dir6 ./usr/share·time=1707964879.0·mode=755·type=dir
7 ./usr/share/doc·time=1707964879.0·mode=755·type=dir7 ./usr/share/doc·time=1707964879.0·mode=755·type=dir
8 ./usr/share/doc/pycairo·time=1707964879.0·mode=755·type=dir8 ./usr/share/doc/pycairo·time=1707964879.0·mode=755·type=dir
9 ./usr/share/doc/pycairo/html·time=1707964879.0·mode=755·type=dir9 ./usr/share/doc/pycairo/html·time=1707964879.0·mode=755·type=dir
10 ./usr/share/doc/pycairo/html/.buildinfo·time=1707964879.0·size=230·md5digest=32c2cf9595e5f99b16bb5e1725d546b6·sha256digest=d16f2c1859566b3fa1225f7ffbce17df2a88a4280d5d5b0213cb4182ae2b6a0710 ./usr/share/doc/pycairo/html/.buildinfo·time=1707964879.0·size=230·md5digest=32c2cf9595e5f99b16bb5e1725d546b6·sha256digest=d16f2c1859566b3fa1225f7ffbce17df2a88a4280d5d5b0213cb4182ae2b6a07
11 ./usr/share/doc/pycairo/html/changelog.html·time=1707964879.0·size=105846·md5digest=f8e432d56be84b3981d6fa61fc37bd23·sha256digest=a0e61cbfb46957ab870fd2c519f74dc98669f5fd5f65916086e67fadb98b335a11 ./usr/share/doc/pycairo/html/changelog.html·time=1707964879.0·size=105309·md5digest=403905edfbb9d2d0348544f8a7b7c55b·sha256digest=23a5d1bd37fc96b461d059e79dec82585294a7a3d95a59b4a99f9d1a10e8d31a
12 ./usr/share/doc/pycairo/html/genindex.html·time=1707964879.0·size=106460·md5digest=981c1d04f2bdf2220d22861d485d997f·sha256digest=773692fb6d01fa29a24cdba08b2b9e849625c9d90b04a9f478a209cedf3da91f12 ./usr/share/doc/pycairo/html/genindex.html·time=1707964879.0·size=106460·md5digest=981c1d04f2bdf2220d22861d485d997f·sha256digest=773692fb6d01fa29a24cdba08b2b9e849625c9d90b04a9f478a209cedf3da91f
13 ./usr/share/doc/pycairo/html/getting_started.html·time=1707964879.0·size=7521·md5digest=121ae810ded58a24350bdd06bbc37b28·sha256digest=01c380f17f45810a784bcf7ab499dad2601df5e5a687b91a70af91332c739b3913 ./usr/share/doc/pycairo/html/getting_started.html·time=1707964879.0·size=7521·md5digest=121ae810ded58a24350bdd06bbc37b28·sha256digest=01c380f17f45810a784bcf7ab499dad2601df5e5a687b91a70af91332c739b39
14 ./usr/share/doc/pycairo/html/index.html·time=1707964879.0·size=12611·md5digest=d3ffe05fab6938c01f20871ec2a21a35·sha256digest=aebfd03a244906e7ee274f6d816ffa960c009c398542a540295f208e7b269b6e14 ./usr/share/doc/pycairo/html/index.html·time=1707964879.0·size=12611·md5digest=d3ffe05fab6938c01f20871ec2a21a35·sha256digest=aebfd03a244906e7ee274f6d816ffa960c009c398542a540295f208e7b269b6e
15 ./usr/share/doc/pycairo/html/objects.inv·time=1707964879.0·size=6716·md5digest=475835cc1b1d0111bb20269e21fa0855·sha256digest=780019335dbc19e51dbbc0df95a6ab12b75e7a62090111ffb4e948b229420bf615 ./usr/share/doc/pycairo/html/objects.inv·time=1707964879.0·size=6716·md5digest=475835cc1b1d0111bb20269e21fa0855·sha256digest=780019335dbc19e51dbbc0df95a6ab12b75e7a62090111ffb4e948b229420bf6
16 ./usr/share/doc/pycairo/html/resources.html·time=1707964879.0·size=8346·md5digest=35f3e6fa97265d237ccb8fbeb8b7935a·sha256digest=9a96fa841276054ccb4eae38f4f15816d65e16804a23f57978249bda84a215e616 ./usr/share/doc/pycairo/html/resources.html·time=1707964879.0·size=8346·md5digest=35f3e6fa97265d237ccb8fbeb8b7935a·sha256digest=9a96fa841276054ccb4eae38f4f15816d65e16804a23f57978249bda84a215e6
17 ./usr/share/doc/pycairo/html/search.html·time=1707964879.0·size=4232·md5digest=7e2c036121d802f5a18d33bfc7ae9f8b·sha256digest=344d2922d06eb78c9dada75f172be4f6a8732bace07d36bb66e0e0b444f2e53617 ./usr/share/doc/pycairo/html/search.html·time=1707964879.0·size=4232·md5digest=7e2c036121d802f5a18d33bfc7ae9f8b·sha256digest=344d2922d06eb78c9dada75f172be4f6a8732bace07d36bb66e0e0b444f2e536
18 ./usr/share/doc/pycairo/html/searchindex.js·time=1707964879.0·size=162800·md5digest=7816f0379dcd0ec99a769a2777722d86·sha256digest=345403c827018004cf9dd2db6913853f197c418619b219c8f42b066edfe796e618 ./usr/share/doc/pycairo/html/searchindex.js·time=1707964879.0·size=162809·md5digest=828cc07fb196b045df0fecf94181c3ec·sha256digest=9a2662d27ca5c79bab33ac8063288b6eac32827e420da172225bf491d31f996f
19 ./usr/share/doc/pycairo/html/_images·time=1707964879.0·mode=755·type=dir19 ./usr/share/doc/pycairo/html/_images·time=1707964879.0·mode=755·type=dir
20 ./usr/share/doc/pycairo/html/_images/pycairo.svg·time=1707964879.0·size=49721·md5digest=b3d18c70bf4316bc0fbd7629818e4fdd·sha256digest=20655eec1dc6613e532111280234dec9f0c508161a489dcab7a339d67e16c7cf20 ./usr/share/doc/pycairo/html/_images/pycairo.svg·time=1707964879.0·size=49721·md5digest=b3d18c70bf4316bc0fbd7629818e4fdd·sha256digest=20655eec1dc6613e532111280234dec9f0c508161a489dcab7a339d67e16c7cf
21 ./usr/share/doc/pycairo/html/_sources·time=1707964879.0·mode=755·type=dir21 ./usr/share/doc/pycairo/html/_sources·time=1707964879.0·mode=755·type=dir
22 ./usr/share/doc/pycairo/html/_sources/changelog.rst.txt·time=1707964879.0·size=68·md5digest=3b127bb8ecc4581a5970cc1d2523712a·sha256digest=57c148a36c927c0c293f4ddb342323fe73444b789cd2cd10c05c1346e637a62b22 ./usr/share/doc/pycairo/html/_sources/changelog.rst.txt·time=1707964879.0·size=68·md5digest=3b127bb8ecc4581a5970cc1d2523712a·sha256digest=57c148a36c927c0c293f4ddb342323fe73444b789cd2cd10c05c1346e637a62b
23 ./usr/share/doc/pycairo/html/_sources/getting_started.rst.txt·time=1707964879.0·size=1040·md5digest=fcabf530b9a1379e5cb90ad728f6b7d4·sha256digest=3ac7a1aaf29fe5899c6685d2ce4aca48c47db03324f1ad13cfac29010859f09323 ./usr/share/doc/pycairo/html/_sources/getting_started.rst.txt·time=1707964879.0·size=1040·md5digest=fcabf530b9a1379e5cb90ad728f6b7d4·sha256digest=3ac7a1aaf29fe5899c6685d2ce4aca48c47db03324f1ad13cfac29010859f093
24 ./usr/share/doc/pycairo/html/_sources/index.rst.txt·time=1707964879.0·size=1487·md5digest=46fe740f76267b918673d69f83e08c1e·sha256digest=dd6e21d665ab76cf3678621919abcb31bbf0283f483ef0a4a448227c5db553e724 ./usr/share/doc/pycairo/html/_sources/index.rst.txt·time=1707964879.0·size=1487·md5digest=46fe740f76267b918673d69f83e08c1e·sha256digest=dd6e21d665ab76cf3678621919abcb31bbf0283f483ef0a4a448227c5db553e7
25 ./usr/share/doc/pycairo/html/_sources/resources.rst.txt·time=1707964879.0·size=2767·md5digest=efdd3150795d8a86c625df2ab146e6a7·sha256digest=a94a4eab84cec39ad6530a5f3e73af1a4a66efa4a2267241f9071bbf36510e8025 ./usr/share/doc/pycairo/html/_sources/resources.rst.txt·time=1707964879.0·size=2767·md5digest=efdd3150795d8a86c625df2ab146e6a7·sha256digest=a94a4eab84cec39ad6530a5f3e73af1a4a66efa4a2267241f9071bbf36510e80
493 B
.PKGINFO
    
Offset 3, 15 lines modifiedOffset 3, 15 lines modified
3 pkgname·=·python-cairo-docs3 pkgname·=·python-cairo-docs
4 pkgbase·=·python-cairo4 pkgbase·=·python-cairo
5 pkgver·=·1.26.0-15 pkgver·=·1.26.0-1
6 pkgdesc·=·Developer·documentation·for·Pycairo6 pkgdesc·=·Developer·documentation·for·Pycairo
7 url·=·https://pycairo.readthedocs.io/en/latest/7 url·=·https://pycairo.readthedocs.io/en/latest/
8 builddate·=·17079648798 builddate·=·1707964879
9 packager·=·Reproducible·Arch·Linux·tests·<reproducible@archlinux.org>9 packager·=·Reproducible·Arch·Linux·tests·<reproducible@archlinux.org>
10 size·=·542705310 size·=·5331680
11 arch·=·x86_6411 arch·=·x86_64
12 license·=·LGPL2.112 license·=·LGPL2.1
13 license·=·MPL13 license·=·MPL
14 makedepend·=·meson14 makedepend·=·meson
15 makedepend·=·python-sphinx15 makedepend·=·python-sphinx
16 makedepend·=·python-sphinx_rtd_theme16 makedepend·=·python-sphinx_rtd_theme
17 checkdepend·=·python-pytest17 checkdepend·=·python-pytest
8.94 KB
usr/share/doc/pycairo/html/changelog.html
    
Offset 384, 15 lines modifiedOffset 384, 15 lines modified
384 </dl>384 </dl>
385 </section>385 </section>
386 <section·id="v1-15-1">386 <section·id="v1-15-1">
387 <span·id="id26"></span><h2>1.15.1·-·2017-08-19<a·class="headerlink"·href="#v1-15-1"·title="Link·to·this·heading"></a></h2>387 <span·id="id26"></span><h2>1.15.1·-·2017-08-19<a·class="headerlink"·href="#v1-15-1"·title="Link·to·this·heading"></a></h2>
388 <dl·class="simple">388 <dl·class="simple">
389 <dt>Fixes:</dt><dd><ul·class="simple">389 <dt>Fixes:</dt><dd><ul·class="simple">
390 <li><p>Improved·support·for·Python·filesystem·paths·including390 <li><p>Improved·support·for·Python·filesystem·paths·including
391 <a·class="reference·external"·href="https://docs.python.org/3/library/os.html#os.PathLike"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">os.PathLike</span></code></a>.·See·<a·class="reference·internal"·href="reference/constants.html#cairo._PathLike"·title="cairo._PathLike"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">_PathLike</span></code></a>·for·details.</p></li>391 <code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">os.PathLike</span></code>.·See·<a·class="reference·internal"·href="reference/constants.html#cairo._PathLike"·title="cairo._PathLike"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">_PathLike</span></code></a>·for·details.</p></li>
392 <li><p>Various·minor·fixes</p></li>392 <li><p>Various·minor·fixes</p></li>
393 </ul>393 </ul>
394 </dd>394 </dd>
395 <dt>Changes:</dt><dd><ul·class="simple">395 <dt>Changes:</dt><dd><ul·class="simple">
396 <li><p>Expose·<a·class="reference·internal"·href="reference/paths.html#cairo.Path"·title="cairo.Path"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">cairo.Path</span></code></a></p></li>396 <li><p>Expose·<a·class="reference·internal"·href="reference/paths.html#cairo.Path"·title="cairo.Path"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">cairo.Path</span></code></a></p></li>
397 </ul>397 </ul>
398 </dd>398 </dd>
2.71 KB
html2text {}
    
Offset 199, 15 lines modifiedOffset 199, 15 lines modified
199 *\x8**\x8**\x8**\x8**\x8*·1\x81.\x8.1\x815\x85.\x8.2\x82·-\x8-·2\x820\x801\x817\x87-\x8-0\x809\x89-\x8-0\x803\x83_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*199 *\x8**\x8**\x8**\x8**\x8*·1\x81.\x8.1\x815\x85.\x8.2\x82·-\x8-·2\x820\x801\x817\x87-\x8-0\x809\x89-\x8-0\x803\x83_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
200 ··Fixes:200 ··Fixes:
201 ··········*·setup.py:·Install·pkgconfig·file·to·the·same·library·prefix·that201 ··········*·setup.py:·Install·pkgconfig·file·to·the·same·library·prefix·that
202 ············Python·uses.·(/usr/lib64·instead·of·/usr/lib·under·Fedora·for202 ············Python·uses.·(/usr/lib64·instead·of·/usr/lib·under·Fedora·for
203 ············example)·_\x8#_\x87_\x80·_\x8#_\x8p_\x8r_\x8-_\x87_\x81·(_\x8S_\x8a_\x8n_\x8d_\x8e_\x8r_\x8·_\x8S_\x8w_\x8e_\x8e_\x8r_\x8s)203 ············example)·_\x8#_\x87_\x80·_\x8#_\x8p_\x8r_\x8-_\x87_\x81·(_\x8S_\x8a_\x8n_\x8d_\x8e_\x8r_\x8·_\x8S_\x8w_\x8e_\x8e_\x8r_\x8s)
204 *\x8**\x8**\x8**\x8**\x8*·1\x81.\x8.1\x815\x85.\x8.1\x81·-\x8-·2\x820\x801\x817\x87-\x8-0\x808\x88-\x8-1\x819\x89_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*204 *\x8**\x8**\x8**\x8**\x8*·1\x81.\x8.1\x815\x85.\x8.1\x81·-\x8-·2\x820\x801\x817\x87-\x8-0\x808\x88-\x8-1\x819\x89_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
205 ··Fixes:205 ··Fixes:
206 ··········*·Improved·support·for·Python·filesystem·paths·including·_.o_.s_.._.P_.a_.t_.h_.L_.i_.k_.e.206 ··········*·Improved·support·for·Python·filesystem·paths·including·os.PathLike.
207 ············See·_\x8__\x8P_\x8a_\x8t_\x8h_\x8L_\x8i_\x8k_\x8e·for·details.207 ············See·_\x8__\x8P_\x8a_\x8t_\x8h_\x8L_\x8i_\x8k_\x8e·for·details.
208 ··········*·Various·minor·fixes208 ··········*·Various·minor·fixes
209 ··Changes:209 ··Changes:
210 ··········*·Expose·_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8P_\x8a_\x8t_\x8h210 ··········*·Expose·_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8P_\x8a_\x8t_\x8h
211 ··Tests:211 ··Tests:
212 ··········*·Improved·test·coverage·from·~70%·to·~90%212 ··········*·Improved·test·coverage·from·~70%·to·~90%
213 *\x8**\x8**\x8**\x8**\x8*·1\x81.\x8.1\x815\x85.\x8.0\x80·-\x8-·2\x820\x801\x817\x87-\x8-0\x807\x87-\x8-2\x824\x84_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*213 *\x8**\x8**\x8**\x8**\x8*·1\x81.\x8.1\x815\x85.\x8.0\x80·-\x8-·2\x820\x801\x817\x87-\x8-0\x807\x87-\x8-2\x824\x84_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
83.9 KB
usr/share/doc/pycairo/html/reference/constants.html
    
Offset 97, 39 lines modifiedOffset 97, 39 lines modified
97 ·············97 ·············
98 ··<section·id="module-functions-and-constants">98 ··<section·id="module-functions-and-constants">
99 <span·id="constants"></span><h1>Module·Functions·and·Constants<a·class="headerlink"·href="#module-functions-and-constants"·title="Link·to·this·heading"></a></h1>99 <span·id="constants"></span><h1>Module·Functions·and·Constants<a·class="headerlink"·href="#module-functions-and-constants"·title="Link·to·this·heading"></a></h1>
100 <section·id="module-functions">100 <section·id="module-functions">
101 <h2>Module·Functions<a·class="headerlink"·href="#module-functions"·title="Link·to·this·heading"></a></h2>101 <h2>Module·Functions<a·class="headerlink"·href="#module-functions"·title="Link·to·this·heading"></a></h2>
102 <dl·class="py·function">102 <dl·class="py·function">
103 <dt·class="sig·sig-object·py"·id="cairo.cairo_version">103 <dt·class="sig·sig-object·py"·id="cairo.cairo_version">
104 <span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">cairo_version</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#int"·title="(in·Python·v3.12)"><span·class="pre">int</span></a></span></span><a·class="headerlink"·href="#cairo.cairo_version"·title="Link·to·this·definition"></a></dt>104 <span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">cairo_version</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><span·class="pre">int</span></span></span><a·class="headerlink"·href="#cairo.cairo_version"·title="Link·to·this·definition"></a></dt>
105 <dd><dl·class="field-list·simple">105 <dd><dl·class="field-list·simple">
106 <dt·class="field-odd">Returns<span·class="colon">:</span></dt>106 <dt·class="field-odd">Returns<span·class="colon">:</span></dt>
107 <dd·class="field-odd"><p>the·encoded·version</p>107 <dd·class="field-odd"><p>the·encoded·version</p>
108 </dd>108 </dd>
109 </dl>109 </dl>
110 <p>Returns·the·version·of·the·underlying·C·cairo·library,·encoded·in·a·single110 <p>Returns·the·version·of·the·underlying·C·cairo·library,·encoded·in·a·single
111 integer.</p>111 integer.</p>
112 </dd></dl>112 </dd></dl>
  
113 <dl·class="py·function">113 <dl·class="py·function">
114 <dt·class="sig·sig-object·py"·id="cairo.cairo_version_string">114 <dt·class="sig·sig-object·py"·id="cairo.cairo_version_string">
115 <span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">cairo_version_string</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·external"·href="https://docs.python.org/3/library/stdtypes.html#str"·title="(in·Python·v3.12)"><span·class="pre">str</span></a></span></span><a·class="headerlink"·href="#cairo.cairo_version_string"·title="Link·to·this·definition"></a></dt>115 <span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">cairo_version_string</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><span·class="pre">str</span></span></span><a·class="headerlink"·href="#cairo.cairo_version_string"·title="Link·to·this·definition"></a></dt>
116 <dd><dl·class="field-list·simple">116 <dd><dl·class="field-list·simple">
117 <dt·class="field-odd">Returns<span·class="colon">:</span></dt>117 <dt·class="field-odd">Returns<span·class="colon">:</span></dt>
118 <dd·class="field-odd"><p>the·encoded·version</p>118 <dd·class="field-odd"><p>the·encoded·version</p>
119 </dd>119 </dd>
120 </dl>120 </dl>
121 <p>Returns·the·version·of·the·underlying·C·cairo·library·as·a·human-readable121 <p>Returns·the·version·of·the·underlying·C·cairo·library·as·a·human-readable
122 string·of·the·form·“X.Y.Z”.</p>122 string·of·the·form·“X.Y.Z”.</p>
123 </dd></dl>123 </dd></dl>
  
124 <dl·class="py·function">124 <dl·class="py·function">
125 <dt·class="sig·sig-object·py"·id="cairo.get_include">125 <dt·class="sig·sig-object·py"·id="cairo.get_include">
126 <span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">get_include</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·external"·href="https://docs.python.org/3/library/stdtypes.html#str"·title="(in·Python·v3.12)"><span·class="pre">str</span></a></span></span><a·class="headerlink"·href="#cairo.get_include"·title="Link·to·this·definition"></a></dt>126 <span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">get_include</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><span·class="pre">str</span></span></span><a·class="headerlink"·href="#cairo.get_include"·title="Link·to·this·definition"></a></dt>
127 <dd><dl·class="field-list·simple">127 <dd><dl·class="field-list·simple">
128 <dt·class="field-odd">Returns<span·class="colon">:</span></dt>128 <dt·class="field-odd">Returns<span·class="colon">:</span></dt>
129 <dd·class="field-odd"><p>a·path·to·the·directory·containing·the·C·header·files</p>129 <dd·class="field-odd"><p>a·path·to·the·directory·containing·the·C·header·files</p>
130 </dd>130 </dd>
131 </dl>131 </dl>
132 <p>Gives·the·include·path·which·should·be·passed·to·the·compiler.</p>132 <p>Gives·the·include·path·which·should·be·passed·to·the·compiler.</p>
133 <div·class="versionadded">133 <div·class="versionadded">
13.1 KB
html2text {}
    
Offset 25, 157 lines modifiedOffset 25, 157 lines modified
25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o
26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e
27 ····*·Module·Functions·and·Constants27 ····*·Module·Functions·and·Constants
28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
29 ===============================================================================29 ===============================================================================
30 *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mo\x8od\x8du\x8ul\x8le\x8e·F\x8Fu\x8un\x8nc\x8ct\x8ti\x8io\x8on\x8ns\x8s·a\x8an\x8nd\x8d·C\x8Co\x8on\x8ns\x8st\x8ta\x8an\x8nt\x8ts\x8s_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*30 *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Mo\x8od\x8du\x8ul\x8le\x8e·F\x8Fu\x8un\x8nc\x8ct\x8ti\x8io\x8on\x8ns\x8s·a\x8an\x8nd\x8d·C\x8Co\x8on\x8ns\x8st\x8ta\x8an\x8nt\x8ts\x8s_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*
31 *\x8**\x8**\x8**\x8**\x8*·M\x8Mo\x8od\x8du\x8ul\x8le\x8e·F\x8Fu\x8un\x8nc\x8ct\x8ti\x8io\x8on\x8ns\x8s_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*31 *\x8**\x8**\x8**\x8**\x8*·M\x8Mo\x8od\x8du\x8ul\x8le\x8e·F\x8Fu\x8un\x8nc\x8ct\x8ti\x8io\x8on\x8ns\x8s_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
32 ··cairo.cairo_version()··_.i_.n_.t_\x832 ··cairo.cairo_version()··int_\x8
33 ········Returns:33 ········Returns:
34 ············the·encoded·version34 ············the·encoded·version
35 ······Returns·the·version·of·the·underlying·C·cairo·library,·encoded·in·a35 ······Returns·the·version·of·the·underlying·C·cairo·library,·encoded·in·a
36 ······single·integer.36 ······single·integer.
37 ··cairo.cairo_version_string()··_.s_.t_.r_\x837 ··cairo.cairo_version_string()··str_\x8
38 ········Returns:38 ········Returns:
39 ············the·encoded·version39 ············the·encoded·version
40 ······Returns·the·version·of·the·underlying·C·cairo·library·as·a·human-readable40 ······Returns·the·version·of·the·underlying·C·cairo·library·as·a·human-readable
41 ······string·of·the·form·“X.Y.Z”.41 ······string·of·the·form·“X.Y.Z”.
42 ··cairo.get_include()··_.s_.t_.r_\x842 ··cairo.get_include()··str_\x8
43 ········Returns:43 ········Returns:
44 ············a·path·to·the·directory·containing·the·C·header·files44 ············a·path·to·the·directory·containing·the·C·header·files
45 ······Gives·the·include·path·which·should·be·passed·to·the·compiler.45 ······Gives·the·include·path·which·should·be·passed·to·the·compiler.
46 ······New·in·version·1.16.0.46 ······New·in·version·1.16.0.
47 *\x8**\x8**\x8**\x8**\x8*·M\x8Mo\x8od\x8du\x8ul\x8le\x8e·C\x8Co\x8on\x8ns\x8st\x8ta\x8an\x8nt\x8ts\x8s_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*47 *\x8**\x8**\x8**\x8**\x8*·M\x8Mo\x8od\x8du\x8ul\x8le\x8e·C\x8Co\x8on\x8ns\x8st\x8ta\x8an\x8nt\x8ts\x8s_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
48 ··cairo.version:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x848 ··cairo.version:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
49 ······the·pycairo·version,·as·a·string49 ······the·pycairo·version,·as·a·string
50 ··cairo.version_info:\x8:·_.T.T_.u.u_.p.p_.l.l_.e.e[.[_.i.i_.n.n_.t.t,.,·_.i.i_.n.n_.t.t,.,·_.i.i_.n.n_.t\x8t]\x8]·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x850 ··cairo.version_info:\x8:·T.Tu.up.pl.le.e[.[i.in.nt.t,.,·i.in.nt.t,.,·i.in.nt\x8t]\x8]·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
51 ······the·pycairo·version,·as·a·tuple51 ······the·pycairo·version,·as·a·tuple
52 ··cairo.CAIRO_VERSION:\x8:·_.i.i_.n.n_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x852 ··cairo.CAIRO_VERSION:\x8:·i.in.nt\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
53 ······The·version·of·cairo·available·at·compile-time·in·the·same·format·as53 ······The·version·of·cairo·available·at·compile-time·in·the·same·format·as
54 ······returned·by·_\x8c_\x8a_\x8i_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n_\x8(_\x8)54 ······returned·by·_\x8c_\x8a_\x8i_\x8r_\x8o_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n_\x8(_\x8)
55 ······New·in·version·1.18.0.55 ······New·in·version·1.18.0.
56 ··cairo.CAIRO_VERSION_STRING:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x856 ··cairo.CAIRO_VERSION_STRING:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
57 ······A·human-readable·string·literal·containing·the·version·of·cairo·available57 ······A·human-readable·string·literal·containing·the·version·of·cairo·available
58 ······at·compile-time,·in·the·form·of·“X.Y.Z”.58 ······at·compile-time,·in·the·form·of·“X.Y.Z”.
59 ······New·in·version·1.18.0.59 ······New·in·version·1.18.0.
60 ··cairo.CAIRO_VERSION_MAJOR:\x8:·_.i.i_.n.n_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x860 ··cairo.CAIRO_VERSION_MAJOR:\x8:·i.in.nt\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
61 ······The·major·component·of·the·version·of·cairo·available·at·compile-time.61 ······The·major·component·of·the·version·of·cairo·available·at·compile-time.
62 ······New·in·version·1.18.0.62 ······New·in·version·1.18.0.
63 ··cairo.CAIRO_VERSION_MINOR:\x8:·_.i.i_.n.n_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x863 ··cairo.CAIRO_VERSION_MINOR:\x8:·i.in.nt\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
64 ······The·minor·component·of·the·version·of·cairo·available·at·compile-time.64 ······The·minor·component·of·the·version·of·cairo·available·at·compile-time.
65 ······New·in·version·1.18.0.65 ······New·in·version·1.18.0.
66 ··cairo.CAIRO_VERSION_MICRO:\x8:·_.i.i_.n.n_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x866 ··cairo.CAIRO_VERSION_MICRO:\x8:·i.in.nt\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
67 ······The·micro·component·of·the·version·of·cairo·available·at·compile-time.67 ······The·micro·component·of·the·version·of·cairo·available·at·compile-time.
68 ······New·in·version·1.18.0.68 ······New·in·version·1.18.0.
69 *\x8**\x8**\x8**\x8*·c\x8ca\x8ai\x8ir\x8ro\x8o.\x8.H\x8HA\x8AS\x8S_\x8?\x8·*\x8**\x8**\x8**\x8*69 *\x8**\x8**\x8**\x8*·c\x8ca\x8ai\x8ir\x8ro\x8o.\x8.H\x8HA\x8AS\x8S_\x8?\x8·*\x8**\x8**\x8**\x8*
70 1·if·the·feature·is·present·in·the·underlying·C·cairo·library,·0·otherwise.70 1·if·the·feature·is·present·in·the·underlying·C·cairo·library,·0·otherwise.
71 ··cairo.HAS_ATSUI_FONT:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x871 ··cairo.HAS_ATSUI_FONT:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
72 ··cairo.HAS_FT_FONT:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x872 ··cairo.HAS_FT_FONT:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
73 ··cairo.HAS_GLITZ_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x873 ··cairo.HAS_GLITZ_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
74 ··cairo.HAS_IMAGE_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x874 ··cairo.HAS_IMAGE_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
75 ··cairo.HAS_PDF_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x875 ··cairo.HAS_PDF_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
76 ··cairo.HAS_PNG_FUNCTIONS:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x876 ··cairo.HAS_PNG_FUNCTIONS:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
77 ··cairo.HAS_PS_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x877 ··cairo.HAS_PS_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
78 ··cairo.HAS_RECORDING_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x878 ··cairo.HAS_RECORDING_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
79 ··cairo.HAS_SVG_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x879 ··cairo.HAS_SVG_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
80 ··cairo.HAS_USER_FONT:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x880 ··cairo.HAS_USER_FONT:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
81 ··cairo.HAS_QUARTZ_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x881 ··cairo.HAS_QUARTZ_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
82 ··cairo.HAS_WIN32_FONT:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x882 ··cairo.HAS_WIN32_FONT:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
83 ··cairo.HAS_WIN32_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x883 ··cairo.HAS_WIN32_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
84 ··cairo.HAS_XCB_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x884 ··cairo.HAS_XCB_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
85 ··cairo.HAS_XLIB_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x885 ··cairo.HAS_XLIB_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
86 ··cairo.HAS_MIME_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x886 ··cairo.HAS_MIME_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
87 ······New·in·version·1.12.0.87 ······New·in·version·1.12.0.
88 ··cairo.HAS_SCRIPT_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x888 ··cairo.HAS_SCRIPT_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
89 ······New·in·version·1.12.0.89 ······New·in·version·1.12.0.
90 ··cairo.HAS_TEE_SURFACE:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x890 ··cairo.HAS_TEE_SURFACE:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
91 ······New·in·version·1.15.3.91 ······New·in·version·1.15.3.
92 ··cairo.HAS_DWRITE_FONT:\x8:·_.b.b_.o.o_.o.o_.l\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x892 ··cairo.HAS_DWRITE_FONT:\x8:·b.bo.oo.ol\x8l·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
93 ······New·in·version·1.23.0.93 ······New·in·version·1.23.0.
94 *\x8**\x8**\x8**\x8*·c\x8ca\x8ai\x8ir\x8ro\x8o.\x8.T\x8TA\x8AG\x8G_\x8?\x8·*\x8**\x8**\x8**\x8*94 *\x8**\x8**\x8**\x8*·c\x8ca\x8ai\x8ir\x8ro\x8o.\x8.T\x8TA\x8AG\x8G_\x8?\x8·*\x8**\x8**\x8**\x8*
95 ··cairo.TAG_DEST:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x895 ··cairo.TAG_DEST:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
96 ······Create·a·destination·for·a·hyperlink.·Destination·tag·attributes·are96 ······Create·a·destination·for·a·hyperlink.·Destination·tag·attributes·are
97 ······detailed·at·Destinations.97 ······detailed·at·Destinations.
98 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+98 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+
99 ··cairo.TAG_LINK:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x899 ··cairo.TAG_LINK:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
100 ······Create·hyperlink.·Link·tag·attributes·are·detailed·at·Links.100 ······Create·hyperlink.·Link·tag·attributes·are·detailed·at·Links.
101 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+101 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+
102 ··cairo.TAG_CONTENT:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8102 ··cairo.TAG_CONTENT:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
103 ······Create·a·content·tag.103 ······Create·a·content·tag.
104 ······New·in·version·1.25.0:·Only·available·with·cairo·1.18.0+104 ······New·in·version·1.25.0:·Only·available·with·cairo·1.18.0+
105 ··cairo.TAG_CONTENT_REF:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8105 ··cairo.TAG_CONTENT_REF:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
106 ······Create·a·content·reference·tag.106 ······Create·a·content·reference·tag.
107 ······New·in·version·1.25.0:·Only·available·with·cairo·1.18.0+107 ······New·in·version·1.25.0:·Only·available·with·cairo·1.18.0+
108 *\x8**\x8**\x8**\x8*·c\x8ca\x8ai\x8ir\x8ro\x8o.\x8.M\x8MI\x8IM\x8ME\x8E_\x8_T\x8TY\x8YP\x8PE\x8E_\x8?\x8·*\x8**\x8**\x8**\x8*108 *\x8**\x8**\x8**\x8*·c\x8ca\x8ai\x8ir\x8ro\x8o.\x8.M\x8MI\x8IM\x8ME\x8E_\x8_T\x8TY\x8YP\x8PE\x8E_\x8?\x8·*\x8**\x8**\x8**\x8*
109 ··cairo.MIME_TYPE_JP2:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8109 ··cairo.MIME_TYPE_JP2:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
110 ······The·Joint·Photographic·Experts·Group·(JPEG)·2000·image·coding·standard110 ······The·Joint·Photographic·Experts·Group·(JPEG)·2000·image·coding·standard
111 ······(ISO/IEC·15444-1).111 ······(ISO/IEC·15444-1).
112 ······New·in·version·1.12.0.112 ······New·in·version·1.12.0.
113 ··cairo.MIME_TYPE_JPEG:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8113 ··cairo.MIME_TYPE_JPEG:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
114 ······The·Joint·Photographic·Experts·Group·(JPEG)·image·coding·standard·(ISO/114 ······The·Joint·Photographic·Experts·Group·(JPEG)·image·coding·standard·(ISO/
115 ······IEC·10918-1).115 ······IEC·10918-1).
116 ······New·in·version·1.12.0.116 ······New·in·version·1.12.0.
117 ··cairo.MIME_TYPE_PNG:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8117 ··cairo.MIME_TYPE_PNG:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
118 ······The·Portable·Network·Graphics·image·file·format·(ISO/IEC·15948).118 ······The·Portable·Network·Graphics·image·file·format·(ISO/IEC·15948).
119 ······New·in·version·1.12.0.119 ······New·in·version·1.12.0.
120 ··cairo.MIME_TYPE_URI:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8120 ··cairo.MIME_TYPE_URI:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
121 ······URI·for·an·image·file·(unofficial·MIME·type).121 ······URI·for·an·image·file·(unofficial·MIME·type).
122 ······New·in·version·1.12.0.122 ······New·in·version·1.12.0.
123 ··cairo.MIME_TYPE_UNIQUE_ID:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8123 ··cairo.MIME_TYPE_UNIQUE_ID:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
124 ······Unique·identifier·for·a·surface·(cairo·specific·MIME·type).·All·surfaces124 ······Unique·identifier·for·a·surface·(cairo·specific·MIME·type).·All·surfaces
125 ······with·the·same·unique·identifier·will·only·be·embedded·once.125 ······with·the·same·unique·identifier·will·only·be·embedded·once.
126 ······New·in·version·1.12.0.126 ······New·in·version·1.12.0.
127 ··cairo.MIME_TYPE_CCITT_FAX:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8127 ··cairo.MIME_TYPE_CCITT_FAX:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
128 ······Group·3·or·Group·4·CCITT·facsimile·encoding·(International128 ······Group·3·or·Group·4·CCITT·facsimile·encoding·(International
129 ······Telecommunication·Union,·Recommendations·T.4·and·T.6.)129 ······Telecommunication·Union,·Recommendations·T.4·and·T.6.)
130 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+130 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+
131 ··cairo.MIME_TYPE_CCITT_FAX_PARAMS:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8131 ··cairo.MIME_TYPE_CCITT_FAX_PARAMS:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
132 ······Decode·parameters·for·Group·3·or·Group·4·CCITT·facsimile·encoding.·See132 ······Decode·parameters·for·Group·3·or·Group·4·CCITT·facsimile·encoding.·See
133 ······_\x8C_\x8C_\x8I_\x8T_\x8T_\x8·_\x8F_\x8a_\x8x_\x8·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8s.133 ······_\x8C_\x8C_\x8I_\x8T_\x8T_\x8·_\x8F_\x8a_\x8x_\x8·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8s.
134 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+134 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+
135 ··cairo.MIME_TYPE_EPS:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8135 ··cairo.MIME_TYPE_EPS:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
136 ······Encapsulated·PostScript·file.·Encapsulated·PostScript·File·Format136 ······Encapsulated·PostScript·file.·Encapsulated·PostScript·File·Format
137 ······Specification137 ······Specification
138 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+138 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+
139 ··cairo.MIME_TYPE_EPS_PARAMS:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8139 ··cairo.MIME_TYPE_EPS_PARAMS:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
140 ······Embedding·parameters·Encapsulated·PostScript·data.·See·Embedding·EPS140 ······Embedding·parameters·Encapsulated·PostScript·data.·See·Embedding·EPS
141 ······files.141 ······files.
142 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+142 ······New·in·version·1.18.0:·Only·available·with·cairo·1.15.10+
143 ··cairo.MIME_TYPE_JBIG2:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8143 ··cairo.MIME_TYPE_JBIG2:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
144 ······Joint·Bi-level·Image·Experts·Group·image·coding·standard·(ISO/IEC·11544).144 ······Joint·Bi-level·Image·Experts·Group·image·coding·standard·(ISO/IEC·11544).
145 ······New·in·version·1.18.0.145 ······New·in·version·1.18.0.
146 ··cairo.MIME_TYPE_JBIG2_GLOBAL:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8146 ··cairo.MIME_TYPE_JBIG2_GLOBAL:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
147 ······Joint·Bi-level·Image·Experts·Group·image·coding·standard·(ISO/IEC·11544)147 ······Joint·Bi-level·Image·Experts·Group·image·coding·standard·(ISO/IEC·11544)
148 ······global·segment.148 ······global·segment.
149 ······New·in·version·1.18.0.149 ······New·in·version·1.18.0.
150 ··cairo.MIME_TYPE_JBIG2_GLOBAL_ID:\x8:·_.s.s_.t.t_.r\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8150 ··cairo.MIME_TYPE_JBIG2_GLOBAL_ID:\x8:·s.st.tr\x8r·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
151 ······An·unique·identifier·shared·by·a·JBIG2·global·segment·and·all·JBIG2151 ······An·unique·identifier·shared·by·a·JBIG2·global·segment·and·all·JBIG2
Max diff block lines reached; 2286/13379 bytes (17.09%) of diff not shown.
314 KB
usr/share/doc/pycairo/html/reference/context.html
    
Offset 108, 15 lines modifiedOffset 108, 15 lines modified
108 <a·class="reference·internal"·href="#cairo.Context.line_to"·title="cairo.Context.line_to"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.line_to()</span></code></a>,·and·then·draw·shapes·with·<a·class="reference·internal"·href="#cairo.Context.stroke"·title="cairo.Context.stroke"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.stroke()</span></code></a>·or108 <a·class="reference·internal"·href="#cairo.Context.line_to"·title="cairo.Context.line_to"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.line_to()</span></code></a>,·and·then·draw·shapes·with·<a·class="reference·internal"·href="#cairo.Context.stroke"·title="cairo.Context.stroke"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.stroke()</span></code></a>·or
109 <a·class="reference·internal"·href="#cairo.Context.fill"·title="cairo.Context.fill"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.fill()</span></code></a>.</p>109 <a·class="reference·internal"·href="#cairo.Context.fill"·title="cairo.Context.fill"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.fill()</span></code></a>.</p>
110 <p><em>Contexts</em>·can·be·pushed·to·a·stack·via·<a·class="reference·internal"·href="#cairo.Context.save"·title="cairo.Context.save"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.save()</span></code></a>.·They·may·then110 <p><em>Contexts</em>·can·be·pushed·to·a·stack·via·<a·class="reference·internal"·href="#cairo.Context.save"·title="cairo.Context.save"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.save()</span></code></a>.·They·may·then
111 safely·be·changed,·without·losing·the·current·state.·Use111 safely·be·changed,·without·losing·the·current·state.·Use
112 <a·class="reference·internal"·href="#cairo.Context.restore"·title="cairo.Context.restore"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.restore()</span></code></a>·to·restore·to·the·saved·state.</p>112 <a·class="reference·internal"·href="#cairo.Context.restore"·title="cairo.Context.restore"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.restore()</span></code></a>·to·restore·to·the·saved·state.</p>
113 <dl·class="py·method">113 <dl·class="py·method">
114 <dt·class="sig·sig-object·py"·id="cairo.Context.__init__">114 <dt·class="sig·sig-object·py"·id="cairo.Context.__init__">
115 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">target</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="constants.html#cairo._SomeSurface"·title="cairo._SomeSurface"><span·class="pre">_SomeSurface</span></a></span></em><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·external"·href="https://docs.python.org/3/library/constants.html#None"·title="(in·Python·v3.12)"><span·class="pre">None</span></a></span></span><a·class="headerlink"·href="#cairo.Context.__init__"·title="Link·to·this·definition"></a></dt>115 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">target</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="constants.html#cairo._SomeSurface"·title="cairo._SomeSurface"><span·class="pre">_SomeSurface</span></a></span></em><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><span·class="pre">None</span></span></span><a·class="headerlink"·href="#cairo.Context.__init__"·title="Link·to·this·definition"></a></dt>
116 <dd><dl·class="field-list·simple">116 <dd><dl·class="field-list·simple">
117 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>117 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>
118 <dd·class="field-odd"><p><strong>target</strong>··target·<a·class="reference·internal"·href="surfaces.html#cairo.Surface"·title="cairo.Surface"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Surface</span></code></a>·for·the·context</p>118 <dd·class="field-odd"><p><strong>target</strong>··target·<a·class="reference·internal"·href="surfaces.html#cairo.Surface"·title="cairo.Surface"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Surface</span></code></a>·for·the·context</p>
119 </dd>119 </dd>
120 <dt·class="field-even">Raises<span·class="colon">:</span></dt>120 <dt·class="field-even">Raises<span·class="colon">:</span></dt>
121 <dd·class="field-even"><p><a·class="reference·internal"·href="exceptions.html#cairo.MemoryError"·title="cairo.MemoryError"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">MemoryError</span></code></a>·in·case·of·no·memory</p>121 <dd·class="field-even"><p><a·class="reference·internal"·href="exceptions.html#cairo.MemoryError"·title="cairo.MemoryError"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">MemoryError</span></code></a>·in·case·of·no·memory</p>
122 </dd>122 </dd>
76.4 KB
html2text {}
    
Offset 34, 32 lines modifiedOffset 34, 32 lines modified
34 ······cairo,·you·create·a·C\x8Co\x8on\x8nt\x8te\x8ex\x8xt\x8t,·set·the·target·surface,·and·drawing·options34 ······cairo,·you·create·a·C\x8Co\x8on\x8nt\x8te\x8ex\x8xt\x8t,·set·the·target·surface,·and·drawing·options
35 ······for·the·C\x8Co\x8on\x8nt\x8te\x8ex\x8xt\x8t,·create·shapes·with·functions·like·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8m_\x8o_\x8v_\x8e_\x8__\x8t_\x8o_\x8(_\x8)·and35 ······for·the·C\x8Co\x8on\x8nt\x8te\x8ex\x8xt\x8t,·create·shapes·with·functions·like·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8m_\x8o_\x8v_\x8e_\x8__\x8t_\x8o_\x8(_\x8)·and
36 ······_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8l_\x8i_\x8n_\x8e_\x8__\x8t_\x8o_\x8(_\x8),·and·then·draw·shapes·with·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8t_\x8r_\x8o_\x8k_\x8e_\x8(_\x8)·or36 ······_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8l_\x8i_\x8n_\x8e_\x8__\x8t_\x8o_\x8(_\x8),·and·then·draw·shapes·with·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8t_\x8r_\x8o_\x8k_\x8e_\x8(_\x8)·or
37 ······_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8f_\x8i_\x8l_\x8l_\x8(_\x8).37 ······_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8f_\x8i_\x8l_\x8l_\x8(_\x8).
38 ······C\x8Co\x8on\x8nt\x8te\x8ex\x8xt\x8ts\x8s·can·be·pushed·to·a·stack·via·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8a_\x8v_\x8e_\x8(_\x8).·They·may·then38 ······C\x8Co\x8on\x8nt\x8te\x8ex\x8xt\x8ts\x8s·can·be·pushed·to·a·stack·via·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8a_\x8v_\x8e_\x8(_\x8).·They·may·then
39 ······safely·be·changed,·without·losing·the·current·state.·Use·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e39 ······safely·be·changed,·without·losing·the·current·state.·Use·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8r_\x8e_\x8s_\x8t_\x8o_\x8r_\x8e
40 ······_\x8(_\x8)·to·restore·to·the·saved·state.40 ······_\x8(_\x8)·to·restore·to·the·saved·state.
41 ········__init__(t\x8ta\x8ar\x8rg\x8ge\x8et\x8t:\x8:·_\x8_\x8__\x8S\x8S_\x8o\x8o_\x8m\x8m_\x8e\x8e_\x8S\x8S_\x8u\x8u_\x8r\x8r_\x8f\x8f_\x8a\x8a_\x8c\x8c_\x8e\x8e)··_.N_.o_.n_.e_\x841 ········__init__(t\x8ta\x8ar\x8rg\x8ge\x8et\x8t:\x8:·_\x8_\x8__\x8S\x8S_\x8o\x8o_\x8m\x8m_\x8e\x8e_\x8S\x8S_\x8u\x8u_\x8r\x8r_\x8f\x8f_\x8a\x8a_\x8c\x8c_\x8e\x8e)··None_\x8
42 ··············Parameters:42 ··············Parameters:
43 ··················t\x8ta\x8ar\x8rg\x8ge\x8et\x8t··target·_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e·for·the·context43 ··················t\x8ta\x8ar\x8rg\x8ge\x8et\x8t··target·_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e·for·the·context
44 ··············Raises:44 ··············Raises:
45 ··················_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8E_\x8r_\x8r_\x8o_\x8r·in·case·of·no·memory45 ··················_\x8M_\x8e_\x8m_\x8o_\x8r_\x8y_\x8E_\x8r_\x8r_\x8o_\x8r·in·case·of·no·memory
46 ············Creates·a·new·C\x8Co\x8on\x8nt\x8te\x8ex\x8xt\x8t·with·all·graphics·state·parameters·set·to46 ············Creates·a·new·C\x8Co\x8on\x8nt\x8te\x8ex\x8xt\x8t·with·all·graphics·state·parameters·set·to
47 ············default·values·and·with·t\x8ta\x8ar\x8rg\x8ge\x8et\x8t·as·a·target·surface.·The·target47 ············default·values·and·with·t\x8ta\x8ar\x8rg\x8ge\x8et\x8t·as·a·target·surface.·The·target
48 ············surface·should·be·constructed·with·a·backend-specific·function·such48 ············surface·should·be·constructed·with·a·backend-specific·function·such
49 ············as·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e·(or·any·other·cairo·backend·surface·create49 ············as·_\x8I_\x8m_\x8a_\x8g_\x8e_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e·(or·any·other·cairo·backend·surface·create
50 ············variant).50 ············variant).
51 ········append_path(p\x8pa\x8at\x8th\x8h:\x8:·_\x8P\x8P_\x8a\x8a_\x8t\x8t_\x8h\x8h)··_.N_.o_.n_.e_\x851 ········append_path(p\x8pa\x8at\x8th\x8h:\x8:·_\x8P\x8P_\x8a\x8a_\x8t\x8t_\x8h\x8h)··None_\x8
52 ··············Parameters:52 ··············Parameters:
53 ··················p\x8pa\x8at\x8th\x8h··_\x8P_\x8a_\x8t_\x8h·to·be·appended53 ··················p\x8pa\x8at\x8th\x8h··_\x8P_\x8a_\x8t_\x8h·to·be·appended
54 ············Append·the·p\x8pa\x8at\x8th\x8h·onto·the·current·path.·The·p\x8pa\x8at\x8th\x8h·may·be·either·the54 ············Append·the·p\x8pa\x8at\x8th\x8h·onto·the·current·path.·The·p\x8pa\x8at\x8th\x8h·may·be·either·the
55 ············return·value·from·one·of·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8o_\x8p_\x8y_\x8__\x8p_\x8a_\x8t_\x8h_\x8(_\x8)·or55 ············return·value·from·one·of·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8o_\x8p_\x8y_\x8__\x8p_\x8a_\x8t_\x8h_\x8(_\x8)·or
56 ············_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8o_\x8p_\x8y_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8l_\x8a_\x8t_\x8(_\x8)·or·it·may·be·constructed·manually·(in·C).56 ············_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8o_\x8p_\x8y_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8f_\x8l_\x8a_\x8t_\x8(_\x8)·or·it·may·be·constructed·manually·(in·C).
57 ········arc(x\x8xc\x8c:\x8:·_.f.f_.l.l_.o.o_.a.a_.t.t,·y.yc.c:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·r.ra.ad.di.iu.us.s:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·a.an.ng.gl.le.e1.1:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·a.an.ng.gl.le.e2.2:.:·_.f.f_.l.l_.o.o_.a.a_.t\x8t)57 ········arc(x\x8xc\x8c:\x8:·f.fl.lo.oa.at.t,·y.yc.c:.:·f.fl.lo.oa.at.t,·r.ra.ad.di.iu.us.s:.:·f.fl.lo.oa.at.t,·a.an.ng.gl.le.e1.1:.:·f.fl.lo.oa.at.t,·a.an.ng.gl.le.e2.2:.:·f.fl.lo.oa.at\x8t)
58 ·········_.N_.o_.n_.e_\x858 ·········None_\x8
59 ··············Parameters:59 ··············Parameters:
60 ······················*·x\x8xc\x8c··X·position·of·the·center·of·the·arc60 ······················*·x\x8xc\x8c··X·position·of·the·center·of·the·arc
61 ······················*·y\x8yc\x8c··Y·position·of·the·center·of·the·arc61 ······················*·y\x8yc\x8c··Y·position·of·the·center·of·the·arc
62 ······················*·r\x8ra\x8ad\x8di\x8iu\x8us\x8s··the·radius·of·the·arc62 ······················*·r\x8ra\x8ad\x8di\x8iu\x8us\x8s··the·radius·of·the·arc
63 ······················*·a\x8an\x8ng\x8gl\x8le\x8e1\x81··the·start·angle,·in·radians63 ······················*·a\x8an\x8ng\x8gl\x8le\x8e1\x81··the·start·angle,·in·radians
64 ······················*·a\x8an\x8ng\x8gl\x8le\x8e2\x82··the·end·angle,·in·radians64 ······················*·a\x8an\x8ng\x8gl\x8le\x8e2\x82··the·end·angle,·in·radians
65 ············Adds·a·circular·arc·of·the·given·r\x8ra\x8ad\x8di\x8iu\x8us\x8s·to·the·current·path.·The65 ············Adds·a·circular·arc·of·the·given·r\x8ra\x8ad\x8di\x8iu\x8us\x8s·to·the·current·path.·The
20.6 KB
usr/share/doc/pycairo/html/reference/devices.html
    
Offset 116, 43 lines modifiedOffset 116, 43 lines modified
116 <span·class="k">with</span>·<span·class="n">cairo</span><span·class="o">.</span><span·class="n">ScriptDevice</span><span·class="p">(</span><span·class="n">f</span><span·class="p">)</span>·<span·class="k">as</span>·<span·class="n">device</span><span·class="p">:</span>116 <span·class="k">with</span>·<span·class="n">cairo</span><span·class="o">.</span><span·class="n">ScriptDevice</span><span·class="p">(</span><span·class="n">f</span><span·class="p">)</span>·<span·class="k">as</span>·<span·class="n">device</span><span·class="p">:</span>
117 ····<span·class="k">pass</span>117 ····<span·class="k">pass</span>
118 </pre></div>118 </pre></div>
119 </div>119 </div>
120 </div>120 </div>
121 <dl·class="py·method">121 <dl·class="py·method">
122 <dt·class="sig·sig-object·py"·id="cairo.Device.finish">122 <dt·class="sig·sig-object·py"·id="cairo.Device.finish">
123 <span·class="sig-name·descname"><span·class="pre">finish</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·external"·href="https://docs.python.org/3/library/constants.html#None"·title="(in·Python·v3.12)"><span·class="pre">None</span></a></span></span><a·class="headerlink"·href="#cairo.Device.finish"·title="Link·to·this·definition"></a></dt>123 <span·class="sig-name·descname"><span·class="pre">finish</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><span·class="pre">None</span></span></span><a·class="headerlink"·href="#cairo.Device.finish"·title="Link·to·this·definition"></a></dt>
124 <dd><p>This·function·finishes·the·device·and·drops·all·references·to·external124 <dd><p>This·function·finishes·the·device·and·drops·all·references·to·external
125 resources.·All·surfaces,·fonts·and·other·objects·created·for·this125 resources.·All·surfaces,·fonts·and·other·objects·created·for·this
126 device·will·be·finished,·too.·Further·operations·on·the·device·will126 device·will·be·finished,·too.·Further·operations·on·the·device·will
127 not·affect·the·device·but·will·instead·trigger·a127 not·affect·the·device·but·will·instead·trigger·a
128 <a·class="reference·internal"·href="enums.html#cairo.Status.DEVICE_FINISHED"·title="cairo.Status.DEVICE_FINISHED"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">Status.DEVICE_FINISHED</span></code></a>·error.</p>128 <a·class="reference·internal"·href="enums.html#cairo.Status.DEVICE_FINISHED"·title="cairo.Status.DEVICE_FINISHED"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">Status.DEVICE_FINISHED</span></code></a>·error.</p>
129 <p>This·function·may·acquire·devices.</p>129 <p>This·function·may·acquire·devices.</p>
130 <div·class="versionadded">130 <div·class="versionadded">
131 <p><span·class="versionmodified·added">New·in·version·1.14.</span></p>131 <p><span·class="versionmodified·added">New·in·version·1.14.</span></p>
132 </div>132 </div>
133 </dd></dl>133 </dd></dl>
  
134 <dl·class="py·method">134 <dl·class="py·method">
135 <dt·class="sig·sig-object·py"·id="cairo.Device.flush">135 <dt·class="sig·sig-object·py"·id="cairo.Device.flush">
136 <span·class="sig-name·descname"><span·class="pre">flush</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·external"·href="https://docs.python.org/3/library/constants.html#None"·title="(in·Python·v3.12)"><span·class="pre">None</span></a></span></span><a·class="headerlink"·href="#cairo.Device.flush"·title="Link·to·this·definition"></a></dt>136 <span·class="sig-name·descname"><span·class="pre">flush</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><span·class="pre">None</span></span></span><a·class="headerlink"·href="#cairo.Device.flush"·title="Link·to·this·definition"></a></dt>
137 <dd><p>Finish·any·pending·operations·for·the·device·and·also·restore·any137 <dd><p>Finish·any·pending·operations·for·the·device·and·also·restore·any
138 temporary·modifications·cairo·has·made·to·the·device’s·state.·This138 temporary·modifications·cairo·has·made·to·the·device’s·state.·This
139 function·must·be·called·before·switching·from·using·the·device·with139 function·must·be·called·before·switching·from·using·the·device·with
140 Cairo·to·operating·on·it·directly·with·native·APIs.·If·the·device140 Cairo·to·operating·on·it·directly·with·native·APIs.·If·the·device
141 doesn’t·support·direct·access,·then·this·function·does·nothing.</p>141 doesn’t·support·direct·access,·then·this·function·does·nothing.</p>
142 <p>This·function·may·acquire·devices.</p>142 <p>This·function·may·acquire·devices.</p>
143 <div·class="versionadded">143 <div·class="versionadded">
144 <p><span·class="versionmodified·added">New·in·version·1.14.</span></p>144 <p><span·class="versionmodified·added">New·in·version·1.14.</span></p>
145 </div>145 </div>
146 </dd></dl>146 </dd></dl>
  
147 <dl·class="py·method">147 <dl·class="py·method">
148 <dt·class="sig·sig-object·py"·id="cairo.Device.acquire">148 <dt·class="sig·sig-object·py"·id="cairo.Device.acquire">
149 <span·class="sig-name·descname"><span·class="pre">acquire</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·external"·href="https://docs.python.org/3/library/constants.html#None"·title="(in·Python·v3.12)"><span·class="pre">None</span></a></span></span><a·class="headerlink"·href="#cairo.Device.acquire"·title="Link·to·this·definition"></a></dt>149 <span·class="sig-name·descname"><span·class="pre">acquire</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><span·class="pre">None</span></span></span><a·class="headerlink"·href="#cairo.Device.acquire"·title="Link·to·this·definition"></a></dt>
150 <dd><dl·class="field-list·simple">150 <dd><dl·class="field-list·simple">
151 <dt·class="field-odd">Raises<span·class="colon">:</span></dt>151 <dt·class="field-odd">Raises<span·class="colon">:</span></dt>
152 <dd·class="field-odd"><p><a·class="reference·internal"·href="exceptions.html#cairo.Error"·title="cairo.Error"><strong>cairo.Error</strong></a>··If·the·device·is·in·an·error·state·and·could·not·be·acquired.</p>152 <dd·class="field-odd"><p><a·class="reference·internal"·href="exceptions.html#cairo.Error"·title="cairo.Error"><strong>cairo.Error</strong></a>··If·the·device·is·in·an·error·state·and·could·not·be·acquired.</p>
153 </dd>153 </dd>
154 </dl>154 </dl>
155 <p>Acquires·the·device·for·the·current·thread.·This·function·will·block155 <p>Acquires·the·device·for·the·current·thread.·This·function·will·block
156 until·no·other·thread·has·acquired·the·device.</p>156 until·no·other·thread·has·acquired·the·device.</p>
5.14 KB
html2text {}
    
Offset 34, 31 lines modifiedOffset 34, 31 lines modified
34 ······_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e.34 ······_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e.
35 ······New·in·version·1.14.35 ······New·in·version·1.14.
36 ······Note36 ······Note
37 ······New·in·version·1.17.0:·_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8D_\x8e_\x8v_\x8i_\x8c_\x8e·can·be·used·as·a·context·manager:37 ······New·in·version·1.17.0:·_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8D_\x8e_\x8v_\x8i_\x8c_\x8e·can·be·used·as·a·context·manager:
38 ······#·device.finish()·will·be·called·on·__exit__38 ······#·device.finish()·will·be·called·on·__exit__
39 ······with·cairo.ScriptDevice(f)·as·device:39 ······with·cairo.ScriptDevice(f)·as·device:
40 ··········pass40 ··········pass
41 ········finish()··_.N_.o_.n_.e_\x841 ········finish()··None_\x8
42 ············This·function·finishes·the·device·and·drops·all·references·to42 ············This·function·finishes·the·device·and·drops·all·references·to
43 ············external·resources.·All·surfaces,·fonts·and·other·objects·created43 ············external·resources.·All·surfaces,·fonts·and·other·objects·created
44 ············for·this·device·will·be·finished,·too.·Further·operations·on·the44 ············for·this·device·will·be·finished,·too.·Further·operations·on·the
45 ············device·will·not·affect·the·device·but·will·instead·trigger·a45 ············device·will·not·affect·the·device·but·will·instead·trigger·a
46 ············_\x8S_\x8t_\x8a_\x8t_\x8u_\x8s_\x8._\x8D_\x8E_\x8V_\x8I_\x8C_\x8E_\x8__\x8F_\x8I_\x8N_\x8I_\x8S_\x8H_\x8E_\x8D·error.46 ············_\x8S_\x8t_\x8a_\x8t_\x8u_\x8s_\x8._\x8D_\x8E_\x8V_\x8I_\x8C_\x8E_\x8__\x8F_\x8I_\x8N_\x8I_\x8S_\x8H_\x8E_\x8D·error.
47 ············This·function·may·acquire·devices.47 ············This·function·may·acquire·devices.
48 ············New·in·version·1.14.48 ············New·in·version·1.14.
49 ········flush()··_.N_.o_.n_.e_\x849 ········flush()··None_\x8
50 ············Finish·any·pending·operations·for·the·device·and·also·restore·any50 ············Finish·any·pending·operations·for·the·device·and·also·restore·any
51 ············temporary·modifications·cairo·has·made·to·the·device’s·state.·This51 ············temporary·modifications·cairo·has·made·to·the·device’s·state.·This
52 ············function·must·be·called·before·switching·from·using·the·device·with52 ············function·must·be·called·before·switching·from·using·the·device·with
53 ············Cairo·to·operating·on·it·directly·with·native·APIs.·If·the·device53 ············Cairo·to·operating·on·it·directly·with·native·APIs.·If·the·device
54 ············doesn’t·support·direct·access,·then·this·function·does·nothing.54 ············doesn’t·support·direct·access,·then·this·function·does·nothing.
55 ············This·function·may·acquire·devices.55 ············This·function·may·acquire·devices.
56 ············New·in·version·1.14.56 ············New·in·version·1.14.
57 ········acquire()··_.N_.o_.n_.e_\x857 ········acquire()··None_\x8
58 ··············Raises:58 ··············Raises:
59 ··················_\x8c\x8c_\x8a\x8a_\x8i\x8i_\x8r\x8r_\x8o\x8o_\x8.\x8._\x8E\x8E_\x8r\x8r_\x8r\x8r_\x8o\x8o_\x8r\x8r··If·the·device·is·in·an·error·state·and·could59 ··················_\x8c\x8c_\x8a\x8a_\x8i\x8i_\x8r\x8r_\x8o\x8o_\x8.\x8._\x8E\x8E_\x8r\x8r_\x8r\x8r_\x8o\x8o_\x8r\x8r··If·the·device·is·in·an·error·state·and·could
60 ··················not·be·acquired.60 ··················not·be·acquired.
61 ············Acquires·the·device·for·the·current·thread.·This·function·will61 ············Acquires·the·device·for·the·current·thread.·This·function·will
62 ············block·until·no·other·thread·has·acquired·the·device.62 ············block·until·no·other·thread·has·acquired·the·device.
63 ············If·the·does·not·raise,·you·successfully·acquired·the·device.·From63 ············If·the·does·not·raise,·you·successfully·acquired·the·device.·From
64 ············now·on·your·thread·owns·the·device·and·no·other·thread·will·be·able64 ············now·on·your·thread·owns·the·device·and·no·other·thread·will·be·able
85.3 KB
usr/share/doc/pycairo/html/reference/enums.html
    
Offset 97, 15 lines modifiedOffset 97, 15 lines modified
97 ·············97 ·············
98 ··<section·id="enums">98 ··<section·id="enums">
99 <h1>Enums<a·class="headerlink"·href="#enums"·title="Link·to·this·heading"></a></h1>99 <h1>Enums<a·class="headerlink"·href="#enums"·title="Link·to·this·heading"></a></h1>
100 <p>Before·Pycairo·1.13·most·of·the·enum·values·defined·here·where·only·available100 <p>Before·Pycairo·1.13·most·of·the·enum·values·defined·here·where·only·available
101 as·constants·on·the·module·level.·See·<a·class="reference·internal"·href="legacy_constants.html#legacy-constants"><span·class="std·std-ref">Legacy·Constants</span></a>.</p>101 as·constants·on·the·module·level.·See·<a·class="reference·internal"·href="legacy_constants.html#legacy-constants"><span·class="std·std-ref">Legacy·Constants</span></a>.</p>
102 <dl·class="py·class">102 <dl·class="py·class">
103 <dt·class="sig·sig-object·py"·id="cairo.Antialias">103 <dt·class="sig·sig-object·py"·id="cairo.Antialias">
104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">Antialias</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">value</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#int"·title="(in·Python·v3.12)"><span·class="pre">int</span></a></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Antialias"·title="Link·to·this·definition"></a></dt>104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">Antialias</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">value</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">int</span></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Antialias"·title="Link·to·this·definition"></a></dt>
105 <dd><p>Specifies·the·type·of·antialiasing·to·do·when·rendering·text·or·shapes.</p>105 <dd><p>Specifies·the·type·of·antialiasing·to·do·when·rendering·text·or·shapes.</p>
106 <div·class="versionadded">106 <div·class="versionadded">
107 <p><span·class="versionmodified·added">New·in·version·1.13.</span></p>107 <p><span·class="versionmodified·added">New·in·version·1.13.</span></p>
108 </div>108 </div>
109 <dl·class="py·attribute">109 <dl·class="py·attribute">
110 <dt·class="sig·sig-object·py"·id="cairo.Antialias.BEST">110 <dt·class="sig·sig-object·py"·id="cairo.Antialias.BEST">
111 <span·class="sig-name·descname"><span·class="pre">BEST</span></span><em·class="property"><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><a·class="reference·internal"·href="#cairo.Antialias"·title="cairo.Antialias"><span·class="pre">Antialias</span></a></em><em·class="property"><span·class="w">·</span><span·class="p"><span·class="pre">=</span></span><span·class="w">·</span><span·class="pre">Ellipsis</span></em><a·class="headerlink"·href="#cairo.Antialias.BEST"·title="Link·to·this·definition"></a></dt>111 <span·class="sig-name·descname"><span·class="pre">BEST</span></span><em·class="property"><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><a·class="reference·internal"·href="#cairo.Antialias"·title="cairo.Antialias"><span·class="pre">Antialias</span></a></em><em·class="property"><span·class="w">·</span><span·class="p"><span·class="pre">=</span></span><span·class="w">·</span><span·class="pre">Ellipsis</span></em><a·class="headerlink"·href="#cairo.Antialias.BEST"·title="Link·to·this·definition"></a></dt>
26.2 KB
html2text {}
    
Offset 26, 15 lines modifiedOffset 26, 15 lines modified
26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e
27 ····*·Enums27 ····*·Enums
28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
29 ===============================================================================29 ===============================================================================
30 *\x8**\x8**\x8**\x8**\x8**\x8*·E\x8En\x8nu\x8um\x8ms\x8s_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*30 *\x8**\x8**\x8**\x8**\x8**\x8*·E\x8En\x8nu\x8um\x8ms\x8s_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*
31 Before·Pycairo·1.13·most·of·the·enum·values·defined·here·where·only·available31 Before·Pycairo·1.13·most·of·the·enum·values·defined·here·where·only·available
32 as·constants·on·the·module·level.·See·_\x8L_\x8e_\x8g_\x8a_\x8c_\x8y_\x8·_\x8C_\x8o_\x8n_\x8s_\x8t_\x8a_\x8n_\x8t_\x8s.32 as·constants·on·the·module·level.·See·_\x8L_\x8e_\x8g_\x8a_\x8c_\x8y_\x8·_\x8C_\x8o_\x8n_\x8s_\x8t_\x8a_\x8n_\x8t_\x8s.
33 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.Antialias(v\x8va\x8al\x8lu\x8ue\x8e:\x8:·_.i.i_.n.n_.t\x8t)_\x833 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.Antialias(v\x8va\x8al\x8lu\x8ue\x8e:\x8:·i.in.nt\x8t)_\x8
34 ······Specifies·the·type·of·antialiasing·to·do·when·rendering·text·or·shapes.34 ······Specifies·the·type·of·antialiasing·to·do·when·rendering·text·or·shapes.
35 ······New·in·version·1.13.35 ······New·in·version·1.13.
36 ········BEST:\x8:·_\x8A\x8A_\x8n\x8n_\x8t\x8t_\x8i\x8i_\x8a\x8a_\x8l\x8l_\x8i\x8i_\x8a\x8a_\x8s\x8s·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x836 ········BEST:\x8:·_\x8A\x8A_\x8n\x8n_\x8t\x8t_\x8i\x8i_\x8a\x8a_\x8l\x8l_\x8i\x8i_\x8a\x8a_\x8s\x8s·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
37 ············Hint·that·the·backend·should·render·at·the·highest·quality,37 ············Hint·that·the·backend·should·render·at·the·highest·quality,
38 ············sacrificing·speed·if·necessary.38 ············sacrificing·speed·if·necessary.
39 ········DEFAULT:\x8:·_\x8A\x8A_\x8n\x8n_\x8t\x8t_\x8i\x8i_\x8a\x8a_\x8l\x8l_\x8i\x8i_\x8a\x8a_\x8s\x8s·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x839 ········DEFAULT:\x8:·_\x8A\x8A_\x8n\x8n_\x8t\x8t_\x8i\x8i_\x8a\x8a_\x8l\x8l_\x8i\x8i_\x8a\x8a_\x8s\x8s·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
40 ············Use·the·default·antialiasing·for·the·subsystem·and·target·device40 ············Use·the·default·antialiasing·for·the·subsystem·and·target·device
5.01 KB
usr/share/doc/pycairo/html/reference/exceptions.html
    
Offset 122, 33 lines modifiedOffset 122, 33 lines modified
122 </dd></dl>122 </dd></dl>
  
123 <dl·class="py·exception">123 <dl·class="py·exception">
124 <dt·class="sig·sig-object·py"·id="cairo.MemoryError">124 <dt·class="sig·sig-object·py"·id="cairo.MemoryError">
125 <em·class="property"><span·class="pre">exception</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">MemoryError</span></span><a·class="headerlink"·href="#cairo.MemoryError"·title="Link·to·this·definition"></a></dt>125 <em·class="property"><span·class="pre">exception</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">MemoryError</span></span><a·class="headerlink"·href="#cairo.MemoryError"·title="Link·to·this·definition"></a></dt>
126 <dd><dl·class="field-list·simple">126 <dd><dl·class="field-list·simple">
127 <dt·class="field-odd">Bases<span·class="colon">:</span></dt>127 <dt·class="field-odd">Bases<span·class="colon">:</span></dt>
128 <dd·class="field-odd"><p><a·class="reference·internal"·href="#cairo.Error"·title="cairo.Error"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">Error</span></code></a>,·<a·class="reference·external"·href="https://docs.python.org/3/library/exceptions.html#MemoryError"·title="(in·Python·v3.12)"><code·class="docutils·literal·notranslate"><span·class="pre">MemoryError</span></code></a></p>128 <dd·class="field-odd"><p><a·class="reference·internal"·href="#cairo.Error"·title="cairo.Error"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">Error</span></code></a>,·<code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">python3:MemoryError</span></code></p>
129 </dd>129 </dd>
130 </dl>130 </dl>
131 <div·class="versionadded">131 <div·class="versionadded">
132 <p><span·class="versionmodified·added">New·in·version·1.15:·</span>Prior·to·1.15·<a·class="reference·external"·href="https://docs.python.org/3/library/exceptions.html#MemoryError"·title="(in·Python·v3.12)"><code·class="docutils·literal·notranslate"><span·class="pre">MemoryError</span></code></a>·was·raised·instead·of·this132 <p><span·class="versionmodified·added">New·in·version·1.15:·</span>Prior·to·1.15·<code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">python3:MemoryError</span></code>·was·raised·instead·of·this
133 type.</p>133 type.</p>
134 </div>134 </div>
135 </dd></dl>135 </dd></dl>
  
136 <dl·class="py·exception">136 <dl·class="py·exception">
137 <dt·class="sig·sig-object·py"·id="cairo.IOError">137 <dt·class="sig·sig-object·py"·id="cairo.IOError">
138 <em·class="property"><span·class="pre">exception</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">IOError</span></span><a·class="headerlink"·href="#cairo.IOError"·title="Link·to·this·definition"></a></dt>138 <em·class="property"><span·class="pre">exception</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">IOError</span></span><a·class="headerlink"·href="#cairo.IOError"·title="Link·to·this·definition"></a></dt>
139 <dd><dl·class="field-list·simple">139 <dd><dl·class="field-list·simple">
140 <dt·class="field-odd">Bases<span·class="colon">:</span></dt>140 <dt·class="field-odd">Bases<span·class="colon">:</span></dt>
141 <dd·class="field-odd"><p><a·class="reference·internal"·href="#cairo.Error"·title="cairo.Error"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">Error</span></code></a>,·<a·class="reference·external"·href="https://docs.python.org/3/library/exceptions.html#IOError"·title="(in·Python·v3.12)"><code·class="docutils·literal·notranslate"><span·class="pre">IOError</span></code></a></p>141 <dd·class="field-odd"><p><a·class="reference·internal"·href="#cairo.Error"·title="cairo.Error"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">Error</span></code></a>,·<code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">python3:IOError</span></code></p>
142 </dd>142 </dd>
143 </dl>143 </dl>
144 <div·class="versionadded">144 <div·class="versionadded">
145 <p><span·class="versionmodified·added">New·in·version·1.15:·</span>Prior·to·1.15·<a·class="reference·external"·href="https://docs.python.org/3/library/exceptions.html#IOError"·title="(in·Python·v3.12)"><code·class="docutils·literal·notranslate"><span·class="pre">IOError</span></code></a>·was·raised·instead·of·this145 <p><span·class="versionmodified·added">New·in·version·1.15:·</span>Prior·to·1.15·<code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">python3:IOError</span></code>·was·raised·instead·of·this
146 type.</p>146 type.</p>
147 </div>147 </div>
148 </dd></dl>148 </dd></dl>
  
149 </section>149 </section>
150 </section>150 </section>
  
1.25 KB
html2text {}
    
Offset 35, 18 lines modifiedOffset 35, 18 lines modified
35 ······This·exception·is·raised·when·a·cairo·object·returns·an·error·status.35 ······This·exception·is·raised·when·a·cairo·object·returns·an·error·status.
36 ········status:\x8:·_\x8S\x8S_\x8t\x8t_\x8a\x8a_\x8t\x8t_\x8u\x8u_\x8s\x8s·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x836 ········status:\x8:·_\x8S\x8S_\x8t\x8t_\x8a\x8a_\x8t\x8t_\x8u\x8u_\x8s\x8s·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
37 ··cairo.CairoError_\x837 ··cairo.CairoError_\x8
38 ······An·alias·for·_\x8E_\x8r_\x8r_\x8o_\x8r38 ······An·alias·for·_\x8E_\x8r_\x8r_\x8o_\x8r
39 ······New·in·version·1.12.0.39 ······New·in·version·1.12.0.
40 ··e\x8ex\x8xc\x8ce\x8ep\x8pt\x8ti\x8io\x8on\x8n·cairo.MemoryError_\x840 ··e\x8ex\x8xc\x8ce\x8ep\x8pt\x8ti\x8io\x8on\x8n·cairo.MemoryError_\x8
41 ········Bases:41 ········Bases:
42 ············_\x8E_\x8r_\x8r_\x8o_\x8r,·_.M_.e_.m_.o_.r_.y_.E_.r_.r_.o_.r42 ············_\x8E_\x8r_\x8r_\x8o_\x8r,·python3:MemoryError
43 ······New·in·version·1.15:·Prior·to·1.15·_.M_.e_.m_.o_.r_.y_.E_.r_.r_.o_.r·was·raised·instead·of·this43 ······New·in·version·1.15:·Prior·to·1.15·python3:MemoryError·was·raised·instead
44 ······type.44 ······of·this·type.
45 ··e\x8ex\x8xc\x8ce\x8ep\x8pt\x8ti\x8io\x8on\x8n·cairo.IOError_\x845 ··e\x8ex\x8xc\x8ce\x8ep\x8pt\x8ti\x8io\x8on\x8n·cairo.IOError_\x8
46 ········Bases:46 ········Bases:
47 ············_\x8E_\x8r_\x8r_\x8o_\x8r,·_.I_.O_.E_.r_.r_.o_.r47 ············_\x8E_\x8r_\x8r_\x8o_\x8r,·python3:IOError
48 ······New·in·version·1.15:·Prior·to·1.15·_.I_.O_.E_.r_.r_.o_.r·was·raised·instead·of·this48 ······New·in·version·1.15:·Prior·to·1.15·python3:IOError·was·raised·instead·of
49 ······type.49 ······this·type.
50 _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t50 _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t
51 ===============================================================================51 ===============================================================================
52 Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s.52 Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s.
13.1 KB
usr/share/doc/pycairo/html/reference/glyph.html
    
Offset 97, 15 lines modifiedOffset 97, 15 lines modified
97 ·············97 ·············
98 ··<section·id="glyph">98 ··<section·id="glyph">
99 <span·id="id1"></span><h1>Glyph<a·class="headerlink"·href="#glyph"·title="Link·to·this·heading"></a></h1>99 <span·id="id1"></span><h1>Glyph<a·class="headerlink"·href="#glyph"·title="Link·to·this·heading"></a></h1>
100 <section·id="class-glyph-tuple">100 <section·id="class-glyph-tuple">
101 <h2>class·Glyph(tuple)<a·class="headerlink"·href="#class-glyph-tuple"·title="Link·to·this·heading"></a></h2>101 <h2>class·Glyph(tuple)<a·class="headerlink"·href="#class-glyph-tuple"·title="Link·to·this·heading"></a></h2>
102 <dl·class="py·class">102 <dl·class="py·class">
103 <dt·class="sig·sig-object·py"·id="cairo.Glyph">103 <dt·class="sig·sig-object·py"·id="cairo.Glyph">
104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">Glyph</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">index</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#int"·title="(in·Python·v3.12)"><span·class="pre">int</span></a></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">x</span></span><span·class="p"><span·cl[·...·truncated·by·diffoscope;·len:·542,·SHA:·dae47a9b1b4e6d3248e0a2a2598ec1f227907ed10f4fdbb8a4f4381c64b906c6·...·]></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Glyph"·title="Link·to·this·definition"></a></dt>104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">Glyph</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">index</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">int</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">x</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<em·class="[·...·truncated·by·diffoscope;·len:·178,·SHA:·f12b07be552c0e3285cae4ce291efca785ad02abe834839dd1cc14b7eda9b5e8·...·]></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Glyph"·title="Link·to·this·definition"></a></dt>
105 <dd><p>The·<a·class="reference·internal"·href="#cairo.Glyph"·title="cairo.Glyph"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Glyph</span></code></a>·holds·information·about·a·single·glyph·when·drawing·or105 <dd><p>The·<a·class="reference·internal"·href="#cairo.Glyph"·title="cairo.Glyph"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Glyph</span></code></a>·holds·information·about·a·single·glyph·when·drawing·or
106 measuring·text.·A·font·is·(in·simple·terms)·a·collection·of·shapes·used·to106 measuring·text.·A·font·is·(in·simple·terms)·a·collection·of·shapes·used·to
107 draw·text.·A·glyph·is·one·of·these·shapes.·There·can·be·multiple·glyphs107 draw·text.·A·glyph·is·one·of·these·shapes.·There·can·be·multiple·glyphs
108 for·a·single·character·(alternates·to·be·used·in·different·contexts,·for108 for·a·single·character·(alternates·to·be·used·in·different·contexts,·for
109 example),·or·a·glyph·can·be·a·ligature·of·multiple·characters.·Cairo109 example),·or·a·glyph·can·be·a·ligature·of·multiple·characters.·Cairo
110 doesn’t·expose·any·way·of·converting·input·text·into·glyphs,·so·in·order110 doesn’t·expose·any·way·of·converting·input·text·into·glyphs,·so·in·order
111 to·use·the·Cairo·interfaces·that·take·arrays·of·glyphs,·you·must·directly111 to·use·the·Cairo·interfaces·that·take·arrays·of·glyphs,·you·must·directly
3.01 KB
html2text {}
    
Offset 25, 38 lines modifiedOffset 25, 38 lines modified
25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o
26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e
27 ····*·Glyph27 ····*·Glyph
28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
29 ===============================================================================29 ===============================================================================
30 *\x8**\x8**\x8**\x8**\x8**\x8*·G\x8Gl\x8ly\x8yp\x8ph\x8h_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*30 *\x8**\x8**\x8**\x8**\x8**\x8*·G\x8Gl\x8ly\x8yp\x8ph\x8h_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*
31 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·G\x8Gl\x8ly\x8yp\x8ph\x8h(\x8(t\x8tu\x8up\x8pl\x8le\x8e)\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*31 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·G\x8Gl\x8ly\x8yp\x8ph\x8h(\x8(t\x8tu\x8up\x8pl\x8le\x8e)\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
32 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.Glyph(i\x8in\x8nd\x8de\x8ex\x8x:\x8:·_.i.i_.n.n_.t.t,·x.x:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·y.y:.:·_.f.f_.l.l_.o.o_.a.a_.t\x8t)_\x832 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.Glyph(i\x8in\x8nd\x8de\x8ex\x8x:\x8:·i.in.nt.t,·x.x:.:·f.fl.lo.oa.at.t,·y.y:.:·f.fl.lo.oa.at\x8t)_\x8
33 ······The·_\x8G_\x8l_\x8y_\x8p_\x8h·holds·information·about·a·single·glyph·when·drawing·or33 ······The·_\x8G_\x8l_\x8y_\x8p_\x8h·holds·information·about·a·single·glyph·when·drawing·or
34 ······measuring·text.·A·font·is·(in·simple·terms)·a·collection·of·shapes·used34 ······measuring·text.·A·font·is·(in·simple·terms)·a·collection·of·shapes·used
35 ······to·draw·text.·A·glyph·is·one·of·these·shapes.·There·can·be·multiple35 ······to·draw·text.·A·glyph·is·one·of·these·shapes.·There·can·be·multiple
36 ······glyphs·for·a·single·character·(alternates·to·be·used·in·different36 ······glyphs·for·a·single·character·(alternates·to·be·used·in·different
37 ······contexts,·for·example),·or·a·glyph·can·be·a·ligature·of·multiple37 ······contexts,·for·example),·or·a·glyph·can·be·a·ligature·of·multiple
38 ······characters.·Cairo·doesn’t·expose·any·way·of·converting·input·text·into38 ······characters.·Cairo·doesn’t·expose·any·way·of·converting·input·text·into
39 ······glyphs,·so·in·order·to·use·the·Cairo·interfaces·that·take·arrays·of39 ······glyphs,·so·in·order·to·use·the·Cairo·interfaces·that·take·arrays·of
40 ······glyphs,·you·must·directly·access·the·appropriate·underlying·font·system.40 ······glyphs,·you·must·directly·access·the·appropriate·underlying·font·system.
41 ······Note·that·the·offsets·given·by·x·and·y·are·not·cumulative.·When·drawing41 ······Note·that·the·offsets·given·by·x·and·y·are·not·cumulative.·When·drawing
42 ······or·measuring·text,·each·glyph·is·individually·positioned·with·respect·to42 ······or·measuring·text,·each·glyph·is·individually·positioned·with·respect·to
43 ······the·overall·origin43 ······the·overall·origin
44 ······New·in·version·1.15:·In·prior·versions·a·(int,·float,·float)·tuple·was44 ······New·in·version·1.15:·In·prior·versions·a·(int,·float,·float)·tuple·was
45 ······used·instead·of·_\x8G_\x8l_\x8y_\x8p_\x8h.45 ······used·instead·of·_\x8G_\x8l_\x8y_\x8p_\x8h.
46 ········__init__(i\x8in\x8nd\x8de\x8ex\x8x:\x8:·_.i.i_.n.n_.t.t,·x.x:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·y.y:.:·_.f.f_.l.l_.o.o_.a.a_.t.t)··_.N_.o_.n_.e_\x846 ········__init__(i\x8in\x8nd\x8de\x8ex\x8x:\x8:·i.in.nt.t,·x.x:.:·f.fl.lo.oa.at.t,·y.y:.:·f.fl.lo.oa.at.t)··None_\x8
47 ··············Parameters:47 ··············Parameters:
48 ······················*·i\x8in\x8nd\x8de\x8ex\x8x··glyph·index·in·the·font.·The·exact48 ······················*·i\x8in\x8nd\x8de\x8ex\x8x··glyph·index·in·the·font.·The·exact
49 ························interpretation·of·the·glyph·index·depends·on·the·font49 ························interpretation·of·the·glyph·index·depends·on·the·font
50 ························technology·being·used.50 ························technology·being·used.
51 ······················*·x\x8x··the·offset·in·the·X·direction·between·the·origin51 ······················*·x\x8x··the·offset·in·the·X·direction·between·the·origin
52 ························used·for·drawing·or·measuring·the·string·and·the·origin52 ························used·for·drawing·or·measuring·the·string·and·the·origin
53 ························of·this·glyph.53 ························of·this·glyph.
54 ······················*·y\x8y··the·offset·in·the·Y·direction·between·the·origin54 ······················*·y\x8y··the·offset·in·the·Y·direction·between·the·origin
55 ························used·for·drawing·or·measuring·the·string·and·the·origin55 ························used·for·drawing·or·measuring·the·string·and·the·origin
56 ························of·this·glyph.56 ························of·this·glyph.
57 ········index:\x8:·_.i.i_.n.n_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x857 ········index:\x8:·i.in.nt\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
58 ········x:\x8:·_.f.f_.l.l_.o.o_.a.a_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x858 ········x:\x8:·f.fl.lo.oa.at\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
59 ········y:\x8:·_.f.f_.l.l_.o.o_.a.a_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x859 ········y:\x8:·f.fl.lo.oa.at\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
60 _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t60 _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t
61 ===============================================================================61 ===============================================================================
62 Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s.62 Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s.
49.8 KB
usr/share/doc/pycairo/html/reference/matrix.html
    
Offset 97, 15 lines modifiedOffset 97, 15 lines modified
97 ·············97 ·············
98 ··<section·id="matrix">98 ··<section·id="matrix">
99 <span·id="id1"></span><h1>Matrix<a·class="headerlink"·href="#matrix"·title="Link·to·this·heading"></a></h1>99 <span·id="id1"></span><h1>Matrix<a·class="headerlink"·href="#matrix"·title="Link·to·this·heading"></a></h1>
100 <section·id="class-matrix">100 <section·id="class-matrix">
101 <h2>class·Matrix()<a·class="headerlink"·href="#class-matrix"·title="Link·to·this·heading"></a></h2>101 <h2>class·Matrix()<a·class="headerlink"·href="#class-matrix"·title="Link·to·this·heading"></a></h2>
102 <dl·class="py·class">102 <dl·class="py·class">
103 <dt·class="sig·sig-object·py"·id="cairo.Matrix">103 <dt·class="sig·sig-object·py"·id="cairo.Matrix">
104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">Matrix</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">xx</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#float"·title="(in·Python·v3.12)"><span·class="pre">float</span></a></span><span·class="w">·</span><span·class="o"><span·class="pre">=</span></span><span·class="w">·</span><[·...·truncated·by·diffoscope;·len:·2329,·SHA:·5a39a3424b007c3cb9b6f04ea8312dbae6699aa2bc4d9149e8df3fc6f619af76·...·]></span><span·class="w">·</span><span·class="o"><span·class="pre">=</span></span><span·class="w">·</span><span·class="default_value"><span·class="pre">0.0</span></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Matrix"·title="Link·to·this·definition"></a></dt>104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">Matrix</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">xx</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span><span·class="w">·</span><span·class="o"><span·class="pre">=</span></span><span·class="w">·</span><span·class="default_value"><span·class="pre">1.0</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pr[·...·truncated·by·diffoscope;·len:·1597,·SHA:·118c5f49540d9bef67482ee48a8daf456d469755d5f9db2e12d21ae3f8dfb8dc·...·]></span><span·class="w">·</span><span·class="o"><span·class="pre">=</span></span><span·class="w">·</span><span·class="default_value"><span·class="pre">0.0</span></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Matrix"·title="Link·to·this·definition"></a></dt>
105 <dd><p><em>Matrix</em>·is·used·throughout·cairo·to·convert·between·different·coordinate105 <dd><p><em>Matrix</em>·is·used·throughout·cairo·to·convert·between·different·coordinate
106 spaces.··A·<em>Matrix</em>·holds·an·affine·transformation,·such·as·a·scale,106 spaces.··A·<em>Matrix</em>·holds·an·affine·transformation,·such·as·a·scale,
107 rotation,·shear,·or·a·combination·of·these.··The·transformation·of·a·point107 rotation,·shear,·or·a·combination·of·these.··The·transformation·of·a·point
108 (x,y)·is·given·by:</p>108 (x,y)·is·given·by:</p>
109 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">x_new</span>·<span·class="o">=</span>·<span·class="n">xx</span>·<span·class="o">*</span>·<span·class="n">x</span>·<span·class="o">+</span>·<span·class="n">xy</span>·<span·class="o">*</span>·<span·class="n">y</span>·<span·class="o">+</span>·<span·class="n">x0</span>109 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">x_new</span>·<span·class="o">=</span>·<span·class="n">xx</span>·<span·class="o">*</span>·<span·class="n">x</span>·<span·class="o">+</span>·<span·class="n">xy</span>·<span·class="o">*</span>·<span·class="n">y</span>·<span·class="o">+</span>·<span·class="n">x0</span>
110 <span·class="n">y_new</span>·<span·class="o">=</span>·<span·class="n">yx</span>·<span·class="o">*</span>·<span·class="n">x</span>·<span·class="o">+</span>·<span·class="n">yy</span>·<span·class="o">*</span>·<span·class="n">y</span>·<span·class="o">+</span>·<span·class="n">y0</span>110 <span·class="n">y_new</span>·<span·class="o">=</span>·<span·class="n">yx</span>·<span·class="o">*</span>·<span·class="n">x</span>·<span·class="o">+</span>·<span·class="n">yy</span>·<span·class="o">*</span>·<span·class="n">y</span>·<span·class="o">+</span>·<span·class="n">y0</span>
111 </pre></div>111 </pre></div>
10.4 KB
html2text {}
    
Offset 25, 16 lines modifiedOffset 25, 16 lines modified
25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o
26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e
27 ····*·Matrix27 ····*·Matrix
28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
29 ===============================================================================29 ===============================================================================
30 *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Ma\x8at\x8tr\x8ri\x8ix\x8x_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*30 *\x8**\x8**\x8**\x8**\x8**\x8*·M\x8Ma\x8at\x8tr\x8ri\x8ix\x8x_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*
31 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·M\x8Ma\x8at\x8tr\x8ri\x8ix\x8x(\x8()\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*31 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·M\x8Ma\x8at\x8tr\x8ri\x8ix\x8x(\x8()\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
32 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.Matrix(x\x8xx\x8x:\x8:·_.f.f_.l.l_.o.o_.a.a_.t.t·=.=·1.1...0.0,·y.yx.x:.:·_.f.f_.l.l_.o.o_.a.a_.t.t·=.=·0.0...0.0,·x.xy.y:.:·_.f.f_.l.l_.o.o_.a.a_.t\x8t·=\x8=·0\x80.\x8.0\x80,·y\x8yy\x8y:\x8:32 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.Matrix(x\x8xx\x8x:\x8:·f.fl.lo.oa.at.t·=.=·1.1...0.0,·y.yx.x:.:·f.fl.lo.oa.at.t·=.=·0.0...0.0,·x.xy.y:.:·f.fl.lo.oa.at\x8t·=\x8=·0\x80.\x8.0\x80,·y\x8yy\x8y:\x8:
33 ··_.f.f_.l.l_.o.o_.a.a_.t.t·=.=·1.1...0.0,·x.x0.0:.:·_.f.f_.l.l_.o.o_.a.a_.t.t·=.=·0.0...0.0,·y.y0.0:.:·_.f.f_.l.l_.o.o_.a.a_.t\x8t·=\x8=·0\x80.\x8.0\x80)_\x833 ··f.fl.lo.oa.at.t·=.=·1.1...0.0,·x.x0.0:.:·f.fl.lo.oa.at.t·=.=·0.0...0.0,·y.y0.0:.:·f.fl.lo.oa.at\x8t·=\x8=·0\x80.\x8.0\x80)_\x8
34 ······M\x8Ma\x8at\x8tr\x8ri\x8ix\x8x·is·used·throughout·cairo·to·convert·between·different·coordinate34 ······M\x8Ma\x8at\x8tr\x8ri\x8ix\x8x·is·used·throughout·cairo·to·convert·between·different·coordinate
35 ······spaces.·A·M\x8Ma\x8at\x8tr\x8ri\x8ix\x8x·holds·an·affine·transformation,·such·as·a·scale,35 ······spaces.·A·M\x8Ma\x8at\x8tr\x8ri\x8ix\x8x·holds·an·affine·transformation,·such·as·a·scale,
36 ······rotation,·shear,·or·a·combination·of·these.·The·transformation·of·a·point36 ······rotation,·shear,·or·a·combination·of·these.·The·transformation·of·a·point
37 ······(x,y)·is·given·by:37 ······(x,y)·is·given·by:
38 ······x_new·=·xx·*·x·+·xy·*·y·+·x038 ······x_new·=·xx·*·x·+·xy·*·y·+·x0
39 ······y_new·=·yx·*·x·+·yy·*·y·+·y039 ······y_new·=·yx·*·x·+·yy·*·y·+·y0
40 ······The·current·transformation·matrix·of·a·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t,·represented·as·a·M\x8Ma\x8at\x8tr\x8ri\x8ix\x8x,40 ······The·current·transformation·matrix·of·a·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t,·represented·as·a·M\x8Ma\x8at\x8tr\x8ri\x8ix\x8x,
148 KB
usr/share/doc/pycairo/html/reference/patterns.html
    
Offset 145, 15 lines modifiedOffset 145, 15 lines modified
145 <div·class="versionadded">145 <div·class="versionadded">
146 <p><span·class="versionmodified·added">New·in·version·1.12.0:·</span>Used·to·be·a·method·of·<a·class="reference·internal"·href="#cairo.SurfacePattern"·title="cairo.SurfacePattern"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SurfacePattern</span></code></a>·before</p>146 <p><span·class="versionmodified·added">New·in·version·1.12.0:·</span>Used·to·be·a·method·of·<a·class="reference·internal"·href="#cairo.SurfacePattern"·title="cairo.SurfacePattern"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SurfacePattern</span></code></a>·before</p>
147 </div>147 </div>
148 </dd></dl>148 </dd></dl>
  
149 <dl·class="py·method">149 <dl·class="py·method">
150 <dt·class="sig·sig-object·py"·id="cairo.Pattern.set_filter">150 <dt·class="sig·sig-object·py"·id="cairo.Pattern.set_filter">
151 <span·class="sig-name·descname"><span·class="pre">set_filter</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">filter</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="enums.html#cairo.Filter"·title="cairo.Filter"><span·class="pre">Filter</span></a></span></em><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·external"·href="https://docs.python.org/3/library/constants.html#None"·title="(in·Python·v3.12)"><span·class="pre">None</span></a></span></span><a·class="headerlink"·href="#cairo.Pattern.set_filter"·title="Link·to·this·definition"></a></dt>151 <span·class="sig-name·descname"><span·class="pre">set_filter</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">filter</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="enums.html#cairo.Filter"·title="cairo.Filter"><span·class="pre">Filter</span></a></span></em><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><span·class="pre">None</span></span></span><a·class="headerlink"·href="#cairo.Pattern.set_filter"·title="Link·to·this·definition"></a></dt>
152 <dd><dl·class="field-list·simple">152 <dd><dl·class="field-list·simple">
153 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>153 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>
154 <dd·class="field-odd"><p><strong>filter</strong>··a·filter·describing·the·filter154 <dd·class="field-odd"><p><strong>filter</strong>··a·filter·describing·the·filter
155 to·use·for·resizing·the·pattern</p>155 to·use·for·resizing·the·pattern</p>
156 </dd>156 </dd>
157 </dl>157 </dl>
158 <p>Note·that·you·might·want·to·control·filtering·even·when·you·do·not·have158 <p>Note·that·you·might·want·to·control·filtering·even·when·you·do·not·have
31.5 KB
html2text {}
    
Offset 46, 34 lines modifiedOffset 46, 34 lines modified
46 ··············Returns:46 ··············Returns:
47 ··················a·new·_\x8M_\x8a_\x8t_\x8r_\x8i_\x8x·which·stores·a·copy·of·the·P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n?\x8’s\x8s47 ··················a·new·_\x8M_\x8a_\x8t_\x8r_\x8i_\x8x·which·stores·a·copy·of·the·P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n?\x8’s\x8s
48 ··················transformation·matrix48 ··················transformation·matrix
49 ········get_filter()··_\x8F_\x8i_\x8l_\x8t_\x8e_\x8r_\x849 ········get_filter()··_\x8F_\x8i_\x8l_\x8t_\x8e_\x8r_\x8
50 ··············Returns:50 ··············Returns:
51 ··················the·current·filter·used·for·resizing·the·pattern.51 ··················the·current·filter·used·for·resizing·the·pattern.
52 ············New·in·version·1.12.0:·Used·to·be·a·method·of·_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e_\x8P_\x8a_\x8t_\x8t_\x8e_\x8r_\x8n·before52 ············New·in·version·1.12.0:·Used·to·be·a·method·of·_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e_\x8P_\x8a_\x8t_\x8t_\x8e_\x8r_\x8n·before
53 ········set_filter(f\x8fi\x8il\x8lt\x8te\x8er\x8r:\x8:·_\x8F\x8F_\x8i\x8i_\x8l\x8l_\x8t\x8t_\x8e\x8e_\x8r\x8r)··_.N_.o_.n_.e_\x853 ········set_filter(f\x8fi\x8il\x8lt\x8te\x8er\x8r:\x8:·_\x8F\x8F_\x8i\x8i_\x8l\x8l_\x8t\x8t_\x8e\x8e_\x8r\x8r)··None_\x8
54 ··············Parameters:54 ··············Parameters:
55 ··················f\x8fi\x8il\x8lt\x8te\x8er\x8r··a·filter·describing·the·filter·to·use·for·resizing55 ··················f\x8fi\x8il\x8lt\x8te\x8er\x8r··a·filter·describing·the·filter·to·use·for·resizing
56 ··················the·pattern56 ··················the·pattern
57 ············Note·that·you·might·want·to·control·filtering·even·when·you·do·not57 ············Note·that·you·might·want·to·control·filtering·even·when·you·do·not
58 ············have·an·explicit·P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n·object,·(for·example·when·using58 ············have·an·explicit·P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n·object,·(for·example·when·using
59 ············_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8e_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8s_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e_\x8(_\x8)).·In·these·cases,·it·is·convenient·to59 ············_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8e_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8__\x8s_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e_\x8(_\x8)).·In·these·cases,·it·is·convenient·to
60 ············use·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8g_\x8e_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8(_\x8)·to·get·access·to·the·pattern·that·cairo60 ············use·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8g_\x8e_\x8t_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8(_\x8)·to·get·access·to·the·pattern·that·cairo
61 ············creates·implicitly.·For·example:61 ············creates·implicitly.·For·example:
62 ············context.set_source_surface(image,·x,·y)62 ············context.set_source_surface(image,·x,·y)
63 ············context.get_source().set_filter(cairo.FILTER_NEAREST)63 ············context.get_source().set_filter(cairo.FILTER_NEAREST)
64 ············New·in·version·1.12.0:·Used·to·be·a·method·of·_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e_\x8P_\x8a_\x8t_\x8t_\x8e_\x8r_\x8n·before64 ············New·in·version·1.12.0:·Used·to·be·a·method·of·_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e_\x8P_\x8a_\x8t_\x8t_\x8e_\x8r_\x8n·before
65 ········set_extend(e\x8ex\x8xt\x8te\x8en\x8nd\x8d:\x8:·_\x8E\x8E_\x8x\x8x_\x8t\x8t_\x8e\x8e_\x8n\x8n_\x8d\x8d)··_.N_.o_.n_.e_\x865 ········set_extend(e\x8ex\x8xt\x8te\x8en\x8nd\x8d:\x8:·_\x8E\x8E_\x8x\x8x_\x8t\x8t_\x8e\x8e_\x8n\x8n_\x8d\x8d)··None_\x8
66 ··············Parameters:66 ··············Parameters:
67 ··················e\x8ex\x8xt\x8te\x8en\x8nd\x8d··an·extend·describing·how·the·area·outside·of·the67 ··················e\x8ex\x8xt\x8te\x8en\x8nd\x8d··an·extend·describing·how·the·area·outside·of·the
68 ··················P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n·will·be·drawn68 ··················P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n·will·be·drawn
69 ············Sets·the·mode·to·be·used·for·drawing·outside·the·area·of·a·P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n.69 ············Sets·the·mode·to·be·used·for·drawing·outside·the·area·of·a·P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n.
70 ············The·default·extend·mode·is·_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8E_\x8x_\x8t_\x8e_\x8n_\x8d_\x8._\x8N_\x8O_\x8N_\x8E·for·_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e_\x8P_\x8a_\x8t_\x8t_\x8e_\x8r_\x8n·and70 ············The·default·extend·mode·is·_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8E_\x8x_\x8t_\x8e_\x8n_\x8d_\x8._\x8N_\x8O_\x8N_\x8E·for·_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e_\x8P_\x8a_\x8t_\x8t_\x8e_\x8r_\x8n·and
71 ············_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8E_\x8x_\x8t_\x8e_\x8n_\x8d_\x8._\x8P_\x8A_\x8D·for·_\x8G_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t·Patterns.71 ············_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8E_\x8x_\x8t_\x8e_\x8n_\x8d_\x8._\x8P_\x8A_\x8D·for·_\x8G_\x8r_\x8a_\x8d_\x8i_\x8e_\x8n_\x8t·Patterns.
72 ········set_matrix(m\x8ma\x8at\x8tr\x8ri\x8ix\x8x:\x8:·_\x8M\x8M_\x8a\x8a_\x8t\x8t_\x8r\x8r_\x8i\x8i_\x8x\x8x)··_.N_.o_.n_.e_\x872 ········set_matrix(m\x8ma\x8at\x8tr\x8ri\x8ix\x8x:\x8:·_\x8M\x8M_\x8a\x8a_\x8t\x8t_\x8r\x8r_\x8i\x8i_\x8x\x8x)··None_\x8
73 ··············Parameters:73 ··············Parameters:
74 ··················m\x8ma\x8at\x8tr\x8ri\x8ix\x8x··a·_\x8M_\x8a_\x8t_\x8r_\x8i_\x8x74 ··················m\x8ma\x8at\x8tr\x8ri\x8ix\x8x··a·_\x8M_\x8a_\x8t_\x8r_\x8i_\x8x
75 ············Sets·the·P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n?\x8’s\x8s·transformation·matrix·to·m\x8ma\x8at\x8tr\x8ri\x8ix\x8x.·This·matrix·is75 ············Sets·the·P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n?\x8’s\x8s·transformation·matrix·to·m\x8ma\x8at\x8tr\x8ri\x8ix\x8x.·This·matrix·is
76 ············a·transformation·from·user·space·to·pattern·space.76 ············a·transformation·from·user·space·to·pattern·space.
77 ············When·a·P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n·is·first·created·it·always·has·the·identity·matrix77 ············When·a·P\x8Pa\x8at\x8tt\x8te\x8er\x8rn\x8n·is·first·created·it·always·has·the·identity·matrix
78 ············for·its·transformation·matrix,·which·means·that·pattern·space·is78 ············for·its·transformation·matrix,·which·means·that·pattern·space·is
79 ············initially·identical·to·user·space.79 ············initially·identical·to·user·space.
14.1 KB
usr/share/doc/pycairo/html/reference/rectangle.html
    
Offset 97, 53 lines modifiedOffset 97, 53 lines modified
97 ·············97 ·············
98 ··<section·id="rectangle">98 ··<section·id="rectangle">
99 <span·id="id1"></span><h1>Rectangle<a·class="headerlink"·href="#rectangle"·title="Link·to·this·heading"></a></h1>99 <span·id="id1"></span><h1>Rectangle<a·class="headerlink"·href="#rectangle"·title="Link·to·this·heading"></a></h1>
100 <section·id="class-rectangle-tuple">100 <section·id="class-rectangle-tuple">
101 <h2>class·Rectangle(tuple)<a·class="headerlink"·href="#class-rectangle-tuple"·title="Link·to·this·heading"></a></h2>101 <h2>class·Rectangle(tuple)<a·class="headerlink"·href="#class-rectangle-tuple"·title="Link·to·this·heading"></a></h2>
102 <dl·class="py·class">102 <dl·class="py·class">
103 <dt·class="sig·sig-object·py"·id="cairo.Rectangle">103 <dt·class="sig·sig-object·py"·id="cairo.Rectangle">
104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">Rectangle</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">x</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#float"·title="(in·Python·v3.12)"><span·class="pre">float</span></a></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">y</span></span><span·class="p"><spa[·...·truncated·by·diffoscope;·len:·881,·SHA:·4f65046add6f33c7dd6ef52d9750912ae2ab16cfd8a5ac22ca5f16caf293e8e1·...·]></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Rectangle"·title="Link·to·this·definition"></a></dt>104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">Rectangle</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">x</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">y</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<em·class[·...·truncated·by·diffoscope;·len:·393,·SHA:·1bdbbe1834445a99011eca143af563102f1d0220ccba099c1f9bcfc85a235f52·...·]></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Rectangle"·title="Link·to·this·definition"></a></dt>
105 <dd><div·class="versionadded">105 <dd><div·class="versionadded">
106 <p><span·class="versionmodified·added">New·in·version·1.15:·</span>In·prior·versions·a·(float,·float,·float,·float)·tuple·was106 <p><span·class="versionmodified·added">New·in·version·1.15:·</span>In·prior·versions·a·(float,·float,·float,·float)·tuple·was
107 used·instead·of·<a·class="reference·internal"·href="#cairo.Rectangle"·title="cairo.Rectangle"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Rectangle</span></code></a>.</p>107 used·instead·of·<a·class="reference·internal"·href="#cairo.Rectangle"·title="cairo.Rectangle"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Rectangle</span></code></a>.</p>
108 </div>108 </div>
109 <p>A·data·structure·for·holding·a·rectangle.</p>109 <p>A·data·structure·for·holding·a·rectangle.</p>
110 <dl·class="py·method">110 <dl·class="py·method">
111 <dt·class="sig·sig-object·py"·id="cairo.Rectangle.__init__">111 <dt·class="sig·sig-object·py"·id="cairo.Rectangle.__init__">
112 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">x</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#float"·title="(in·Python·v3.12)"><span·class="pre">float</span></a></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">y</span></span><span·class="p"><spa[·...·truncated·by·diffoscope;·len:·1181,·SHA:·89e9b322f4947dc25c5504a24f5e3ae5e197370cfa02e23341774cfdba46b9d5·...·]></span></span><a·class="headerlink"·href="#cairo.Rectangle.__init__"·title="Link·to·this·definition"></a></dt>112 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">x</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">y</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<em·class[·...·truncated·by·diffoscope;·len:·572,·SHA:·c7837d8ad822b53f8718ee351b6b9e62a769ed95e939896d9032bae8f826a6c8·...·]></span></span><a·class="headerlink"·href="#cairo.Rectangle.__init__"·title="Link·to·this·definition"></a></dt>
113 <dd><dl·class="field-list·simple">113 <dd><dl·class="field-list·simple">
114 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>114 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>
115 <dd·class="field-odd"><ul·class="simple">115 <dd·class="field-odd"><ul·class="simple">
116 <li><p><strong>x</strong>··X·coordinate·of·the·left·side·of·the·rectangle</p></li>116 <li><p><strong>x</strong>··X·coordinate·of·the·left·side·of·the·rectangle</p></li>
117 <li><p><strong>y</strong>··Y·coordinate·of·the·the·top·side·of·the·rectangle</p></li>117 <li><p><strong>y</strong>··Y·coordinate·of·the·the·top·side·of·the·rectangle</p></li>
118 <li><p><strong>width</strong>··width·of·the·rectangle</p></li>118 <li><p><strong>width</strong>··width·of·the·rectangle</p></li>
119 <li><p><strong>height</strong>··height·of·the·rectangle</p></li>119 <li><p><strong>height</strong>··height·of·the·rectangle</p></li>
120 </ul>120 </ul>
121 </dd>121 </dd>
122 </dl>122 </dl>
123 </dd></dl>123 </dd></dl>
  
124 <dl·class="py·attribute">124 <dl·class="py·attribute">
125 <dt·class="sig·sig-object·py"·id="cairo.Rectangle.x">125 <dt·class="sig·sig-object·py"·id="cairo.Rectangle.x">
126 <span·class="sig-name·descname"><span·class="pre">x</span></span><em·class="property"><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#float"·title="(in·Python·v3.12)"><span·class="pre">float</span></a></em><em·class="property"><span·class="w">·</span><span·class="p"><span·class="pre">=</span></span><span·class="w">·</span><span·class="pre">Ellipsis</span></em><a·class="headerlink"·href="#cairo.Rectangle.x"·title="Link·to·this·definition"></a></dt>126 <span·class="sig-name·descname"><span·class="pre">x</span></span><em·class="property"><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="pre">float</span></em><em·class="property"><span·class="w">·</span><span·class="p"><span·class="pre">=</span></span><span·class="w">·</span><span·class="pre">Ellipsis</span></em><a·class="headerlink"·href="#cairo.Rectangle.x"·title="Link·to·this·definition"></a></dt>
127 <dd></dd></dl>127 <dd></dd></dl>
  
128 <dl·class="py·attribute">128 <dl·class="py·attribute">
129 <dt·class="sig·sig-object·py"·id="cairo.Rectangle.y">129 <dt·class="sig·sig-object·py"·id="cairo.Rectangle.y">
130 <span·class="sig-name·descname"><span·class="pre">y</span></span><em·class="property"><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#float"·title="(in·Python·v3.12)"><span·class="pre">float</span></a></em><em·class="property"><span·class="w">·</span><span·class="p"><span·class="pre">=</span></span><span·class="w">·</span><span·class="pre">Ellipsis</span></em><a·class="headerlink"·href="#cairo.Rectangle.y"·title="Link·to·this·definition"></a></dt>130 <span·class="sig-name·descname"><span·class="pre">y</span></span><em·class="property"><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="pre">float</span></em><em·class="property"><span·class="w">·</span><span·class="p"><span·class="pre">=</span></span><span·class="w">·</span><span·class="pre">Ellipsis</span></em><a·class="headerlink"·href="#cairo.Rectangle.y"·title="Link·to·this·definition"></a></dt>
131 <dd></dd></dl>131 <dd></dd></dl>
  
132 <dl·class="py·attribute">132 <dl·class="py·attribute">
133 <dt·class="sig·sig-object·py"·id="cairo.Rectangle.width">133 <dt·class="sig·sig-object·py"·id="cairo.Rectangle.width">
134 <span·class="sig-name·descname"><span·class="pre">width</span></span><em·class="property"><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#float"·title="(in·Python·v3.12)"><span·class="pre">float</span></a></em><em·class="property"><span·class="w">·</span><span·class="p"><span·class="pre">=</span></span><span·class="w">·</span><span·class="pre">Ellipsis</span></em><a·class="headerlink"·href="#cairo.Rectangle.width"·title="Link·to·this·definition"></a></dt>134 <span·class="sig-name·descname"><span·class="pre">width</span></span><em·class="property"><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="pre">float</span></em><em·class="property"><span·class="w">·</span><span·class="p"><span·class="pre">=</span></span><span·class="w">·</span><span·class="pre">Ellipsis</span></em><a·class="headerlink"·href="#cairo.Rectangle.width"·title="Link·to·this·definition"></a></dt>
135 <dd></dd></dl>135 <dd></dd></dl>
  
136 <dl·class="py·attribute">136 <dl·class="py·attribute">
137 <dt·class="sig·sig-object·py"·id="cairo.Rectangle.height">137 <dt·class="sig·sig-object·py"·id="cairo.Rectangle.height">
138 <span·class="sig-name·descname"><span·class="pre">height</span></span><em·class="property"><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#float"·title="(in·Python·v3.12)"><span·class="pre">float</span></a></em><em·class="property"><span·class="w">·</span><span·class="p"><span·class="pre">=</span></span><span·class="w">·</span><span·class="pre">Ellipsis</span></em><a·class="headerlink"·href="#cairo.Rectangle.height"·title="Link·to·this·definition"></a></dt>138 <span·class="sig-name·descname"><span·class="pre">height</span></span><em·class="property"><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="pre">float</span></em><em·class="property"><span·class="w">·</span><span·class="p"><span·class="pre">=</span></span><span·class="w">·</span><span·class="pre">Ellipsis</span></em><a·class="headerlink"·href="#cairo.Rectangle.height"·title="Link·to·this·definition"></a></dt>
139 <dd></dd></dl>139 <dd></dd></dl>
  
140 </dd></dl>140 </dd></dl>
  
141 </section>141 </section>
142 </section>142 </section>
  
2.39 KB
html2text {}
    
Offset 25, 24 lines modifiedOffset 25, 24 lines modified
25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o
26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e
27 ····*·Rectangle27 ····*·Rectangle
28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
29 ===============================================================================29 ===============================================================================
30 *\x8**\x8**\x8**\x8**\x8**\x8*·R\x8Re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*30 *\x8**\x8**\x8**\x8**\x8**\x8*·R\x8Re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*
31 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·R\x8Re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e(\x8(t\x8tu\x8up\x8pl\x8le\x8e)\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*31 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·R\x8Re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e(\x8(t\x8tu\x8up\x8pl\x8le\x8e)\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
32 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.Rectangle(x\x8x:\x8:·_.f.f_.l.l_.o.o_.a.a_.t.t,·y.y:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·w.wi.id.dt.th.h:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·h.he.ei.ig.gh.ht.t:.:·_.f.f_.l.l_.o.o_.a.a_.t\x8t)_\x832 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.Rectangle(x\x8x:\x8:·f.fl.lo.oa.at.t,·y.y:.:·f.fl.lo.oa.at.t,·w.wi.id.dt.th.h:.:·f.fl.lo.oa.at.t,·h.he.ei.ig.gh.ht.t:.:·f.fl.lo.oa.at\x8t)_\x8
33 ······New·in·version·1.15:·In·prior·versions·a·(float,·float,·float,·float)33 ······New·in·version·1.15:·In·prior·versions·a·(float,·float,·float,·float)
34 ······tuple·was·used·instead·of·_\x8R_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e.34 ······tuple·was·used·instead·of·_\x8R_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e.
35 ······A·data·structure·for·holding·a·rectangle.35 ······A·data·structure·for·holding·a·rectangle.
36 ········__init__(x\x8x:\x8:·_.f.f_.l.l_.o.o_.a.a_.t.t,·y.y:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·w.wi.id.dt.th.h:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·h.he.ei.ig.gh.ht.t:.:·_.f.f_.l.l_.o.o_.a.a_.t.t)··_.N_.o_.n_.e_\x836 ········__init__(x\x8x:\x8:·f.fl.lo.oa.at.t,·y.y:.:·f.fl.lo.oa.at.t,·w.wi.id.dt.th.h:.:·f.fl.lo.oa.at.t,·h.he.ei.ig.gh.ht.t:.:·f.fl.lo.oa.at.t)··None_\x8
37 ··············Parameters:37 ··············Parameters:
38 ······················*·x\x8x··X·coordinate·of·the·left·side·of·the·rectangle38 ······················*·x\x8x··X·coordinate·of·the·left·side·of·the·rectangle
39 ······················*·y\x8y··Y·coordinate·of·the·the·top·side·of·the·rectangle39 ······················*·y\x8y··Y·coordinate·of·the·the·top·side·of·the·rectangle
40 ······················*·w\x8wi\x8id\x8dt\x8th\x8h··width·of·the·rectangle40 ······················*·w\x8wi\x8id\x8dt\x8th\x8h··width·of·the·rectangle
41 ······················*·h\x8he\x8ei\x8ig\x8gh\x8ht\x8t··height·of·the·rectangle41 ······················*·h\x8he\x8ei\x8ig\x8gh\x8ht\x8t··height·of·the·rectangle
42 ········x:\x8:·_.f.f_.l.l_.o.o_.a.a_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x842 ········x:\x8:·f.fl.lo.oa.at\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
43 ········y:\x8:·_.f.f_.l.l_.o.o_.a.a_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x843 ········y:\x8:·f.fl.lo.oa.at\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
44 ········width:\x8:·_.f.f_.l.l_.o.o_.a.a_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x844 ········width:\x8:·f.fl.lo.oa.at\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
45 ········height:\x8:·_.f.f_.l.l_.o.o_.a.a_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x845 ········height:\x8:·f.fl.lo.oa.at\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
46 _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t46 _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t
47 ===============================================================================47 ===============================================================================
48 Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s.48 Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s.
37.0 KB
usr/share/doc/pycairo/html/reference/region.html
    
Offset 98, 24 lines modifiedOffset 98, 24 lines modified
98 ··<section·id="region">98 ··<section·id="region">
99 <span·id="id1"></span><h1>Region<a·class="headerlink"·href="#region"·title="Link·to·this·heading"></a></h1>99 <span·id="id1"></span><h1>Region<a·class="headerlink"·href="#region"·title="Link·to·this·heading"></a></h1>
100 <p>Region··Representing·a·pixel-aligned·area</p>100 <p>Region··Representing·a·pixel-aligned·area</p>
101 <section·id="class-region">101 <section·id="class-region">
102 <h2>class·Region()<a·class="headerlink"·href="#class-region"·title="Link·to·this·heading"></a></h2>102 <h2>class·Region()<a·class="headerlink"·href="#class-region"·title="Link·to·this·heading"></a></h2>
103 <dl·class="py·class">103 <dl·class="py·class">
104 <dt·class="sig·sig-object·py"·id="cairo.Region">104 <dt·class="sig·sig-object·py"·id="cairo.Region">
105 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">Region</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">rectangle</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="#cairo.RectangleInt"·title="cairo.RectangleInt"><span·class="pre">RectangleInt</span></a><span·class="w">·</span><span·class="p"><span·class="pre">|</span></span><span·class="w">·</span><a·class="reference·external"·href="https://docs.python.org/3/library/typing.html#typing.List"·title="(in·Python·v3.12)"><span·class="pre">List</span></a><span·class="p"><span·class="pre">[</span></span><a·class="reference·internal"·href="#cairo.RectangleInt"·title="cairo.RectangleInt"><span·class="pre">RectangleInt</span></a><span·class="p"><span·class="pre">]</span></span></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Region"·title="Link·to·this·definition"></a></dt>105 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">Region</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">rectangle</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="#cairo.RectangleInt"·title="cairo.RectangleInt"><span·class="pre">RectangleInt</span></a><span·class="w">·</span><span·class="p"><span·class="pre">|</span></span><span·class="w">·</span><span·class="pre">List</span><span·class="p"><span·class="pre">[</span></span><a·class="reference·internal"·href="#cairo.RectangleInt"·title="cairo.RectangleInt"><span·class="pre">RectangleInt</span></a><span·class="p"><span·class="pre">]</span></span></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Region"·title="Link·to·this·definition"></a></dt>
106 <dd><p>Region·is·a·simple·graphical·data·type·representing·an·area·of106 <dd><p>Region·is·a·simple·graphical·data·type·representing·an·area·of
107 integer-aligned·rectangles.·They·are·often·used·on·raster·surfaces·to·track107 integer-aligned·rectangles.·They·are·often·used·on·raster·surfaces·to·track
108 areas·of·interest,·such·as·change·or·clip·areas.</p>108 areas·of·interest,·such·as·change·or·clip·areas.</p>
109 <div·class="versionadded">109 <div·class="versionadded">
110 <p><span·class="versionmodified·added">New·in·version·1.11.0.</span></p>110 <p><span·class="versionmodified·added">New·in·version·1.11.0.</span></p>
111 </div>111 </div>
112 <dl·class="py·method">112 <dl·class="py·method">
113 <dt·class="sig·sig-object·py"·id="cairo.Region.__init__">113 <dt·class="sig·sig-object·py"·id="cairo.Region.__init__">
114 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">rectangle</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="#cairo.RectangleInt"·title="cairo.RectangleInt"><span·class="pre">RectangleInt</span></a><span·class="w">·</span><span·class="p"><span·class="pre">|</span></span><span·class="w">·</span><a·class="reference·external"·href="https://docs.python.org/3/library/typing.html#typing.List"·title="(in·Python·v3.12)"><span·class="pre">List</span></a><span·class="p"><span·class="pre">[</span></span><a·class="reference·internal"·href="#cairo.RectangleIn[·...·truncated·by·diffoscope;·len:·419,·SHA:·1d74446159581fe3532781c0f5df8145b5200065bdb29fcac61e6796b080338b·...·]></span></span><a·class="headerlink"·href="#cairo.Region.__init__"·title="Link·to·this·definition"></a></dt>114 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">rectangle</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="#cairo.RectangleInt"·title="cairo.RectangleInt"><span·class="pre">RectangleInt</span></a><span·class="w">·</span><span·class="p"><span·class="pre">|</span></span><span·class="w">·</span><span·class="pre">List</span><span·class="p"><span·class="pre">[</span></span><a·class="reference·internal"·href="#cairo.RectangleInt"·title="cairo.RectangleInt"><span·class="pre">RectangleInt</span></a><span·class="p"><span·class="pre">]</span></span></spa[·...·truncated·by·diffoscope;·len:·173,·SHA:·803c8b7f102b10ec103dbf346482d665f6d1a49dcaf4a05abd69fc4f5839f09c·...·]></span></span><a·class="headerlink"·href="#cairo.Region.__init__"·title="Link·to·this·definition"></a></dt>
115 <dd><dl·class="field-list·simple">115 <dd><dl·class="field-list·simple">
116 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>116 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>
117 <dd·class="field-odd"><p><strong>rectangle_int</strong>··a·rectangle·or·a·list·of·rectangle</p>117 <dd·class="field-odd"><p><strong>rectangle_int</strong>··a·rectangle·or·a·list·of·rectangle</p>
118 </dd>118 </dd>
119 </dl>119 </dl>
120 <p>Allocates·a·new·empty·region·object·or·a·region·object·with·the120 <p>Allocates·a·new·empty·region·object·or·a·region·object·with·the
121 containing·rectangle(s).</p>121 containing·rectangle(s).</p>
6.82 KB
html2text {}
    
Offset 26, 61 lines modifiedOffset 26, 61 lines modified
26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e
27 ····*·Region27 ····*·Region
28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
29 ===============================================================================29 ===============================================================================
30 *\x8**\x8**\x8**\x8**\x8**\x8*·R\x8Re\x8eg\x8gi\x8io\x8on\x8n_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*30 *\x8**\x8**\x8**\x8**\x8**\x8*·R\x8Re\x8eg\x8gi\x8io\x8on\x8n_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*
31 Region··Representing·a·pixel-aligned·area31 Region··Representing·a·pixel-aligned·area
32 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·R\x8Re\x8eg\x8gi\x8io\x8on\x8n(\x8()\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*32 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·R\x8Re\x8eg\x8gi\x8io\x8on\x8n(\x8()\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
33 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.Region(r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e:\x8:·_\x8R\x8R_\x8e\x8e_\x8c\x8c_\x8t\x8t_\x8a\x8a_\x8n\x8n_\x8g\x8g_\x8l\x8l_\x8e\x8e_\x8I\x8I_\x8n\x8n_\x8t\x8t·|\x8|·_.L.L_.i.i_.s.s_.t\x8t[\x8[_\x8R\x8R_\x8e\x8e_\x8c\x8c_\x8t\x8t_\x8a\x8a_\x8n\x8n_\x8g\x8g_\x8l\x8l_\x8e\x8e_\x8I\x8I_\x8n\x8n_\x8t\x8t]\x8])_\x833 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.Region(r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e:\x8:·_\x8R\x8R_\x8e\x8e_\x8c\x8c_\x8t\x8t_\x8a\x8a_\x8n\x8n_\x8g\x8g_\x8l\x8l_\x8e\x8e_\x8I\x8I_\x8n\x8n_\x8t\x8t·|\x8|·L.Li.is.st\x8t[\x8[_\x8R\x8R_\x8e\x8e_\x8c\x8c_\x8t\x8t_\x8a\x8a_\x8n\x8n_\x8g\x8g_\x8l\x8l_\x8e\x8e_\x8I\x8I_\x8n\x8n_\x8t\x8t]\x8])_\x8
34 ······Region·is·a·simple·graphical·data·type·representing·an·area·of·integer-34 ······Region·is·a·simple·graphical·data·type·representing·an·area·of·integer-
35 ······aligned·rectangles.·They·are·often·used·on·raster·surfaces·to·track·areas35 ······aligned·rectangles.·They·are·often·used·on·raster·surfaces·to·track·areas
36 ······of·interest,·such·as·change·or·clip·areas.36 ······of·interest,·such·as·change·or·clip·areas.
37 ······New·in·version·1.11.0.37 ······New·in·version·1.11.0.
38 ········__init__(r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e:\x8:·_\x8R\x8R_\x8e\x8e_\x8c\x8c_\x8t\x8t_\x8a\x8a_\x8n\x8n_\x8g\x8g_\x8l\x8l_\x8e\x8e_\x8I\x8I_\x8n\x8n_\x8t\x8t·|\x8|·_.L.L_.i.i_.s.s_.t.t[.[_.R.R_.e.e_.c.c_.t.t_.a.a_.n.n_.g.g_.l.l_.e.e_.I.I_.n.n_.t.t].])··_.N_.o_.n_.e_\x838 ········__init__(r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e:\x8:·_\x8R\x8R_\x8e\x8e_\x8c\x8c_\x8t\x8t_\x8a\x8a_\x8n\x8n_\x8g\x8g_\x8l\x8l_\x8e\x8e_\x8I\x8I_\x8n\x8n_\x8t\x8t·|\x8|·L.Li.is.st.t[.[_.R.R_.e.e_.c.c_.t.t_.a.a_.n.n_.g.g_.l.l_.e.e_.I.I_.n.n_.t.t].])··None_\x8
39 ··············Parameters:39 ··············Parameters:
40 ··················r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e_\x8_i\x8in\x8nt\x8t··a·rectangle·or·a·list·of·rectangle40 ··················r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e_\x8_i\x8in\x8nt\x8t··a·rectangle·or·a·list·of·rectangle
41 ············Allocates·a·new·empty·region·object·or·a·region·object·with·the41 ············Allocates·a·new·empty·region·object·or·a·region·object·with·the
42 ············containing·rectangle(s).42 ············containing·rectangle(s).
43 ········copy()··_\x8R_\x8e_\x8g_\x8i_\x8o_\x8n_\x843 ········copy()··_\x8R_\x8e_\x8g_\x8i_\x8o_\x8n_\x8
44 ··············Returns:44 ··············Returns:
45 ··················A·newly·allocated·_\x8R_\x8e_\x8g_\x8i_\x8o_\x8n.45 ··················A·newly·allocated·_\x8R_\x8e_\x8g_\x8i_\x8o_\x8n.
46 ············Allocates·a·new·R\x8Re\x8eg\x8gi\x8io\x8on\x8n·object·copying·the·area·from·original.46 ············Allocates·a·new·R\x8Re\x8eg\x8gi\x8io\x8on\x8n·object·copying·the·area·from·original.
47 ········get_extents()··_\x8R_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e_\x8I_\x8n_\x8t_\x847 ········get_extents()··_\x8R_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e_\x8I_\x8n_\x8t_\x8
48 ··············Returns:48 ··············Returns:
49 ··················The·bounding·rectangle·of·region49 ··················The·bounding·rectangle·of·region
50 ········num_rectangles()··_.i_.n_.t_\x850 ········num_rectangles()··int_\x8
51 ··············Returns:51 ··············Returns:
52 ··················The·number·of·rectangles·contained·in·region52 ··················The·number·of·rectangles·contained·in·region
53 ········get_rectangle(n\x8nt\x8th\x8h:\x8:·_.i.i_.n.n_.t\x8t)··_\x8R_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e_\x8I_\x8n_\x8t_\x853 ········get_rectangle(n\x8nt\x8th\x8h:\x8:·i.in.nt\x8t)··_\x8R_\x8e_\x8c_\x8t_\x8a_\x8n_\x8g_\x8l_\x8e_\x8I_\x8n_\x8t_\x8
54 ··············Parameters:54 ··············Parameters:
55 ··················n\x8nt\x8th\x8h··a·number·indicating·which·rectangle·should·be·returned55 ··················n\x8nt\x8th\x8h··a·number·indicating·which·rectangle·should·be·returned
56 ··············Returns:56 ··············Returns:
57 ··················The·n\x8nt\x8th\x8h·rectangle·from·the·region57 ··················The·n\x8nt\x8th\x8h·rectangle·from·the·region
58 ········is_empty()··_.b_.o_.o_.l_\x858 ········is_empty()··bool_\x8
59 ··············Returns:59 ··············Returns:
60 ··················Whether·region·is·empty60 ··················Whether·region·is·empty
61 ········contains_point(x\x8x:\x8:·_.i.i_.n.n_.t.t,·y.y:.:·_.i.i_.n.n_.t.t)··_.b_.o_.o_.l_\x861 ········contains_point(x\x8x:\x8:·i.in.nt.t,·y.y:.:·i.in.nt.t)··bool_\x8
62 ··············Parameters:62 ··············Parameters:
63 ······················*·x\x8x··The·x·coordinate·of·a·point63 ······················*·x\x8x··The·x·coordinate·of·a·point
64 ······················*·y\x8y··The·y·coordinate·of·a·point64 ······················*·y\x8y··The·y·coordinate·of·a·point
65 ··············Returns:65 ··············Returns:
66 ··················Whether·(x·,·y)·is·contained·in·the·region66 ··················Whether·(x·,·y)·is·contained·in·the·region
67 ········contains_rectangle(r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e:\x8:·_\x8R\x8R_\x8e\x8e_\x8c\x8c_\x8t\x8t_\x8a\x8a_\x8n\x8n_\x8g\x8g_\x8l\x8l_\x8e\x8e_\x8I\x8I_\x8n\x8n_\x8t\x8t)··_\x8R_\x8e_\x8g_\x8i_\x8o_\x8n_\x8O_\x8v_\x8e_\x8r_\x8l_\x8a_\x8p_\x867 ········contains_rectangle(r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e:\x8:·_\x8R\x8R_\x8e\x8e_\x8c\x8c_\x8t\x8t_\x8a\x8a_\x8n\x8n_\x8g\x8g_\x8l\x8l_\x8e\x8e_\x8I\x8I_\x8n\x8n_\x8t\x8t)··_\x8R_\x8e_\x8g_\x8i_\x8o_\x8n_\x8O_\x8v_\x8e_\x8r_\x8l_\x8a_\x8p_\x8
68 ··············Parameters:68 ··············Parameters:
69 ··················r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e··a·region69 ··················r\x8re\x8ec\x8ct\x8ta\x8an\x8ng\x8gl\x8le\x8e··a·region
70 ··············Returns:70 ··············Returns:
71 ··················region·overlap71 ··················region·overlap
72 ············Checks·whether·rectangle·is·inside,·outside·or·partially·contained72 ············Checks·whether·rectangle·is·inside,·outside·or·partially·contained
73 ············in·region73 ············in·region
74 ········equal(r\x8re\x8eg\x8gi\x8io\x8on\x8n:\x8:·_\x8R\x8R_\x8e\x8e_\x8g\x8g_\x8i\x8i_\x8o\x8o_\x8n\x8n)··_.b_.o_.o_.l_\x874 ········equal(r\x8re\x8eg\x8gi\x8io\x8on\x8n:\x8:·_\x8R\x8R_\x8e\x8e_\x8g\x8g_\x8i\x8i_\x8o\x8o_\x8n\x8n)··bool_\x8
75 ··············Parameters:75 ··············Parameters:
76 ··················r\x8re\x8eg\x8gi\x8io\x8on\x8n··a·region76 ··················r\x8re\x8eg\x8gi\x8io\x8on\x8n··a·region
77 ··············Returns:77 ··············Returns:
78 ··················Whether·both·regions·contained·the·same·coverage78 ··················Whether·both·regions·contained·the·same·coverage
79 ········translate(d\x8dx\x8x:\x8:·_.i.i_.n.n_.t.t,·d.dy.y:.:·_.i.i_.n.n_.t.t)··_.N_.o_.n_.e_\x879 ········translate(d\x8dx\x8x:\x8:·i.in.nt.t,·d.dy.y:.:·i.in.nt.t)··None_\x8
80 ··············Parameters:80 ··············Parameters:
81 ······················*·d\x8dx\x8x··Amount·to·translate·in·the·x·direction81 ······················*·d\x8dx\x8x··Amount·to·translate·in·the·x·direction
82 ······················*·d\x8dy\x8y··Amount·to·translate·in·the·y·direction82 ······················*·d\x8dy\x8y··Amount·to·translate·in·the·y·direction
83 ············Translates·region·by·(dx·,·dy·).83 ············Translates·region·by·(dx·,·dy·).
84 ········intersect(o\x8ot\x8th\x8he\x8er\x8r:\x8:·_\x8R\x8R_\x8e\x8e_\x8g\x8g_\x8i\x8i_\x8o\x8o_\x8n\x8n·|\x8|·_\x8R\x8R_\x8e\x8e_\x8c\x8c_\x8t\x8t_\x8a\x8a_\x8n\x8n_\x8g\x8g_\x8l\x8l_\x8e\x8e_\x8I\x8I_\x8n\x8n_\x8t\x8t)··_\x8R_\x8e_\x8g_\x8i_\x8o_\x8n_\x884 ········intersect(o\x8ot\x8th\x8he\x8er\x8r:\x8:·_\x8R\x8R_\x8e\x8e_\x8g\x8g_\x8i\x8i_\x8o\x8o_\x8n\x8n·|\x8|·_\x8R\x8R_\x8e\x8e_\x8c\x8c_\x8t\x8t_\x8a\x8a_\x8n\x8n_\x8g\x8g_\x8l\x8l_\x8e\x8e_\x8I\x8I_\x8n\x8n_\x8t\x8t)··_\x8R_\x8e_\x8g_\x8i_\x8o_\x8n_\x8
85 ··············Parameters:85 ··············Parameters:
86 ··················o\x8ot\x8th\x8he\x8er\x8r··region·or·rectangle86 ··················o\x8ot\x8th\x8he\x8er\x8r··region·or·rectangle
263 KB
usr/share/doc/pycairo/html/reference/surfaces.html
    
Offset 127, 28 lines modifiedOffset 127, 28 lines modified
127 <dl·class="py·method">127 <dl·class="py·method">
128 <dt·class="sig·sig-object·py"·id="cairo.Surface.__init__">128 <dt·class="sig·sig-object·py"·id="cairo.Surface.__init__">
129 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Surface.__init__"·title="Link·to·this·definition"></a></dt>129 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.Surface.__init__"·title="Link·to·this·definition"></a></dt>
130 <dd></dd></dl>130 <dd></dd></dl>
  
131 <dl·class="py·method">131 <dl·class="py·method">
132 <dt·class="sig·sig-object·py"·id="cairo.Surface.copy_page">132 <dt·class="sig·sig-object·py"·id="cairo.Surface.copy_page">
133 <span·class="sig-name·descname"><span·class="pre">copy_page</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·external"·href="https://docs.python.org/3/library/constants.html#None"·title="(in·Python·v3.12)"><span·class="pre">None</span></a></span></span><a·class="headerlink"·href="#cairo.Surface.copy_page"·title="Link·to·this·definition"></a></dt>133 <span·class="sig-name·descname"><span·class="pre">copy_page</span></span><span·class="sig-paren">(</span><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><span·class="pre">None</span></span></span><a·class="headerlink"·href="#cairo.Surface.copy_page"·title="Link·to·this·definition"></a></dt>
134 <dd><p>Emits·the·current·page·for·backends·that·support·multiple·pages,·but134 <dd><p>Emits·the·current·page·for·backends·that·support·multiple·pages,·but
135 doesn’t·clear·it,·so·that·the·contents·of·the·current·page·will·be135 doesn’t·clear·it,·so·that·the·contents·of·the·current·page·will·be
136 retained·for·the·next·page.··Use·<a·class="reference·internal"·href="#cairo.Surface.show_page"·title="cairo.Surface.show_page"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">show_page()</span></code></a>·if·you·want·to·get·an136 retained·for·the·next·page.··Use·<a·class="reference·internal"·href="#cairo.Surface.show_page"·title="cairo.Surface.show_page"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">show_page()</span></code></a>·if·you·want·to·get·an
137 empty·page·after·the·emission.</p>137 empty·page·after·the·emission.</p>
138 <p><a·class="reference·internal"·href="context.html#cairo.Context.copy_page"·title="cairo.Context.copy_page"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.copy_page()</span></code></a>·is·a·convenience·function·for·this.</p>138 <p><a·class="reference·internal"·href="context.html#cairo.Context.copy_page"·title="cairo.Context.copy_page"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.copy_page()</span></code></a>·is·a·convenience·function·for·this.</p>
139 <div·class="versionadded">139 <div·class="versionadded">
140 <p><span·class="versionmodified·added">New·in·version·1.6.</span></p>140 <p><span·class="versionmodified·added">New·in·version·1.6.</span></p>
141 </div>141 </div>
142 </dd></dl>142 </dd></dl>
  
143 <dl·class="py·method">143 <dl·class="py·method">
144 <dt·class="sig·sig-object·py"·id="cairo.Surface.create_for_rectangle">144 <dt·class="sig·sig-object·py"·id="cairo.Surface.create_for_rectangle">
145 <span·class="sig-name·descname"><span·class="pre">create_for_rectangle</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">x</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#float"·title="(in·Python·v3.12)"><span·class="pre">float</span></a></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">y</span></span><span·class="p"><spa[·...·truncated·by·diffoscope;·len:·881,·SHA:·4f65046add6f33c7dd6ef52d9750912ae2ab16cfd8a5ac22ca5f16caf293e8e1·...·]></span></em><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·internal"·href="#cairo.Surface"·title="cairo.Surface"><span·class="pre">Surface</span></a></span></span><a·class="headerlink"·href="#cairo.Surface.create_for_rectangle"·title="Link·to·this·definition"></a></dt>145 <span·class="sig-name·descname"><span·class="pre">create_for_rectangle</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">x</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">y</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<em·class[·...·truncated·by·diffoscope;·len:·393,·SHA:·1bdbbe1834445a99011eca143af563102f1d0220ccba099c1f9bcfc85a235f52·...·]></span></em><span·class="sig-paren">)</span>·<span·class="sig-return"><span·class="sig-return-icon">&#x2192;</span>·<span·class="sig-return-typehint"><a·class="reference·internal"·href="#cairo.Surface"·title="cairo.Surface"><span·class="pre">Surface</span></a></span></span><a·class="headerlink"·href="#cairo.Surface.create_for_rectangle"·title="Link·to·this·definition"></a></dt>
146 <dd><dl·class="field-list·simple">146 <dd><dl·class="field-list·simple">
147 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>147 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>
148 <dd·class="field-odd"><ul·class="simple">148 <dd·class="field-odd"><ul·class="simple">
149 <li><p><strong>x</strong>··the·x-origin·of·the·sub-surface·from·the·top-left·of·the149 <li><p><strong>x</strong>··the·x-origin·of·the·sub-surface·from·the·top-left·of·the
150 target·surface·(in·device-space·units)</p></li>150 target·surface·(in·device-space·units)</p></li>
151 <li><p><strong>y</strong>··the·y-origin·of·the·sub-surface·from·the·top-left·of·the151 <li><p><strong>y</strong>··the·y-origin·of·the·sub-surface·from·the·top-left·of·the
152 target·surface·(in·device-space·units)</p></li>152 target·surface·(in·device-space·units)</p></li>
60.9 KB
html2text {}
    
Offset 43, 22 lines modifiedOffset 43, 22 lines modified
43 ······with·cairo.SVGSurface("example.svg",·200,·200)·as·surface:43 ······with·cairo.SVGSurface("example.svg",·200,·200)·as·surface:
44 ··········pass44 ··········pass
  
45 ······#·surface.unmap_image(image_surface)·will·be·called·on·__exit__45 ······#·surface.unmap_image(image_surface)·will·be·called·on·__exit__
46 ······with·surface.map_to_image(None)·as·image_surface:46 ······with·surface.map_to_image(None)·as·image_surface:
47 ··········pass47 ··········pass
48 ········__init__()_\x848 ········__init__()_\x8
49 ········copy_page()··_.N_.o_.n_.e_\x849 ········copy_page()··None_\x8
50 ············Emits·the·current·page·for·backends·that·support·multiple·pages,50 ············Emits·the·current·page·for·backends·that·support·multiple·pages,
51 ············but·doesn’t·clear·it,·so·that·the·contents·of·the·current·page·will51 ············but·doesn’t·clear·it,·so·that·the·contents·of·the·current·page·will
52 ············be·retained·for·the·next·page.·Use·_\x8s_\x8h_\x8o_\x8w_\x8__\x8p_\x8a_\x8g_\x8e_\x8(_\x8)·if·you·want·to·get52 ············be·retained·for·the·next·page.·Use·_\x8s_\x8h_\x8o_\x8w_\x8__\x8p_\x8a_\x8g_\x8e_\x8(_\x8)·if·you·want·to·get
53 ············an·empty·page·after·the·emission.53 ············an·empty·page·after·the·emission.
54 ············_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8o_\x8p_\x8y_\x8__\x8p_\x8a_\x8g_\x8e_\x8(_\x8)·is·a·convenience·function·for·this.54 ············_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8c_\x8o_\x8p_\x8y_\x8__\x8p_\x8a_\x8g_\x8e_\x8(_\x8)·is·a·convenience·function·for·this.
55 ············New·in·version·1.6.55 ············New·in·version·1.6.
56 ········create_for_rectangle(x\x8x:\x8:·_.f.f_.l.l_.o.o_.a.a_.t.t,·y.y:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·w.wi.id.dt.th.h:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·h.he.ei.ig.gh.ht.t:.:·_.f.f_.l.l_.o.o_.a.a_.t\x8t)·56 ········create_for_rectangle(x\x8x:\x8:·f.fl.lo.oa.at.t,·y.y:.:·f.fl.lo.oa.at.t,·w.wi.id.dt.th.h:.:·f.fl.lo.oa.at.t,·h.he.ei.ig.gh.ht.t:.:·f.fl.lo.oa.at\x8t)·
57 ········_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e_\x857 ········_\x8S_\x8u_\x8r_\x8f_\x8a_\x8c_\x8e_\x8
58 ··············Parameters:58 ··············Parameters:
59 ······················*·x\x8x··the·x-origin·of·the·sub-surface·from·the·top-left59 ······················*·x\x8x··the·x-origin·of·the·sub-surface·from·the·top-left
60 ························of·the·target·surface·(in·device-space·units)60 ························of·the·target·surface·(in·device-space·units)
61 ······················*·y\x8y··the·y-origin·of·the·sub-surface·from·the·top-left61 ······················*·y\x8y··the·y-origin·of·the·sub-surface·from·the·top-left
62 ························of·the·target·surface·(in·device-space·units)62 ························of·the·target·surface·(in·device-space·units)
63 ······················*·w\x8wi\x8id\x8dt\x8th\x8h··width·of·the·sub-surface·(in·device-space63 ······················*·w\x8wi\x8id\x8dt\x8th\x8h··width·of·the·sub-surface·(in·device-space
86.7 KB
usr/share/doc/pycairo/html/reference/text.html
    
Offset 147, 22 lines modifiedOffset 147, 22 lines modified
147 </div>147 </div>
148 </div></blockquote>148 </div></blockquote>
149 </section>149 </section>
150 <section·id="class-toyfontface-fontface">150 <section·id="class-toyfontface-fontface">
151 <h2>class·ToyFontFace(<a·class="reference·internal"·href="#cairo.FontFace"·title="cairo.FontFace"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FontFace</span></code></a>)<a·class="headerlink"·href="#class-toyfontface-fontface"·title="Link·to·this·heading"></a></h2>151 <h2>class·ToyFontFace(<a·class="reference·internal"·href="#cairo.FontFace"·title="cairo.FontFace"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FontFace</span></code></a>)<a·class="headerlink"·href="#class-toyfontface-fontface"·title="Link·to·this·heading"></a></h2>
152 <dl·class="py·class">152 <dl·class="py·class">
153 <dt·class="sig·sig-object·py"·id="cairo.ToyFontFace">153 <dt·class="sig·sig-object·py"·id="cairo.ToyFontFace">
154 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">ToyFontFace</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">family</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/stdtypes.html#str"·title="(in·Python·v3.12)"><span·class="pre">str</span></a></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">slant</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="enums.html#cairo.FontSlant"·title="cairo.FontSlant"><span·class="pre">FontSlant</span></a></span><span·class="w">·</span><span·class="o"><span·class="pre">=</span></span><span·class="w">·</span><span·class="default_value"><span·class="pre">Ellipsis</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">weight</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="enums.html#cairo.FontWeight"·title="cairo.FontWeight"><span·class="pre">FontWeight</span></a></span><span·class="w">·</span><span·class="o"><span·class="pre">=</span></span><span·class="w">·</span><span·class="default_value"><span·class="pre">Ellipsis</span></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.ToyFontFace"·title="Link·to·this·definition"></a></dt>154 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">ToyFontFace</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">family</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">str</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">slant</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="enums.html#cairo.FontSlant"·title="cairo.FontSlant"><span·class="pre">FontSlant</span></a></span><span·class="w">·</span><span·class="o"><span·class="pre">=</span></span><span·class="w">·</span><span·class="default_value"><span·class="pre">Ellipsis</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">weight</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="enums.html#cairo.FontWeight"·title="cairo.FontWeight"><span·class="pre">FontWeight</span></a></span><span·class="w">·</span><span·class="o"><span·class="pre">=</span></span><span·class="w">·</span><span·class="default_value"><span·class="pre">Ellipsis</span></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.ToyFontFace"·title="Link·to·this·definition"></a></dt>
155 <dd><p>The·<em>cairo.ToyFontFace</em>·class·can·be·used·instead·of·<a·class="reference·internal"·href="context.html#cairo.Context.select_font_face"·title="cairo.Context.select_font_face"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.select_font_face()</span></code></a>·to·create·a·toy·font·independently·of·a·context.</p>155 <dd><p>The·<em>cairo.ToyFontFace</em>·class·can·be·used·instead·of·<a·class="reference·internal"·href="context.html#cairo.Context.select_font_face"·title="cairo.Context.select_font_face"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.select_font_face()</span></code></a>·to·create·a·toy·font·independently·of·a·context.</p>
156 <div·class="versionadded">156 <div·class="versionadded">
157 <p><span·class="versionmodified·added">New·in·version·1.8.4.</span></p>157 <p><span·class="versionmodified·added">New·in·version·1.8.4.</span></p>
158 </div>158 </div>
159 <dl·class="py·method">159 <dl·class="py·method">
160 <dt·class="sig·sig-object·py"·id="cairo.ToyFontFace.__init__">160 <dt·class="sig·sig-object·py"·id="cairo.ToyFontFace.__init__">
161 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">family</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/stdtypes.html#str"·title="(in·Python·v3.12)"><span·class="pre">str</span></a></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">slant</span></span><span·class="p"><span[·...·truncated·by·diffoscope;·len:·1131,·SHA:·936449f38e6772339f83fddcc8a0ba1da956d918bb8d7df74773d7f119a8a60f·...·]></span></span><a·class="headerlink"·href="#cairo.ToyFontFace.__init__"·title="Link·to·this·definition"></a></dt>161 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">family</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">str</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">slant</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·internal"·href="enums.html#cair[·...·truncated·by·diffoscope;·len:·891,·SHA:·2c7ada43d5e45402e192e4c535f7d502bed0dc125fc11142f087c94a47ce63ad·...·]></span></span><a·class="headerlink"·href="#cairo.ToyFontFace.__init__"·title="Link·to·this·definition"></a></dt>
162 <dd><dl·class="field-list·simple">162 <dd><dl·class="field-list·simple">
163 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>163 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>
164 <dd·class="field-odd"><ul·class="simple">164 <dd·class="field-odd"><ul·class="simple">
165 <li><p><strong>family</strong>··a·font·family·name</p></li>165 <li><p><strong>family</strong>··a·font·family·name</p></li>
166 <li><p><strong>slant</strong>··the·font·slant·of·the·font,166 <li><p><strong>slant</strong>··the·font·slant·of·the·font,
167 defaults·to·<a·class="reference·internal"·href="enums.html#cairo.FontSlant.NORMAL"·title="cairo.FontSlant.NORMAL"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">cairo.FontSlant.NORMAL</span></code></a>.</p></li>167 defaults·to·<a·class="reference·internal"·href="enums.html#cairo.FontSlant.NORMAL"·title="cairo.FontSlant.NORMAL"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">cairo.FontSlant.NORMAL</span></code></a>.</p></li>
168 <li><p><strong>weight</strong>··the·font·weight·of·the·font,168 <li><p><strong>weight</strong>··the·font·weight·of·the·font,
21.2 KB
html2text {}
    
Offset 63, 37 lines modifiedOffset 63, 37 lines modified
63 systems,·but·can·be·used·on·other·platforms·too.63 systems,·but·can·be·used·on·other·platforms·too.
64 ·····Note64 ·····Note
65 ·····FreeType·Fonts·are·not·implemented·in·pycairo·because·there·is·no65 ·····FreeType·Fonts·are·not·implemented·in·pycairo·because·there·is·no
66 ·····open·source·Python·bindings·to·FreeType·(and·fontconfig)·that66 ·····open·source·Python·bindings·to·FreeType·(and·fontconfig)·that
67 ·····provides·a·C·API.·This·a·possible·project·idea·for·anyone·interested67 ·····provides·a·C·API.·This·a·possible·project·idea·for·anyone·interested
68 ·····in·adding·FreeType·support·to·pycairo.68 ·····in·adding·FreeType·support·to·pycairo.
69 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·T\x8To\x8oy\x8yF\x8Fo\x8on\x8nt\x8tF\x8Fa\x8ac\x8ce\x8e(\x8(_\x8F\x8F_\x8o\x8o_\x8n\x8n_\x8t\x8t_\x8F\x8F_\x8a\x8a_\x8c\x8c_\x8e\x8e)\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*69 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·T\x8To\x8oy\x8yF\x8Fo\x8on\x8nt\x8tF\x8Fa\x8ac\x8ce\x8e(\x8(_\x8F\x8F_\x8o\x8o_\x8n\x8n_\x8t\x8t_\x8F\x8F_\x8a\x8a_\x8c\x8c_\x8e\x8e)\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
70 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.ToyFontFace(f\x8fa\x8am\x8mi\x8il\x8ly\x8y:\x8:·_.s.s_.t.t_.r\x8r,·s\x8sl\x8la\x8an\x8nt\x8t:\x8:·_\x8F\x8F_\x8o\x8o_\x8n\x8n_\x8t\x8t_\x8S\x8S_\x8l\x8l_\x8a\x8a_\x8n\x8n_\x8t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s,·w\x8we\x8ei\x8ig\x8gh\x8ht\x8t:\x8:70 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.ToyFontFace(f\x8fa\x8am\x8mi\x8il\x8ly\x8y:\x8:·s.st.tr\x8r,·s\x8sl\x8la\x8an\x8nt\x8t:\x8:·_\x8F\x8F_\x8o\x8o_\x8n\x8n_\x8t\x8t_\x8S\x8S_\x8l\x8l_\x8a\x8a_\x8n\x8n_\x8t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s,·w\x8we\x8ei\x8ig\x8gh\x8ht\x8t:\x8:
71 ··_\x8F\x8F_\x8o\x8o_\x8n\x8n_\x8t\x8t_\x8W\x8W_\x8e\x8e_\x8i\x8i_\x8g\x8g_\x8h\x8h_\x8t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s)_\x871 ··_\x8F\x8F_\x8o\x8o_\x8n\x8n_\x8t\x8t_\x8W\x8W_\x8e\x8e_\x8i\x8i_\x8g\x8g_\x8h\x8h_\x8t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s)_\x8
72 ······The·c\x8ca\x8ai\x8ir\x8ro\x8o.\x8.T\x8To\x8oy\x8yF\x8Fo\x8on\x8nt\x8tF\x8Fa\x8ac\x8ce\x8e·class·can·be·used·instead·of72 ······The·c\x8ca\x8ai\x8ir\x8ro\x8o.\x8.T\x8To\x8oy\x8yF\x8Fo\x8on\x8nt\x8tF\x8Fa\x8ac\x8ce\x8e·class·can·be·used·instead·of
73 ······_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8e_\x8l_\x8e_\x8c_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8a_\x8c_\x8e_\x8(_\x8)·to·create·a·toy·font·independently·of·a73 ······_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8e_\x8l_\x8e_\x8c_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8a_\x8c_\x8e_\x8(_\x8)·to·create·a·toy·font·independently·of·a
74 ······context.74 ······context.
75 ······New·in·version·1.8.4.75 ······New·in·version·1.8.4.
76 ········__init__(f\x8fa\x8am\x8mi\x8il\x8ly\x8y:\x8:·_.s.s_.t.t_.r\x8r,·s\x8sl\x8la\x8an\x8nt\x8t:\x8:·_\x8F\x8F_\x8o\x8o_\x8n\x8n_\x8t\x8t_\x8S\x8S_\x8l\x8l_\x8a\x8a_\x8n\x8n_\x8t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s,·w\x8we\x8ei\x8ig\x8gh\x8ht\x8t:\x8:·_\x8F\x8F_\x8o\x8o_\x8n\x8n_\x8t\x8t_\x8W\x8W_\x8e\x8e_\x8i\x8i_\x8g\x8g_\x8h\x8h_\x8t\x8t·=\x8=76 ········__init__(f\x8fa\x8am\x8mi\x8il\x8ly\x8y:\x8:·s.st.tr\x8r,·s\x8sl\x8la\x8an\x8nt\x8t:\x8:·_\x8F\x8F_\x8o\x8o_\x8n\x8n_\x8t\x8t_\x8S\x8S_\x8l\x8l_\x8a\x8a_\x8n\x8n_\x8t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s,·w\x8we\x8ei\x8ig\x8gh\x8ht\x8t:\x8:·_\x8F\x8F_\x8o\x8o_\x8n\x8n_\x8t\x8t_\x8W\x8W_\x8e\x8e_\x8i\x8i_\x8g\x8g_\x8h\x8h_\x8t\x8t·=\x8=
77 ········E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s)··_.N_.o_.n_.e_\x877 ········E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s)··None_\x8
78 ··············Parameters:78 ··············Parameters:
79 ······················*·f\x8fa\x8am\x8mi\x8il\x8ly\x8y··a·font·family·name79 ······················*·f\x8fa\x8am\x8mi\x8il\x8ly\x8y··a·font·family·name
80 ······················*·s\x8sl\x8la\x8an\x8nt\x8t··the·font·slant·of·the·font,·defaults·to80 ······················*·s\x8sl\x8la\x8an\x8nt\x8t··the·font·slant·of·the·font,·defaults·to
81 ························_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8F_\x8o_\x8n_\x8t_\x8S_\x8l_\x8a_\x8n_\x8t_\x8._\x8N_\x8O_\x8R_\x8M_\x8A_\x8L.81 ························_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8F_\x8o_\x8n_\x8t_\x8S_\x8l_\x8a_\x8n_\x8t_\x8._\x8N_\x8O_\x8R_\x8M_\x8A_\x8L.
82 ······················*·w\x8we\x8ei\x8ig\x8gh\x8ht\x8t··the·font·weight·of·the·font,·defaults·to82 ······················*·w\x8we\x8ei\x8ig\x8gh\x8ht\x8t··the·font·weight·of·the·font,·defaults·to
83 ························_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8F_\x8o_\x8n_\x8t_\x8W_\x8e_\x8i_\x8g_\x8h_\x8t_\x8._\x8N_\x8O_\x8R_\x8M_\x8A_\x8L.83 ························_\x8c_\x8a_\x8i_\x8r_\x8o_\x8._\x8F_\x8o_\x8n_\x8t_\x8W_\x8e_\x8i_\x8g_\x8h_\x8t_\x8._\x8N_\x8O_\x8R_\x8M_\x8A_\x8L.
84 ············Creates·a·T\x8To\x8oy\x8yF\x8Fo\x8on\x8nt\x8tF\x8Fa\x8ac\x8ce\x8e·from·a·triplet·of·family,·slant,·and·weight.84 ············Creates·a·T\x8To\x8oy\x8yF\x8Fo\x8on\x8nt\x8tF\x8Fa\x8ac\x8ce\x8e·from·a·triplet·of·family,·slant,·and·weight.
85 ············These·font·faces·are·used·in·implementation·of·the·the·“toy”·font85 ············These·font·faces·are·used·in·implementation·of·the·the·“toy”·font
86 ············API.86 ············API.
87 ············If·family·is·the·zero-length·string·“”,·the·platform-specific87 ············If·family·is·the·zero-length·string·“”,·the·platform-specific
88 ············default·family·is·assumed.·The·default·family·then·can·be·queried88 ············default·family·is·assumed.·The·default·family·then·can·be·queried
89 ············using·_\x8g_\x8e_\x8t_\x8__\x8f_\x8a_\x8m_\x8i_\x8l_\x8y_\x8(_\x8).89 ············using·_\x8g_\x8e_\x8t_\x8__\x8f_\x8a_\x8m_\x8i_\x8l_\x8y_\x8(_\x8).
90 ············The·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8e_\x8l_\x8e_\x8c_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8a_\x8c_\x8e_\x8(_\x8)·method·uses·this·to·create·font90 ············The·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8e_\x8l_\x8e_\x8c_\x8t_\x8__\x8f_\x8o_\x8n_\x8t_\x8__\x8f_\x8a_\x8c_\x8e_\x8(_\x8)·method·uses·this·to·create·font
91 ············faces.·See·that·function·for·limitations·of·toy·font·faces.91 ············faces.·See·that·function·for·limitations·of·toy·font·faces.
92 ········get_family()··_.s_.t_.r_\x892 ········get_family()··str_\x8
93 ··············Returns:93 ··············Returns:
94 ··················the·family·name·of·a·toy·font94 ··················the·family·name·of·a·toy·font
95 ············New·in·version·1.8.4.95 ············New·in·version·1.8.4.
96 ········get_slant()··_\x8F_\x8o_\x8n_\x8t_\x8S_\x8l_\x8a_\x8n_\x8t_\x896 ········get_slant()··_\x8F_\x8o_\x8n_\x8t_\x8S_\x8l_\x8a_\x8n_\x8t_\x8
97 ··············Returns:97 ··············Returns:
98 ··················the·font·slant·value98 ··················the·font·slant·value
99 ············New·in·version·1.8.4.99 ············New·in·version·1.8.4.
10.5 KB
usr/share/doc/pycairo/html/reference/textcluster.html
    
Offset 97, 15 lines modifiedOffset 97, 15 lines modified
97 ·············97 ·············
98 ··<section·id="text-cluster">98 ··<section·id="text-cluster">
99 <span·id="textcluster"></span><h1>Text·Cluster<a·class="headerlink"·href="#text-cluster"·title="Link·to·this·heading"></a></h1>99 <span·id="textcluster"></span><h1>Text·Cluster<a·class="headerlink"·href="#text-cluster"·title="Link·to·this·heading"></a></h1>
100 <section·id="class-textcluster-tuple">100 <section·id="class-textcluster-tuple">
101 <h2>class·TextCluster(tuple)<a·class="headerlink"·href="#class-textcluster-tuple"·title="Link·to·this·heading"></a></h2>101 <h2>class·TextCluster(tuple)<a·class="headerlink"·href="#class-textcluster-tuple"·title="Link·to·this·heading"></a></h2>
102 <dl·class="py·class">102 <dl·class="py·class">
103 <dt·class="sig·sig-object·py"·id="cairo.TextCluster">103 <dt·class="sig·sig-object·py"·id="cairo.TextCluster">
104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">TextCluster</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">num_bytes</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#int"·title="(in·Python·v3.12)"><span·class="pre">int</span></a></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">num_glyphs</span></span><span·class="p"[·...·truncated·by·diffoscope;·len:·221,·SHA:·4921a8d3419ff6c56a68238b26661a156674dcafdbbdc2f41a57ff45ffba1f19·...·]></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.TextCluster"·title="Link·to·this·definition"></a></dt>104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">TextCluster</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">num_bytes</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">int</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">num_glyphs</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">int</span></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.TextCluster"·title="Link·to·this·definition"></a></dt>
105 <dd><div·class="versionadded">105 <dd><div·class="versionadded">
106 <p><span·class="versionmodified·added">New·in·version·1.15.</span></p>106 <p><span·class="versionmodified·added">New·in·version·1.15.</span></p>
107 </div>107 </div>
108 <p>The·<a·class="reference·internal"·href="#cairo.TextCluster"·title="cairo.TextCluster"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TextCluster</span></code></a>·structure·holds·information·about·a·single·text108 <p>The·<a·class="reference·internal"·href="#cairo.TextCluster"·title="cairo.TextCluster"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TextCluster</span></code></a>·structure·holds·information·about·a·single·text
109 cluster.·A·text·cluster·is·a·minimal·mapping·of·some·glyphs·corresponding109 cluster.·A·text·cluster·is·a·minimal·mapping·of·some·glyphs·corresponding
110 to·some·UTF-8·text.</p>110 to·some·UTF-8·text.</p>
111 <p>For·a·cluster·to·be·valid,·both·<code·class="docutils·literal·notranslate"><span·class="pre">num_bytes</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">num_glyphs</span></code>·should·be111 <p>For·a·cluster·to·be·valid,·both·<code·class="docutils·literal·notranslate"><span·class="pre">num_bytes</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">num_glyphs</span></code>·should·be
2.4 KB
html2text {}
    
Offset 25, 29 lines modifiedOffset 25, 29 lines modified
25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o
26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e
27 ····*·Text·Cluster27 ····*·Text·Cluster
28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
29 ===============================================================================29 ===============================================================================
30 *\x8**\x8**\x8**\x8**\x8**\x8*·T\x8Te\x8ex\x8xt\x8t·C\x8Cl\x8lu\x8us\x8st\x8te\x8er\x8r_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*30 *\x8**\x8**\x8**\x8**\x8**\x8*·T\x8Te\x8ex\x8xt\x8t·C\x8Cl\x8lu\x8us\x8st\x8te\x8er\x8r_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*
31 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·T\x8Te\x8ex\x8xt\x8tC\x8Cl\x8lu\x8us\x8st\x8te\x8er\x8r(\x8(t\x8tu\x8up\x8pl\x8le\x8e)\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*31 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·T\x8Te\x8ex\x8xt\x8tC\x8Cl\x8lu\x8us\x8st\x8te\x8er\x8r(\x8(t\x8tu\x8up\x8pl\x8le\x8e)\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
32 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.TextCluster(n\x8nu\x8um\x8m_\x8_b\x8by\x8yt\x8te\x8es\x8s:\x8:·_.i.i_.n.n_.t.t,·n.nu.um.m_._g.gl.ly.yp.ph.hs.s:.:·_.i.i_.n.n_.t\x8t)_\x832 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.TextCluster(n\x8nu\x8um\x8m_\x8_b\x8by\x8yt\x8te\x8es\x8s:\x8:·i.in.nt.t,·n.nu.um.m_._g.gl.ly.yp.ph.hs.s:.:·i.in.nt\x8t)_\x8
33 ······New·in·version·1.15.33 ······New·in·version·1.15.
34 ······The·_\x8T_\x8e_\x8x_\x8t_\x8C_\x8l_\x8u_\x8s_\x8t_\x8e_\x8r·structure·holds·information·about·a·single·text·cluster.34 ······The·_\x8T_\x8e_\x8x_\x8t_\x8C_\x8l_\x8u_\x8s_\x8t_\x8e_\x8r·structure·holds·information·about·a·single·text·cluster.
35 ······A·text·cluster·is·a·minimal·mapping·of·some·glyphs·corresponding·to·some35 ······A·text·cluster·is·a·minimal·mapping·of·some·glyphs·corresponding·to·some
36 ······UTF-8·text.36 ······UTF-8·text.
37 ······For·a·cluster·to·be·valid,·both·num_bytes·and·num_glyphs·should·be·non-37 ······For·a·cluster·to·be·valid,·both·num_bytes·and·num_glyphs·should·be·non-
38 ······negative,·and·at·least·one·should·be·non-zero.·Note·that·clusters·with38 ······negative,·and·at·least·one·should·be·non-zero.·Note·that·clusters·with
39 ······zero·glyphs·are·not·as·well·supported·as·normal·clusters.·For·example,39 ······zero·glyphs·are·not·as·well·supported·as·normal·clusters.·For·example,
40 ······PDF·rendering·applications·typically·ignore·those·clusters·when·PDF·text40 ······PDF·rendering·applications·typically·ignore·those·clusters·when·PDF·text
41 ······is·being·selected.41 ······is·being·selected.
42 ······See·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8h_\x8o_\x8w_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h_\x8s_\x8(_\x8)·for·how·clusters·are·used·in·advanced·text42 ······See·_\x8C_\x8o_\x8n_\x8t_\x8e_\x8x_\x8t_\x8._\x8s_\x8h_\x8o_\x8w_\x8__\x8t_\x8e_\x8x_\x8t_\x8__\x8g_\x8l_\x8y_\x8p_\x8h_\x8s_\x8(_\x8)·for·how·clusters·are·used·in·advanced·text
43 ······operations.43 ······operations.
44 ········__init__(n\x8nu\x8um\x8m_\x8_b\x8by\x8yt\x8te\x8es\x8s:\x8:·_.i.i_.n.n_.t.t,·n.nu.um.m_._g.gl.ly.yp.ph.hs.s:.:·_.i.i_.n.n_.t.t)··_.N_.o_.n_.e_\x844 ········__init__(n\x8nu\x8um\x8m_\x8_b\x8by\x8yt\x8te\x8es\x8s:\x8:·i.in.nt.t,·n.nu.um.m_._g.gl.ly.yp.ph.hs.s:.:·i.in.nt.t)··None_\x8
45 ··············Parameters:45 ··············Parameters:
46 ······················*·n\x8nu\x8um\x8m_\x8_b\x8by\x8yt\x8te\x8es\x8s··the·number·of·bytes·of·UTF-8·text·covered46 ······················*·n\x8nu\x8um\x8m_\x8_b\x8by\x8yt\x8te\x8es\x8s··the·number·of·bytes·of·UTF-8·text·covered
47 ························by·cluster47 ························by·cluster
48 ······················*·n\x8nu\x8um\x8m_\x8_g\x8gl\x8ly\x8yp\x8ph\x8hs\x8s··the·number·of·glyphs·covered·by·cluster48 ······················*·n\x8nu\x8um\x8m_\x8_g\x8gl\x8ly\x8yp\x8ph\x8hs\x8s··the·number·of·glyphs·covered·by·cluster
49 ········num_bytes:\x8:·_.i.i_.n.n_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x849 ········num_bytes:\x8:·i.in.nt\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
50 ········num_glyphs:\x8:·_.i.i_.n.n_.t\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x850 ········num_glyphs:\x8:·i.in.nt\x8t·=\x8=·E\x8El\x8ll\x8li\x8ip\x8ps\x8si\x8is\x8s_\x8
51 _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t51 _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t
52 ===============================================================================52 ===============================================================================
53 Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s.53 Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s.
21.7 KB
usr/share/doc/pycairo/html/reference/textextents.html
    
Offset 97, 30 lines modifiedOffset 97, 30 lines modified
97 ·············97 ·············
98 ··<section·id="textextents">98 ··<section·id="textextents">
99 <span·id="id1"></span><h1>TextExtents<a·class="headerlink"·href="#textextents"·title="Link·to·this·heading"></a></h1>99 <span·id="id1"></span><h1>TextExtents<a·class="headerlink"·href="#textextents"·title="Link·to·this·heading"></a></h1>
100 <section·id="class-textextents-tuple">100 <section·id="class-textextents-tuple">
101 <h2>class·TextExtents(tuple)<a·class="headerlink"·href="#class-textextents-tuple"·title="Link·to·this·heading"></a></h2>101 <h2>class·TextExtents(tuple)<a·class="headerlink"·href="#class-textextents-tuple"·title="Link·to·this·heading"></a></h2>
102 <dl·class="py·class">102 <dl·class="py·class">
103 <dt·class="sig·sig-object·py"·id="cairo.TextExtents">103 <dt·class="sig·sig-object·py"·id="cairo.TextExtents">
104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">TextExtents</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">x_bearing</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#float"·title="(in·Python·v3.12)"><span·class="pre">float</span></a></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">y_bearing</span></span><span·class=[·...·truncated·by·diffoscope;·len:·1557,·SHA:·4b2fc35dd7cd07b6b8b6763c96a99066b814826ec3492c33fd3a7c9368bcef9b·...·]></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.TextExtents"·title="Link·to·this·definition"></a></dt>104 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">cairo.</span></span><span·class="sig-name·descname"><span·class="pre">TextExtents</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">x_bearing</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">y_bearing</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<[·...·truncated·by·diffoscope;·len:·825,·SHA:·6b1ac403e58a17b34ec1b1c61148bc72e273d648f5df3480364a72adcd7b0403·...·]></span></em><span·class="sig-paren">)</span><a·class="headerlink"·href="#cairo.TextExtents"·title="Link·to·this·definition"></a></dt>
105 <dd><div·class="versionadded">105 <dd><div·class="versionadded">
106 <p><span·class="versionmodified·added">New·in·version·1.15:·</span>In·prior·versions·a·(float,·float,·float,·float,·float,·float)·tuple106 <p><span·class="versionmodified·added">New·in·version·1.15:·</span>In·prior·versions·a·(float,·float,·float,·float,·float,·float)·tuple
107 was·used·instead·of·<a·class="reference·internal"·href="#cairo.TextExtents"·title="cairo.TextExtents"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TextExtents</span></code></a>.</p>107 was·used·instead·of·<a·class="reference·internal"·href="#cairo.TextExtents"·title="cairo.TextExtents"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TextExtents</span></code></a>.</p>
108 </div>108 </div>
109 <p>The·<a·class="reference·internal"·href="#cairo.TextExtents"·title="cairo.TextExtents"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TextExtents</span></code></a>·class·stores·the·extents·of·a·single·glyph·or·a109 <p>The·<a·class="reference·internal"·href="#cairo.TextExtents"·title="cairo.TextExtents"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TextExtents</span></code></a>·class·stores·the·extents·of·a·single·glyph·or·a
110 string·of·glyphs·in·user-space·coordinates.·Because·text·extents·are·in110 string·of·glyphs·in·user-space·coordinates.·Because·text·extents·are·in
111 user-space·coordinates,·they·are·mostly,·but·not·entirely,·independent·of111 user-space·coordinates,·they·are·mostly,·but·not·entirely,·independent·of
112 the·current·transformation·matrix.·If·you·call·<code·class="docutils·literal·notranslate"><span·class="pre">context.scale(2.0,</span>112 the·current·transformation·matrix.·If·you·call·<code·class="docutils·literal·notranslate"><span·class="pre">context.scale(2.0,</span>
113 <span·class="pre">2.0)</span></code>,·text·will·be·drawn·twice·as·big,·but·the·reported·text·extents113 <span·class="pre">2.0)</span></code>,·text·will·be·drawn·twice·as·big,·but·the·reported·text·extents
114 will·not·be·doubled.·They·will·change·slightly·due·to·hinting·(so·you114 will·not·be·doubled.·They·will·change·slightly·due·to·hinting·(so·you
115 can’t·assume·that·metrics·are·independent·of·the·transformation·matrix),115 can’t·assume·that·metrics·are·independent·of·the·transformation·matrix),
116 but·otherwise·will·remain·unchanged.</p>116 but·otherwise·will·remain·unchanged.</p>
117 <dl·class="py·method">117 <dl·class="py·method">
118 <dt·class="sig·sig-object·py"·id="cairo.TextExtents.__init__">118 <dt·class="sig·sig-object·py"·id="cairo.TextExtents.__init__">
119 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">x_bearing</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><a·class="reference·external"·href="https://docs.python.org/3/library/functions.html#float"·title="(in·Python·v3.12)"><span·class="pre">float</span></a></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">y_bearing</span></span><span·class=[·...·truncated·by·diffoscope;·len:·1857,·SHA:·56c996ecb0c3ae23021a6248183438ab0db2201c5db151f654137749bcb06307·...·]></span></span><a·class="headerlink"·href="#cairo.TextExtents.__init__"·title="Link·to·this·definition"></a></dt>119 <span·class="sig-name·descname"><span·class="pre">__init__</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">x_bearing</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">y_bearing</span></span><span·class="p"><span·class="pre">:</span></span><span·class="w">·</span><span·class="n"><span·class="pre">float</span></span></em>,·<[·...·truncated·by·diffoscope;·len:·1004,·SHA:·338a6734c82c323222314014b782dc8f800222c1e3be320cf2313e990bff5aef·...·]></span></span><a·class="headerlink"·href="#cairo.TextExtents.__init__"·title="Link·to·this·definition"></a></dt>
120 <dd><dl·class="field-list·simple">120 <dd><dl·class="field-list·simple">
121 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>121 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>
122 <dd·class="field-odd"><ul·class="simple">122 <dd·class="field-odd"><ul·class="simple">
123 <li><p><strong>x_bearing</strong>··the·horizontal·distance·from·the·origin·to·the·leftmost·part·of·the123 <li><p><strong>x_bearing</strong>··the·horizontal·distance·from·the·origin·to·the·leftmost·part·of·the
124 glyphs·as·drawn.·Positive·if·the·glyphs·lie·entirely·to·the·right·of124 glyphs·as·drawn.·Positive·if·the·glyphs·lie·entirely·to·the·right·of
125 the·origin.</p></li>125 the·origin.</p></li>
126 <li><p><strong>y_bearing</strong>··the·vertical·distance·from·the·origin·to·the·topmost·part·of·the126 <li><p><strong>y_bearing</strong>··the·vertical·distance·from·the·origin·to·the·topmost·part·of·the
4.64 KB
html2text {}
    
Offset 25, 28 lines modifiedOffset 25, 28 lines modified
25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o25 _\x8P_\x8y_\x8c_\x8a_\x8i_\x8r_\x8o
26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e26 ····*·_\x8A_\x8P_\x8I_\x8·_\x8R_\x8e_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e
27 ····*·TextExtents27 ····*·TextExtents
28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e28 ····*·_\x8V_\x8i_\x8e_\x8w_\x8·_\x8p_\x8a_\x8g_\x8e_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e
29 ===============================================================================29 ===============================================================================
30 *\x8**\x8**\x8**\x8**\x8**\x8*·T\x8Te\x8ex\x8xt\x8tE\x8Ex\x8xt\x8te\x8en\x8nt\x8ts\x8s_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*30 *\x8**\x8**\x8**\x8**\x8**\x8*·T\x8Te\x8ex\x8xt\x8tE\x8Ex\x8xt\x8te\x8en\x8nt\x8ts\x8s_\x8?\x8·*\x8**\x8**\x8**\x8**\x8**\x8*
31 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·T\x8Te\x8ex\x8xt\x8tE\x8Ex\x8xt\x8te\x8en\x8nt\x8ts\x8s(\x8(t\x8tu\x8up\x8pl\x8le\x8e)\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*31 *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8la\x8as\x8ss\x8s·T\x8Te\x8ex\x8xt\x8tE\x8Ex\x8xt\x8te\x8en\x8nt\x8ts\x8s(\x8(t\x8tu\x8up\x8pl\x8le\x8e)\x8)_\x8?\x8·*\x8**\x8**\x8**\x8**\x8*
32 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.TextExtents(x\x8x_\x8_b\x8be\x8ea\x8ar\x8ri\x8in\x8ng\x8g:\x8:·_.f.f_.l.l_.o.o_.a.a_.t.t,·y.y_._b.be.ea.ar.ri.in.ng.g:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·w.wi.id.dt.th.h:.:·_.f.f_.l.l_.o.o_.a.a_.t\x8t,32 ··c\x8cl\x8la\x8as\x8ss\x8s·cairo.TextExtents(x\x8x_\x8_b\x8be\x8ea\x8ar\x8ri\x8in\x8ng\x8g:\x8:·f.fl.lo.oa.at.t,·y.y_._b.be.ea.ar.ri.in.ng.g:.:·f.fl.lo.oa.at.t,·w.wi.id.dt.th.h:.:·f.fl.lo.oa.at\x8t,
33 ··h\x8he\x8ei\x8ig\x8gh\x8ht\x8t:\x8:·_.f.f_.l.l_.o.o_.a.a_.t.t,·x.x_._a.ad.dv.va.an.nc.ce.e:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·y.y_._a.ad.dv.va.an.nc.ce.e:.:·_.f.f_.l.l_.o.o_.a.a_.t\x8t)_\x833 ··h\x8he\x8ei\x8ig\x8gh\x8ht\x8t:\x8:·f.fl.lo.oa.at.t,·x.x_._a.ad.dv.va.an.nc.ce.e:.:·f.fl.lo.oa.at.t,·y.y_._a.ad.dv.va.an.nc.ce.e:.:·f.fl.lo.oa.at\x8t)_\x8
34 ······New·in·version·1.15:·In·prior·versions·a·(float,·float,·float,·float,34 ······New·in·version·1.15:·In·prior·versions·a·(float,·float,·float,·float,
35 ······float,·float)·tuple·was·used·instead·of·_\x8T_\x8e_\x8x_\x8t_\x8E_\x8x_\x8t_\x8e_\x8n_\x8t_\x8s.35 ······float,·float)·tuple·was·used·instead·of·_\x8T_\x8e_\x8x_\x8t_\x8E_\x8x_\x8t_\x8e_\x8n_\x8t_\x8s.
36 ······The·_\x8T_\x8e_\x8x_\x8t_\x8E_\x8x_\x8t_\x8e_\x8n_\x8t_\x8s·class·stores·the·extents·of·a·single·glyph·or·a·string·of36 ······The·_\x8T_\x8e_\x8x_\x8t_\x8E_\x8x_\x8t_\x8e_\x8n_\x8t_\x8s·class·stores·the·extents·of·a·single·glyph·or·a·string·of
37 ······glyphs·in·user-space·coordinates.·Because·text·extents·are·in·user-space37 ······glyphs·in·user-space·coordinates.·Because·text·extents·are·in·user-space
38 ······coordinates,·they·are·mostly,·but·not·entirely,·independent·of·the38 ······coordinates,·they·are·mostly,·but·not·entirely,·independent·of·the
39 ······current·transformation·matrix.·If·you·call·context.scale(2.0,·2.0),·text39 ······current·transformation·matrix.·If·you·call·context.scale(2.0,·2.0),·text
40 ······will·be·drawn·twice·as·big,·but·the·reported·text·extents·will·not·be40 ······will·be·drawn·twice·as·big,·but·the·reported·text·extents·will·not·be
41 ······doubled.·They·will·change·slightly·due·to·hinting·(so·you·can’t·assume41 ······doubled.·They·will·change·slightly·due·to·hinting·(so·you·can’t·assume
42 ······that·metrics·are·independent·of·the·transformation·matrix),·but·otherwise42 ······that·metrics·are·independent·of·the·transformation·matrix),·but·otherwise
43 ······will·remain·unchanged.43 ······will·remain·unchanged.
44 ········__init__(x\x8x_\x8_b\x8be\x8ea\x8ar\x8ri\x8in\x8ng\x8g:\x8:·_.f.f_.l.l_.o.o_.a.a_.t.t,·y.y_._b.be.ea.ar.ri.in.ng.g:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·w.wi.id.dt.th.h:.:·_.f.f_.l.l_.o.o_.a.a_.t\x8t,·h\x8he\x8ei\x8ig\x8gh\x8ht\x8t:\x8:44 ········__init__(x\x8x_\x8_b\x8be\x8ea\x8ar\x8ri\x8in\x8ng\x8g:\x8:·f.fl.lo.oa.at.t,·y.y_._b.be.ea.ar.ri.in.ng.g:.:·f.fl.lo.oa.at.t,·w.wi.id.dt.th.h:.:·f.fl.lo.oa.at\x8t,·h\x8he\x8ei\x8ig\x8gh\x8ht\x8t:\x8:
45 ········_.f.f_.l.l_.o.o_.a.a_.t.t,·x.x_._a.ad.dv.va.an.nc.ce.e:.:·_.f.f_.l.l_.o.o_.a.a_.t.t,·y.y_._a.ad.dv.va.an.nc.ce.e:.:·_.f.f_.l.l_.o.o_.a.a_.t.t)··_.N_.o_.n_.e_\x845 ········f.fl.lo.oa.at.t,·x.x_._a.ad.dv.va.an.nc.ce.e:.:·f.fl.lo.oa.at.t,·y.y_._a.ad.dv.va.an.nc.ce.e:.:·f.fl.lo.oa.at.t)··None_\x8
46 ··············Parameters:46 ··············Parameters:
47 ······················*·x\x8x_\x8_b\x8be\x8ea\x8ar\x8ri\x8in\x8ng\x8g··the·horizontal·distance·from·the·origin·to47 ······················*·x\x8x_\x8_b\x8be\x8ea\x8ar\x8ri\x8in\x8ng\x8g··the·horizontal·distance·from·the·origin·to
48 ························the·leftmost·part·of·the·glyphs·as·drawn.·Positive·if48 ························the·leftmost·part·of·the·glyphs·as·drawn.·Positive·if
49 ························the·glyphs·lie·entirely·to·the·right·of·the·origin.49 ························the·glyphs·lie·entirely·to·the·right·of·the·origin.
50 ······················*·y\x8y_\x8_b\x8be\x8ea\x8ar\x8ri\x8in\x8ng\x8g··the·vertical·distance·from·the·origin·to50 ······················*·y\x8y_\x8_b\x8be\x8ea\x8ar\x8ri\x8in\x8ng\x8g··the·vertical·distance·from·the·origin·to
51 ························the·topmost·part·of·the·glyphs·as·drawn.·Positive·only51 ························the·topmost·part·of·the·glyphs·as·drawn.·Positive·only
52 ························if·the·glyphs·lie·completely·below·the·origin;·will52 ························if·the·glyphs·lie·completely·below·the·origin;·will
1010 B
usr/share/doc/pycairo/html/searchindex.js
926 B
js-beautify {}
    
Offset 697, 14 lines modifiedOffset 697, 15 lines modified
697 ········"hash":·[3,·20],697 ········"hash":·[3,·20],
698 ········"compar":·[3,·5,·14,·16,·20],698 ········"compar":·[3,·5,·14,·16,·20],
699 ········"equal":·[3,·6,·7,·18,·20],699 ········"equal":·[3,·6,·7,·18,·20],
700 ········"e":·[3,·7,·9,·16,·19],700 ········"e":·[3,·7,·9,·16,·19],
701 ········"g":·[3,·9],701 ········"g":·[3,·9],
702 ········"get_target":·[3,·7],702 ········"get_target":·[3,·7],
703 ········"no_memori":·[3,·9],703 ········"no_memori":·[3,·9],
 704 ········"python3":·[3,·4,·10],
704 ········"memoryerror":·[3,·7,·10,·19],705 ········"memoryerror":·[3,·7,·10,·19],
705 ········"similarli":·[3,·7],706 ········"similarli":·[3,·7],
706 ········"read_error":·[3,·9],707 ········"read_error":·[3,·9],
707 ········"write_error":·[3,·9],708 ········"write_error":·[3,·9],
708 ········"ioerror":·[3,·10,·19],709 ········"ioerror":·[3,·10,·19],
709 ········"55":·3,710 ········"55":·3,
710 ········"tupl":·[3,·6,·7,·12,·14,·16,·19,·20],711 ········"tupl":·[3,·6,·7,·12,·14,·16,·19,·20],