Synopsis#include <gtk/gtk.h> GtkTextMark; GtkTextMark* gtk_text_mark_new (const gchar *name, gboolean left_gravity); void gtk_text_mark_set_visible (GtkTextMark *mark, gboolean setting); gboolean gtk_text_mark_get_visible (GtkTextMark *mark); gboolean gtk_text_mark_get_deleted (GtkTextMark *mark); const gchar* gtk_text_mark_get_name (GtkTextMark *mark); GtkTextBuffer* gtk_text_mark_get_buffer (GtkTextMark *mark); gboolean gtk_text_mark_get_left_gravity (GtkTextMark *mark); Properties"left-gravity" gboolean : Read / Write / Construct Only "name" gchar* : Read / Write / Construct Only DescriptionYou may wish to begin by reading the text widget conceptual overview which gives an overview of all the objects and data types related to the text widget and how they work together.
A GtkTextMark is like a bookmark in a text buffer; it preserves a position in
the text. You can convert the mark to an iterator using
Marks are reference counted, but the reference count only controls the validity
of the memory; marks can be deleted from the buffer at any time with
Marks optionally have names; these can be convenient to avoid passing the GtkTextMark object around.
Marks are typically created using the Detailsgtk_text_mark_new ()GtkTextMark* gtk_text_mark_new (const gchar *name, gboolean left_gravity);
Creates a text mark. Add it to a buffer using
Since 2.12 gtk_text_mark_set_visible ()void gtk_text_mark_set_visible (GtkTextMark *mark, gboolean setting);
Sets the visibility of
gtk_text_mark_get_visible ()gboolean gtk_text_mark_get_visible (GtkTextMark *mark);
Returns
gtk_text_mark_get_deleted ()gboolean gtk_text_mark_get_deleted (GtkTextMark *mark);
Returns
gtk_text_mark_get_name ()const gchar* gtk_text_mark_get_name (GtkTextMark *mark); Returns the mark name; returns NULL for anonymous marks.
gtk_text_mark_get_buffer ()GtkTextBuffer* gtk_text_mark_get_buffer (GtkTextMark *mark);
Gets the buffer this mark is located inside,
or
gtk_text_mark_get_left_gravity ()gboolean gtk_text_mark_get_left_gravity (GtkTextMark *mark); Determines whether the mark has left gravity.
Property DetailsThe
|