/usr/share/gtk-doc/html/pygtk/class-atkhyperlink.html is in python-gtk2-doc 2.24.0-5.1ubuntu2.
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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>atk.Hyperlink</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="atk-class-reference.html" title="The atk Class Reference"><link rel="prev" href="class-atkgobjectaccessible.html" title="atk.GObjectAccessible"><link rel="next" href="class-atkhypertext.html" title="atk.Hypertext"></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">atk.Hyperlink</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-atkgobjectaccessible.html">Prev</a> </td><th width="60%" align="center">The atk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-atkhypertext.html">Next</a></td></tr></table><hr></div><div class="refentry" title="atk.Hyperlink"><a name="class-atkhyperlink"></a><div class="titlepage"></div><div class="refnamediv"><h2>atk.Hyperlink</h2><p>atk.Hyperlink — An ATK object which encapsulates a link or set of links in a hypertext document. </p></div><div class="refsect1" title="Synopsis"><a name="id2961872"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">atk.Hyperlink</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-atkhyperlink.html#method-atkhyperlink--get-uri" title="atk.Hyperlink.get_uri">get_uri</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>i</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-atkhyperlink.html#method-atkhyperlink--get-object" title="atk.Hyperlink.get_object">get_object</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>i</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-atkhyperlink.html#method-atkhyperlink--get-end-index" title="atk.Hyperlink.get_end_index">get_end_index</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-atkhyperlink.html#method-atkhyperlink--get-start-index" title="atk.Hyperlink.get_start_index">get_start_index</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-atkhyperlink.html#method-atkhyperlink--is-valid" title="atk.Hyperlink.is_valid">is_valid</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-atkhyperlink.html#method-atkhyperlink--get-n-anchors" title="atk.Hyperlink.get_n_anchors">get_n_anchors</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-atkhyperlink.html#method-atkhyperlink--is-inline" title="atk.Hyperlink.is_inline">is_inline</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-atkhyperlink.html#method-atkhyperlink--is-selected-link" title="atk.Hyperlink.is_selected_link">is_selected_link</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id2935489"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-atkhyperlink.html" title="atk.Hyperlink">atk.Hyperlink</a>
</pre></div><div class="refsect1" title="atk.Hyperlink Properties"><a name="properties-atkhyperlink"></a><h2>atk.Hyperlink Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col width="1in"><col width="1in"><col width="3.5in"></colgroup><tbody><tr valign="top"><td valign="top">"end-index"</td><td valign="top">Read</td><td valign="top">The end index of the <a class="link" href="class-atkhyperlink.html" title="atk.Hyperlink"><code class="classname">atk.Hyperlink</code></a>
object. Allowed values: >= 0. Default value: 0.</td></tr><tr valign="top"><td valign="top">"number-of-anchors"</td><td valign="top">Read</td><td valign="top">The number of anchors associated with the <a class="link" href="class-atkhyperlink.html" title="atk.Hyperlink"><code class="classname">atk.Hyperlink</code></a>
object. Allowed values: >= 0. Default value: 0.</td></tr><tr valign="top"><td valign="top">"selected-link"</td><td valign="top">Read</td><td valign="top">if <code class="literal">True</code> the <a class="link" href="class-atkhyperlink.html" title="atk.Hyperlink"><code class="classname">atk.Hyperlink</code></a>
object is selected. Default value:
<code class="literal">False</code>.</td></tr><tr valign="top"><td valign="top">"start-index"</td><td valign="top">Read</td><td valign="top">The start index of the AtkHyperlink object. Allowed values:
>= 0. Default value: 0.</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" title="atk.Hyperlink Signal Prototypes"><a name="signal-prototypes-atkhyperlink"></a><h2>atk.Hyperlink Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term">"<a class="link" href="class-atkhyperlink.html#signal-atkhyperlink--link-activated" title='The "link-activated" atk.Hyperlink Signal'>link-activated</a>"</span></p></td><td><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>atkhyperlink</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></span></span>)</code></td></tr></tbody></table></div><div class="refsect1" title="Description"><a name="id2955244"></a><h2>Description</h2><p>An ATK object which encapsulates a link or set of links in a
hypertext document. It implements the <a class="link" href="class-atkaction.html" title="atk.Action"><code class="classname">atk.Action</code></a>
interface.</p></div><div class="refsect1" title="Methods"><a name="id2983327"></a><h2>Methods</h2><div class="refsect2" title="atk.Hyperlink.get_uri"><a name="method-atkhyperlink--get-uri"></a><h3>atk.Hyperlink.get_uri</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_uri</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>i</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>i</code></strong> :</span></p></td><td>a (zero-index) integer specifying the desired
anchor</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a string specifying the
URI</td></tr></tbody></table><p>Get a the URI associated with the anchor specified by
<em class="parameter"><code>i</code></em>.</p><p>Multiple anchors are primarily used by client-side image
maps.</p></div><div class="refsect2" title="atk.Hyperlink.get_object"><a name="method-atkhyperlink--get-object"></a><h3>atk.Hyperlink.get_object</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_object</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>i</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>i</code></strong> :</span></p></td><td>a (zero-index) integer specifying the desired
anchor</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>an <a class="link" href="class-atkobject.html" title="atk.Object"><code class="classname">atk.Object</code></a>
associated with this hyperlinks i-th anchor</td></tr></tbody></table><p>Returns the item associated with this hyperlinks nth anchor.
For instance, the returned <a class="link" href="class-atkobject.html" title="atk.Object"><code class="classname">atk.Object</code></a>
will implement <a class="link" href="class-atktext.html" title="atk.Text"><code class="classname">atk.Text</code></a> if
the link is a text hyperlink, <a class="link" href="class-atkimage.html" title="atk.Image"><code class="classname">atk.Image</code></a> if
the link is an image hyperlink etc. </p><p>Multiple anchors are primarily used by client-side image
maps.</p></div><div class="refsect2" title="atk.Hyperlink.get_end_index"><a name="method-atkhyperlink--get-end-index"></a><h3>atk.Hyperlink.get_end_index</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_end_index</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 index with the hypertext document at which
this link ends</td></tr></tbody></table><p>Gets the index with the hypertext document at which this link
ends.</p></div><div class="refsect2" title="atk.Hyperlink.get_start_index"><a name="method-atkhyperlink--get-start-index"></a><h3>atk.Hyperlink.get_start_index</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_start_index</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 index with the hypertext document at which
this link begins</td></tr></tbody></table><p>Gets the index with the hypertext document at which this link
begins.</p></div><div class="refsect2" title="atk.Hyperlink.is_valid"><a name="method-atkhyperlink--is-valid"></a><h3>atk.Hyperlink.is_valid</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">is_valid</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>if <code class="literal">True</code> this link is still
valid</td></tr></tbody></table><p>Since the document that a link is associated with may have
changed this method returns <code class="literal">True</code> if the link is
still valid (with respect to the document it references) and
<code class="literal">False</code> otherwise.</p></div><div class="refsect2" title="atk.Hyperlink.get_n_anchors"><a name="method-atkhyperlink--get-n-anchors"></a><h3>atk.Hyperlink.get_n_anchors</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_n_anchors</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 number of anchors associated with this
hyperlink</td></tr></tbody></table><p>Gets the number of anchors associated with this
hyperlink.</p></div><div class="refsect2" title="atk.Hyperlink.is_inline"><a name="method-atkhyperlink--is-inline"></a><h3>atk.Hyperlink.is_inline</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">is_inline</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>if <code class="literal">True</code> this link displays
its content inline.</td></tr></tbody></table><p>Indicates whether the link currently displays some or all of its
content inline. Ordinary HTML links will usually return
<code class="literal">False</code>, but an inline <src> HTML element will
return <code class="literal">True</code>.</p></div><div class="refsect2" title="atk.Hyperlink.is_selected_link"><a name="method-atkhyperlink--is-selected-link"></a><h3>atk.Hyperlink.is_selected_link</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">is_selected_link</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><code class="literal">True</code> if the <a class="link" href="class-atkhyperlink.html" title="atk.Hyperlink"><code class="classname">atk.Hyperlink</code></a>
is selected.</td></tr></tbody></table><p>Determines whether this <a class="link" href="class-atkhyperlink.html" title="atk.Hyperlink"><code class="classname">atk.Hyperlink</code></a>
is selected</p></div></div><div class="refsect1" title="Signals"><a name="id2935718"></a><h2>Signals</h2><div class="refsect2" title='The "link-activated" atk.Hyperlink Signal'><a name="signal-atkhyperlink--link-activated"></a><h3>The "link-activated" atk.Hyperlink Signal</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">callback</span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>atkhyperlink</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>user_param1</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>...</code></em></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"><em class="parameter"><code>atkhyperlink</code></em> :</span></p></td><td>the object which received the signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_param1</code></em> :</span></p></td><td>the first user parameter (if any) specified
with the <PYGTKDOCLINK HREF="method-gobject--connect"><code class="methodname">connect</code>()</PYGTKDOCLINK>
method</td></tr><tr><td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td><td>additional user parameters (if any)</td></tr></tbody></table><p>The signal "link-activated" is emitted when a link is
activated.</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-atkgobjectaccessible.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="atk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-atkhypertext.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">atk.GObjectAccessible </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> atk.Hypertext</td></tr></table></div></body></html>
|