23
23
<link linkend="GtkTextMark-struct">GtkTextMark</link>;
24
<link linkend="GtkTextMark">GtkTextMark</link>* <link linkend="gtk-text-mark-new">gtk_text_mark_new</link> (const <link linkend="gchar">gchar</link> *name,
25
<link linkend="gboolean">gboolean</link> left_gravity);
24
26
<link linkend="void">void</link> <link linkend="gtk-text-mark-set-visible">gtk_text_mark_set_visible</link> (<link linkend="GtkTextMark">GtkTextMark</link> *mark,
25
27
<link linkend="gboolean">gboolean</link> setting);
26
28
<link linkend="gboolean">gboolean</link> <link linkend="gtk-text-mark-get-visible">gtk_text_mark_get_visible</link> (<link linkend="GtkTextMark">GtkTextMark</link> *mark);
52
<refsect1 role="properties">
53
<title role="properties.title">Properties</title>
56
<link linkend="GtkTextMark--left-gravity">left-gravity</link> <link linkend="gboolean">gboolean</link> : Read / Write / Construct Only
57
<link linkend="GtkTextMark--name">name</link> <link linkend="gchararray">gchararray</link> : Read / Write / Construct Only
105
115
</para></refsect2>
117
<title><anchor id="gtk-text-mark-new" role="function" condition="since:2.12"/>gtk_text_mark_new ()</title>
118
<indexterm role="2.12"><primary>gtk_text_mark_new</primary></indexterm><programlisting><link linkend="GtkTextMark">GtkTextMark</link>* gtk_text_mark_new (const <link linkend="gchar">gchar</link> *name,
119
<link linkend="gboolean">gboolean</link> left_gravity);</programlisting>
121
Creates a text mark. Add it to a buffer using <link linkend="gtk-text-buffer-add-mark"><function>gtk_text_buffer_add_mark()</function></link>.
122
If <parameter>name</parameter> is <link linkend="NULL:CAPS"><literal>NULL</literal></link>, the mark is anonymous; otherwise, the mark can be
123
retrieved by name using <link linkend="gtk-text-buffer-get-mark"><function>gtk_text_buffer_get_mark()</function></link>. If a mark has left
124
gravity, and text is inserted at the mark's current location, the mark
125
will be moved to the left of the newly-inserted text. If the mark has
126
right gravity (<parameter>left_gravity</parameter> = <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>), the mark will end up on the
127
right of newly-inserted text. The standard left-to-right cursor is a
128
mark with right gravity (when you type, the cursor stays on the right
129
side of the text you're typing).</para>
132
</para><variablelist role="params">
133
<varlistentry><term><parameter>name</parameter> :</term>
134
<listitem><simpara> mark name or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
135
</simpara></listitem></varlistentry>
136
<varlistentry><term><parameter>left_gravity</parameter> :</term>
137
<listitem><simpara> whether the mark should have left gravity
138
</simpara></listitem></varlistentry>
139
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> new <link linkend="GtkTextMark"><type>GtkTextMark</type></link>
141
</simpara></listitem></varlistentry>
142
</variablelist><para role="since">Since 2.12
107
145
<title><anchor id="gtk-text-mark-set-visible" role="function"/>gtk_text_mark_set_visible ()</title>
108
146
<indexterm><primary>gtk_text_mark_set_visible</primary></indexterm><programlisting><link linkend="void">void</link> gtk_text_mark_set_visible (<link linkend="GtkTextMark">GtkTextMark</link> *mark,
109
147
<link linkend="gboolean">gboolean</link> setting);</programlisting>
143
181
<indexterm><primary>gtk_text_mark_get_deleted</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> gtk_text_mark_get_deleted (<link linkend="GtkTextMark">GtkTextMark</link> *mark);</programlisting>
145
183
Returns <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the mark has been removed from its buffer
146
with <link linkend="gtk-text-buffer-delete-mark"><function>gtk_text_buffer_delete_mark()</function></link>. Marks can't be used
184
with <link linkend="gtk-text-buffer-delete-mark"><function>gtk_text_buffer_delete_mark()</function></link>. See <link linkend="gtk-text-buffer-add-mark"><function>gtk_text_buffer_add_mark()</function></link>
185
for a way to add it to a buffer again.</para>
150
188
</para><variablelist role="params">
173
211
<indexterm><primary>gtk_text_mark_get_buffer</primary></indexterm><programlisting><link linkend="GtkTextBuffer">GtkTextBuffer</link>* gtk_text_mark_get_buffer (<link linkend="GtkTextMark">GtkTextMark</link> *mark);</programlisting>
175
213
Gets the buffer this mark is located inside,
176
or NULL if the mark is deleted.</para>
214
or <link linkend="NULL:CAPS"><literal>NULL</literal></link> if the mark is deleted.</para>
179
217
</para><variablelist role="params">
199
237
</variablelist></refsect2>
240
<refsect1 role="property_details">
241
<title role="property_details.title">Property Details</title>
242
<refsect2><title><anchor id="GtkTextMark--left-gravity"/>The :<literal>left-gravity</literal> property</title>
243
<indexterm><primary>GtkTextMark:left-gravity</primary></indexterm><programlisting> left-gravity <link linkend="gboolean">gboolean</link> : Read / Write / Construct Only</programlisting>
244
<para>Whether the mark has left gravity.</para><para>Default value: FALSE</para>
246
<refsect2><title><anchor id="GtkTextMark--name"/>The :<literal>name</literal> property</title>
247
<indexterm><primary>GtkTextMark:name</primary></indexterm><programlisting> name <link linkend="gchararray">gchararray</link> : Read / Write / Construct Only</programlisting>
248
<para>Mark name.</para><para>Default value: NULL</para>