1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.TextChildAnchor</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="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><link rel="next" href="class-gtktextiter.html" title="gtk.TextIter"></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">gtk.TextChildAnchor</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtktextbuffer.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktextiter.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.TextChildAnchor"><a name="class-gtktextchildanchor"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.TextChildAnchor</h2><p>gtk.TextChildAnchor — a location in a textbuffer for placing widgets</p></div><div class="refsect1" title="Synopsis"><a name="id3952158"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.TextChildAnchor</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-gtktextchildanchor.html#constructor-gtktextchildanchor" title="Constructor">gtk.TextChildAnchor</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextchildanchor.html#method-gtktextchildanchor--get-widgets" title="gtk.TextChildAnchor.get_widgets">get_widgets</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextchildanchor.html#method-gtktextchildanchor--get-deleted" title="gtk.TextChildAnchor.get_deleted">get_deleted</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Ancestry"><a name="id3952249"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
+-- <a class="link" href="class-gtktextchildanchor.html" title="gtk.TextChildAnchor">gtk.TextChildAnchor</a>
</pre></div><div class="refsect1" title="gtk.TextChildAnchor Signal Prototypes"><a name="signal-prototypes-gtktextchildanchor"></a><h2>gtk.TextChildAnchor Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p></div><div class="refsect1" title="Description"><a name="id3952295"></a><h2>Description</h2><p>A <a class="link" href="class-gtktextchildanchor.html" title="gtk.TextChildAnchor"><code class="classname">gtk.TextChildAnchor</code></a>
provides a location in a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
for placing child widgets in a <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a>.
Since a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
can be associated with more than one <a class="link" href="class-gtktextview.html" title="gtk.TextView"><code class="classname">gtk.TextView</code></a> a
<a class="link" href="class-gtktextchildanchor.html" title="gtk.TextChildAnchor"><code class="classname">gtk.TextChildAnchor</code></a>
can have a different child widget inserted for each textview it is displayed
in.</p></div><div class="refsect1" title="Constructor"><a name="constructor-gtktextchildanchor"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis"> <span class="methodname">gtk.TextChildAnchor</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 new <a class="link" href="class-gtktextchildanchor.html" title="gtk.TextChildAnchor"><code class="classname">gtk.TextChildAnchor</code></a>
object</td></tr></tbody></table><p>Creates a new <a class="link" href="class-gtktextchildanchor.html" title="gtk.TextChildAnchor"><code class="classname">gtk.TextChildAnchor</code></a>.
Usually you would then insert it into a <a class="link" href="class-gtktextbuffer.html" title="gtk.TextBuffer"><code class="classname">gtk.TextBuffer</code></a>
with the <a class="link" href="class-gtktextbuffer.html#method-gtktextbuffer--insert-child-anchor" title="gtk.TextBuffer.insert_child_anchor"><code class="methodname">gtk.TextBuffer.insert_child_anchor</code>()</a>
method. To perform the creation and insertion in one step, use the
convenience method <a class="link" href="class-gtktextbuffer.html#method-gtktextbuffer--create-child-anchor" title="gtk.TextBuffer.create_child_anchor"><code class="methodname">gtk.TextBuffer.create_child_anchor</code>()</a>
method.</p></div><div class="refsect1" title="Methods"><a name="id3952450"></a><h2>Methods</h2><div class="refsect2" title="gtk.TextChildAnchor.get_widgets"><a name="method-gtktextchildanchor--get-widgets"></a><h3>gtk.TextChildAnchor.get_widgets</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_widgets</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 list of widgets anchored at the child
anchor</td></tr></tbody></table><p>The <code class="methodname">get_widgets</code>() method returns a list
of all widgets anchored at this child anchor from all the associated
textviews.</p></div><div class="refsect2" title="gtk.TextChildAnchor.get_deleted"><a name="method-gtktextchildanchor--get-deleted"></a><h3>gtk.TextChildAnchor.get_deleted</h3><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">get_deleted</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 child anchor has
been deleted from its textbuffer</td></tr></tbody></table><p>The <code class="methodname">get_deleted</code>() method returns
<code class="literal">True</code> if the child anchor has been deleted from its
textbuffer.</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-gtktextbuffer.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gtktextiter.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.TextBuffer </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.TextIter</td></tr></table></div></body></html>
|