This file is indexed.

/usr/share/gtk-doc/html/pygoocanvas/class-canvas-text.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
28
29
30
31
32
33
34
35
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>goocanvas.Text</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-std-items.html" title="PyGooCanvas Standard Canvas Items Reference"><link rel="prev" href="class-canvas-rect.html" title="goocanvas.Rect"><link rel="next" href="class-canvas-table.html" title="goocanvas.Table"></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.Text</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-canvas-rect.html">Prev</a> </td><th width="60%" align="center">PyGooCanvas Standard Canvas Items Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-canvas-table.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="class-canvas-text"></a><div class="titlepage"></div><div class="refnamediv"><h2>goocanvas.Text</h2><p>goocanvas.Text — A text item.</p></div><div class="refsect1"><a name="idm7137"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">goocanvas.Text</span></span>(<span class="ooclass"><span class="classname">goocanvas.ItemSimple</span></span>):
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-canvas-text.html#constructor-canvas-text" title="Constructor">goocanvas.Text</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>properties</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-canvas-text.html#method-goocanvastext--get-natural-extents" title="goocanvas.Text.get_natural_extents">get_natural_extents</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1"><a name="idm7154"></a><h2>Ancestry</h2><pre class="synopsis">+-- <a
href="../pygobject/class-gobject.html"
>gobject.GObject</a>
	+-- <a class="link" href="class-canvas-item-simple.html" title="goocanvas.ItemSimple">goocanvas.ItemSimple</a>
		+-- <a class="link" href="class-canvas-text.html" title="goocanvas.Text">goocanvas.Text</a>
</pre></div><div class="refsect1"><a name="properties-goocanvastext"></a><h2>goocanvas.Text 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">"alignment"</td><td valign="top">Read/Write</td><td valign="top">How to align the text. Default value: pango.ALIGN_LEFT.</td></tr><tr valign="top"><td valign="top">"anchor"</td><td valign="top">Read/Write</td><td valign="top">How to position the text relative to the given x and y coordinates. Default value: gtk.ANCHOR_NORTH_WEST.</td></tr><tr valign="top"><td valign="top">"font"</td><td valign="top">Read/Write</td><td valign="top">The base font to use for the text. Default value: None.</td></tr><tr valign="top"><td valign="top">"font-desc"</td><td valign="top">Read/Write</td><td valign="top">The attributes specifying which font to use.</td></tr><tr valign="top"><td valign="top">"height"</td><td valign="top">Read/Write</td><td valign="top">The height to use to layout the text, or -1 to use the natural height. Default value: -1.</td></tr><tr valign="top"><td valign="top">"text"</td><td valign="top">Read/Write</td><td valign="top">The text to display. Default value: None.</td></tr><tr valign="top"><td valign="top">"use-markup"</td><td valign="top">Read/Write</td><td valign="top">Whether to parse PangoMarkup in the text, to support different styles. Default value: False.</td></tr><tr valign="top"><td valign="top">"width"</td><td valign="top">Read/Write</td><td valign="top">The width to use to layout the text. Default value: -1.</td></tr><tr valign="top"><td valign="top">"x"</td><td valign="top">Read/Write</td><td valign="top">The x coordinate of the text. 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 text. Default value: 0.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1"><a name="idm7209"></a><h2>Implemented Interfaces</h2><p>
			<a class="link" href="class-canvas-text.html" title="goocanvas.Text"><code class="classname">goocanvas.Text</code></a>
			implements 
			<a class="link" href="class-canvas-item.html" title="goocanvas.Item"><code class="classname">goocanvas.Item</code></a>
		</p></div><div class="refsect1"><a name="idm7216"></a><h2>Description</h2><a class="link" href="class-canvas-text.html" title="goocanvas.Text"><code class="classname">goocanvas.Text</code></a> 
			represents a text item. It is a subclass of 
			<a class="link" href="class-canvas-item-simple.html" title="goocanvas.ItemSimple"><code class="classname">goocanvas.ItemSimple</code></a> 
			and so inherits all of the style properties such as "stroke-color", "fill-color" and "line-width". 
			It also implements the <a class="link" href="class-canvas-item.html" title="goocanvas.Item"><code class="classname">goocanvas.Item</code></a> 
			interface, so you can use the <a class="link" href="class-canvas-item.html" title="goocanvas.Item"><code class="classname">goocanvas.Item</code></a> 
			functions such as <code class="methodname"><a class="link" href="class-canvas-item.html#method-goocanvasitem--raise-" title="goocanvas.Item.raise_">goocanvas.Item.raise_()</a></code> 
			and <code class="methodname">goocanvas.Item.rotate()</code></div><div class="refsect1"><a name="constructor-canvas-text"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">goocanvas.Text</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-text.html" title="goocanvas.Text"><code class="classname">goocanvas.Text</code></a>
				</td></tr></tbody></table><p>
			Creates a new canvas text item.
		</p><p>
			Here's an example showing how to create a text item with the bottom
			right of the text box placed at (500,500):
		</p><pre class="programlisting">
text = goocanvas.Text(text="Hello, World!", x=500, y=500
						width=200, anchor=gtk.ANCHOR_SE,
						fill_color="blue")
</pre></div><div class="refsect1"><a name="idm7254"></a><h2>Methods</h2><div class="refsect2"><a name="method-goocanvastext--get-natural-extents"></a><h3>goocanvas.Text.get_natural_extents</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_natural_extents</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 2-tuple containing two 4-tuples representing the ink and
					logical rectangles used to store the extents of glyph as drawn.</td></tr></tbody></table><p>
                Gets the natural extents of the text, in the text item's coordinate space.
		The final extents of the text may be different, if the text item is placed
		in a layout container such as
		<a class="link" href="class-canvas-table.html" title="goocanvas.Table"><code class="classname">goocanvas.Table</code></a>.
            </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-rect.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pygoocanvas-std-items.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-canvas-table.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">goocanvas.Rect </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> goocanvas.Table</td></tr></table></div></body></html>