Class

GtkSourceMark

Description [src]

class GtkSource.Mark : Gtk.TextMark {
  parent_instance: GtkTextMark
}

Mark object for GtkSourceBuffer.

A GtkSourceMark marks a position in the text where you want to display additional info. It is based on GtkTextMark and thus is still valid after the text has changed though its position may change.

GtkSourceMarks are organized in categories which you have to set when you create the mark. Each category can have a priority, a pixbuf and other associated attributes. See gtk_source_view_set_mark_attributes(). The pixbuf will be displayed in the margin at the line where the mark residents if the GtkSourceView:show-line-marks property is set to TRUE. If there are multiple marks in the same line, the pixbufs will be drawn on top of each other. The mark with the highest priority will be drawn on top.

Ancestors

  • GtkTextMark
  • GObject

Constructors

gtk_source_mark_new

Creates a text mark.

Instance methods

gtk_source_mark_get_category

Returns the mark category.

gtk_source_mark_next

Returns the next GtkSourceMark in the buffer or NULL if the mark was not added to a buffer.

gtk_source_mark_prev

Returns the previous GtkSourceMark in the buffer or NULL if the mark was not added to a buffer.

Properties

GtkSource.Mark:category

The category of the GtkSourceMark, classifies the mark and controls which pixbuf is used and with which priority it is drawn.

Class structure

struct GtkSourceMarkClass {
  GtkTextMarkClass parent_class;
  
}
Class members
parent_class
GtkTextMarkClass
  No description available.