1
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.TextMark</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" 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-gtktextiter.html" title="gtk.TextIter"><link rel="next" href="class-gtktexttag.html" title="gtk.TextTag"></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.TextMark</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtktextiter.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtktexttag.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtktextmark"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.TextMark</h2><p>gtk.TextMark — a position in a textbuffer that is preserved across
2
textbuffer modifications</p></div><div class="refsect1" lang="en"><a name="id3719873"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.TextMark</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
3
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--set-visible" title="gtk.TextMark.set_visible">set_visible</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--get-visible" title="gtk.TextMark.get_visible">get_visible</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--get-name" title="gtk.TextMark.get_name">get_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--get-deleted" title="gtk.TextMark.get_deleted">get_deleted</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--get-buffer" title="gtk.TextMark.get_buffer">get_buffer</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--get-left-gravity" title="gtk.TextMark.get_left_gravity">get_left_gravity</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3720032"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
2
textbuffer modifications</p></div><div class="refsect1" lang="en"><a name="id3920780"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.TextMark</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
3
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--set-visible" title="gtk.TextMark.set_visible">set_visible</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>setting</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--get-visible" title="gtk.TextMark.get_visible">get_visible</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--get-name" title="gtk.TextMark.get_name">get_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--get-deleted" title="gtk.TextMark.get_deleted">get_deleted</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--get-buffer" title="gtk.TextMark.get_buffer">get_buffer</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-gtktextmark.html#method-gtktextmark--get-left-gravity" title="gtk.TextMark.get_left_gravity">get_left_gravity</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3920939"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
4
4
+-- <a class="link" href="class-gtktextmark.html" title="gtk.TextMark">gtk.TextMark</a>
5
</pre></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtktextmark"></a><h2>gtk.TextMark Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p></div><div class="refsect1" lang="en"><a name="id3720078"></a><h2>Description</h2><p>A <a class="link" href="class-gtktextmark.html" title="gtk.TextMark"><code class="classname">gtk.TextMark</code></a> is
5
</pre></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtktextmark"></a><h2>gtk.TextMark Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p></div><div class="refsect1" lang="en"><a name="id3920985"></a><h2>Description</h2><p>A <a class="link" href="class-gtktextmark.html" title="gtk.TextMark"><code class="classname">gtk.TextMark</code></a> is
6
6
like a bookmark in a textbuffer - it preserves a position in the text. You
7
7
can get an iterator corresponding to a textmark by using the <a class="link" href="class-gtktextbuffer.html#method-gtktextbuffer--get-iter-at-mark" title="gtk.TextBuffer.get_iter_at_mark"><code class="methodname">gtk.TextBuffer.get_iter_at_mark</code>()</a>
8
8
method. Unlike iterators, textmarks remain valid across buffer modifications