/usr/share/gtk-doc/html/pygoocanvas/class-canvas-image-model.html is in python-pygoocanvas 0.14.1-1.2.
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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>goocanvas.ImageModel</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="index.html" title="PyGooCanvas Reference Manual"><link rel="up" href="pygoocanvas-model-items.html" title="PyGooCanvas Canvas Item Models Reference"><link rel="prev" href="class-canvas-group-model.html" title="goocanvas.GroupModel"><link rel="next" href="class-canvas-path-model.html" title="goocanvas.PathModel"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">goocanvas.ImageModel</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-canvas-group-model.html">Prev</a> </td><th width="60%" align="center">PyGooCanvas Canvas Item Models Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-canvas-path-model.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="class-canvas-image-model"></a><div class="titlepage"></div><div class="refnamediv"><h2>goocanvas.ImageModel</h2><p>goocanvas.ImageModel — A model for image items.</p></div><div class="refsect1"><a name="idm7914"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">goocanvas.ImageModel</span></span>(<span class="ooclass"><span class="classname">goocanvas.ItemModelModelSimple</span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-canvas-image-model.html#constructor-canvas-image-model" title="Constructor">goocanvas.ImageModel</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>properties</code></strong></span><span class="initializer">=None</span></span>)</code><br></pre></td></tr></table></div><div class="refsect1"><a name="idm7927"></a><h2>Ancestry</h2><pre class="synopsis">+-- <a
href="../pygobject/class-gobject.html"
>gobject.GObject</a>
+-- goocanvas.ItemModelModelSimple
+-- <a class="link" href="class-canvas-image-model.html" title="goocanvas.ImageModel">goocanvas.ImageModel</a>
</pre></div><div class="refsect1"><a name="properties-goocanvasimagemodel"></a><h2>goocanvas.ImageModel Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table class="informaltable" width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="3.5in"></colgroup><tbody><tr valign="top"><td valign="top">"height"</td><td valign="top">Read/Write</td><td valign="top">The height of the image. Allowed values: >= 0. Default value: 0.</td></tr><tr valign="top"><td valign="top">"pattern"</td><td valign="top">Read/Write</td><td valign="top">The cairo pattern to paint.</td></tr><tr valign="top"><td valign="top">"pixbuf"</td><td valign="top">Write</td><td valign="top">The GdkPixbuf to display.</td></tr><tr valign="top"><td valign="top">"width"</td><td valign="top">Read/Write</td><td valign="top">The width of the image. Allowed values: >= 0 Default value: 0.</td></tr><tr valign="top"><td valign="top">"x"</td><td valign="top">Read/Write</td><td valign="top">The x coordinate of the image. Default value: 0.</td></tr><tr valign="top"><td valign="top">"y"</td><td valign="top">Read/Write</td><td valign="top">The y coordinate of the image. Default value: 0.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1"><a name="idm7966"></a><h2>Implemented Interfaces</h2><p>
<a class="link" href="class-canvas-image-model.html" title="goocanvas.ImageModel"><code class="classname">goocanvas.ImageModel</code></a>
implements
<a class="link" href="class-canvas-item-model.html" title="goocanvas.ItemModel"><code class="classname">goocanvas.ItemModel</code></a>
</p></div><div class="refsect1"><a name="idm7973"></a><h2>Description</h2><a class="link" href="class-canvas-image-model.html" title="goocanvas.ImageModel"><code class="classname">goocanvas.ImageModel</code></a>
represents an image item. It is a subclass of
<code class="classname">goocanvas.ItemModelModelSimple</code>
and so inherits all of the style properties such as "operator" and "pointer-events".
It also implements the <a class="link" href="class-canvas-item-model.html" title="goocanvas.ItemModel"><code class="classname">goocanvas.ItemModel</code></a>
interface, so you can use the <a class="link" href="class-canvas-item-model.html" title="goocanvas.ItemModel"><code class="classname">goocanvas.ItemModel</code></a>
functions such as <code class="methodname"><a class="link" href="class-canvas-item-model.html#method-goocanvasitemmodel--raise-" title="goocanvas.ItemModel.raise_">goocanvas.ItemModel.raise_()</a></code>
and <code class="methodname">goocanvas.ItemModel.rotate()</code></div><div class="refsect1"><a name="constructor-canvas-image-model"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">goocanvas.ImageModel</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>properties</code></strong></span><span class="initializer">=None</span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>properties</code></strong> :</span></p></td><td>A comma separated list of properties.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>A new
<a class="link" href="class-canvas-image-model.html" title="goocanvas.ImageModel"><code class="classname">goocanvas.ImageModel</code></a>
</td></tr></tbody></table><p>
Creates a new canvas model image item.
</p><p>
Here's an example showing how to create an image model at (100.0, 100.0),
using the given pixbuf at its natural width and height:
</p><pre class="programlisting">
image = goocanvas.ImageModel(pixbuf=pixbuf, x=100, y=100)
</pre></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-canvas-group-model.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pygoocanvas-model-items.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-canvas-path-model.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">goocanvas.GroupModel </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> goocanvas.PathModel</td></tr></table></div></body></html>
|