/usr/share/doc/python-cairocffi-doc/html/xcb.html is in python-cairocffi-doc 0.7.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Using XCB surfaces with xcffib — cairocffi 0.7.2 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.7.2',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="cairocffi 0.7.2 documentation" href="index.html" />
<link rel="next" title="CFFI API" href="cffi_api.html" />
<link rel="prev" title="Decoding images with GDK-PixBuf" href="pixbuf.html" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
</head>
<body role="document">
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<span class="target" id="module-cairocffi.xcb"></span><div class="section" id="using-xcb-surfaces-with-xcffib">
<h1>Using XCB surfaces with xcffib<a class="headerlink" href="#using-xcb-surfaces-with-xcffib" title="Permalink to this headline">¶</a></h1>
<p>The <a class="reference internal" href="#module-cairocffi.xcb" title="cairocffi.xcb"><code class="xref py py-mod docutils literal"><span class="pre">cairocffi.xcb</span></code></a> module uses <a class="reference external" href="https://github.com/tych0/xcffib/">xcffib</a> as the XCB library to create
graphics for X windows and pixmaps.</p>
<dl class="class">
<dt id="cairocffi.xcb.XCBSurface">
<em class="property">class </em><code class="descclassname">cairocffi.xcb.</code><code class="descname">XCBSurface</code><span class="sig-paren">(</span><em>conn</em>, <em>drawable</em>, <em>visual</em>, <em>width</em>, <em>height</em><span class="sig-paren">)</span><a class="headerlink" href="#cairocffi.xcb.XCBSurface" title="Permalink to this definition">¶</a></dt>
<dd><p>The XCB surface is used to render cairo graphics to X Window System
windows and pixmaps using the XCB library.</p>
<p>Creates a cairo surface that targets the given drawable (pixmap or window).</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">This class works using objects and libraries in <code class="xref py py-mod docutils literal"><span class="pre">xcffib</span></code></p>
</div>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>conn</strong> – The <code class="xref py py-class docutils literal"><span class="pre">xcffib.Connection</span></code> for an open XCB connection</li>
<li><strong>drawable</strong> – An XID corresponding to an XCB drawable (a pixmap or a window)</li>
<li><strong>visual</strong> – An <code class="xref py py-class docutils literal"><span class="pre">xcffib.xproto.VISUALTYPE</span></code> object.</li>
<li><strong>width</strong> – integer</li>
<li><strong>height</strong> – integer</li>
</ul>
</td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="cairocffi.xcb.XCBSurface.set_size">
<code class="descname">set_size</code><span class="sig-paren">(</span><em>width</em>, <em>height</em><span class="sig-paren">)</span><a class="headerlink" href="#cairocffi.xcb.XCBSurface.set_size" title="Permalink to this definition">¶</a></dt>
<dd><p>Informs cairo of the new size of the X Drawable underlying the surface.
For a surface created for a Window (rather than a Pixmap), this
function must be called each time the size of the window changes (for
a subwindow, you are normally resizing the window yourself, but for a
toplevel window, it is necessary to listen for
<code class="xref py py-class docutils literal"><span class="pre">xcffib.xproto.ConfigureNotifyEvent</span></code>‘s).</p>
<p>A Pixmap can never change size, so it is never necessary to call this
function on a surface created for a Pixmap.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>width</strong> – integer</li>
<li><strong>height</strong> – integer</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper"><div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="index.html">Documentation overview</a><ul>
<li>Previous: <a href="pixbuf.html" title="previous chapter">Decoding images with GDK-PixBuf</a></li>
<li>Next: <a href="cffi_api.html" title="next chapter">CFFI API</a></li>
</ul></li>
</ul>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/xcb.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
©2013, Simon Sapin.
|
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.3.3</a>
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.6</a>
|
<a href="_sources/xcb.txt"
rel="nofollow">Page source</a>
</div>
</body>
</html>
|