This file is indexed.

/usr/share/gtk-doc/html/pygoocanvas/class-canvas-style.html is in python-pygoocanvas 0.14.1-1.1ubuntu1.

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
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>goocanvas.Style</title><link rel="stylesheet" type="text/css" href="style.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="PyGooCanvas Reference Manual"><link rel="up" href="pygoocanvas-core-classes.html" title="PyGooCanvas Core Class Reference"><link rel="prev" href="class-canvas-item-model-simple.html" title="goocanvas.ItemModelSimple"><link rel="next" href="pygoocanvas-std-items.html" title="PyGooCanvas Standard Canvas Items Reference"></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.Style</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-canvas-item-model-simple.html">Prev</a> </td><th width="60%" align="center">PyGooCanvas Core Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="pygoocanvas-std-items.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="class-canvas-style"></a><div class="titlepage"></div><div class="refnamediv"><h2>goocanvas.Style</h2><p>goocanvas.Style — Support for cascading style properties for canvas items.</p></div><div class="refsect1"><a name="idp46888213527504"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">goocanvas.Style</span></span>(<span class="ooclass"><span class="classname">gobject.GObject</span></span>):
<code class="constructorsynopsis">    <span class="methodname">goocanvas.Style</span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname">copy</span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname">get_parent</span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname">get_style_property</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>property_id</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname">set_fill_options</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>cr</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname">set_parent</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>parent</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname">set_stroke_options</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>cr</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname">set_style_property</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>property_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>value</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1"><a name="idp46888213548944"></a><h2>Ancestry</h2><pre class="synopsis">+-- <a
href="../pygobject/class-gobject.html"
>gobject.GObject</a>
        +-- goocanvas.Style
</pre></div><div class="refsect1"><a name="idp46888213551728"></a><h2>Description</h2><p>
                <code class="classname">goocanvas.Style</code>
                provides support for cascading style properties for canvas items.
                It is intended to be used when implementing new canvas items.
            </p><p>
                Style properties are identified by a unique GQuark, and contain arbitrary data stored in a GValue.
            </p><p>
                <code class="classname">goocanvas.Style</code>
                also provides a few convenience functions such as
                <code class="methodname">set_stroke_options</code>
                and <code class="methodname">set_fill_options</code>
                which efficiently apply an item's standard style properties to the given cairo_t.
            </p></div><div class="refsect1"><a name="constructor-canvas-style"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">goocanvas.Style</span>()</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td><td>A new 
                        <code class="classname">goocanvas.Style</code>
                    </td></tr></tbody></table><p>
            Creates a new canvas Style object.
        </p></div><div class="refsect1"><a name="idp46888213564016"></a><h2>Methods</h2><div class="refsect2"><a name="method-goocanvasstyle--copy"></a><h3>goocanvas.Style.copy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">convert_from_item_scopypace</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td><td>A copy of the given 
                    <code class="classname">goocanvas.Style</code></td></tr></tbody></table><p>
                Copies the given <code class="classname">goocanvas.Style</code>,
                by copying all of its properties. Though the parent of the new style is left unset.
            </p></div><div class="refsect2"><a name="method-goocanvasstyle--get-parent"></a><h3>goocanvas.Style.get_parent</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_parent</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td><td>The parent of the given style, or None.</td></tr></tbody></table><p>
                Gets the parent of the style.
            </p></div><div class="refsect2"><a name="method-goocanvasstyle--get-style-property"></a><h3>goocanvas.Style.get_style_property</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_style_property</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>property_id</code></strong></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>property_id</code></strong>:</span></p></td><td>The property identifier.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td><td>The property value, or None if it isn't set.</td></tr></tbody></table><p>
                Gets the value of a property.
            </p><p>
                This searches though all the <code class="classname">goocanvas.Style</code>'s
                own list of property settings and also all ancestor
                <code class="classname">goocanvas.Style</code> objects.
            </p></div><div class="refsect2"><a name="method-goocanvasstyle--set-fill-options"></a><h3>goocanvas.Style.set_fill_options</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_fill_options</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>cr</code></strong></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>cr</code></strong>:</span></p></td><td>A cairo context.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td><td>True if a paint source is set,
                                or False if the fill should be skipped.</td></tr></tbody></table><p>
                Sets the standard cairo fill options using the given style.
            </p></div><div class="refsect2"><a name="method-goocanvasstyle--set-parent"></a><h3>goocanvas.Style.set_parent</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_parent</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>parent</code></strong></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>parent</code></strong>:</span></p></td><td>The new parent</td></tr></tbody></table><p>
                Sets the parent of the style.
            </p></div><div class="refsect2"><a name="method-goocanvasstyle--set-stroke-options"></a><h3>goocanvas.Style.set_stroke_options</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_stroke_options</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>cr</code></strong></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>cr</code></strong>:</span></p></td><td>A cairo context.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></p></td><td>True if a paint source is set,
                                or False if the stroke should be skipped.</td></tr></tbody></table><p>
                Sets the standard cairo stroke options using the given style.
            </p></div><div class="refsect2"><a name="method-goocanvasstyle--set-style-property"></a><h3>goocanvas.Style.set_style_property</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_style_property</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>property_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>value</code></strong></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>property_id</code></strong>:</span></p></td><td>the property identifier.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>value</code></strong>:</span></p></td><td>	 the value of the property.</td></tr></tbody></table><p>
                Sets a property in the style, replacing any current setting.
            </p><p>
                Note that this will override the property setting in ancestor
                <code class="classname">goocanvas.Style</code> objects.
            </p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-canvas-item-model-simple.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pygoocanvas-core-classes.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="pygoocanvas-std-items.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">goocanvas.ItemModelSimple </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> PyGooCanvas Standard Canvas Items Reference</td></tr></table></div></body></html>