Mark

Mark object for class@Buffer.

A gtksource.mark.Mark marks a position in the text where you want to display additional info. It is based on gtk.text_mark.TextMark and thus is still valid after the text has changed though its position may change.

gtksource.mark.Marks 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 gtksource.view.View.setMarkAttributes. The pixbuf will be displayed in the margin at the line where the mark residents if the property@View: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.

Constructors

this
this(string name, string category)

Creates a text mark.

Members

Functions

getCategory
string getCategory()

Returns the mark category.

next
gtksource.mark.Mark next(string category)

Returns the next gtksource.mark.Mark in the buffer or null if the mark was not added to a buffer.

prev
gtksource.mark.Mark prev(string category)

Returns the previous gtksource.mark.Mark in the buffer or null if the mark was not added to a buffer.

Inherited Members

From TextMark

getBuffer
gtk.text_buffer.TextBuffer getBuffer()

Gets the buffer this mark is located inside.

getDeleted
bool getDeleted()

Returns true if the mark has been removed from its buffer.

getLeftGravity
bool getLeftGravity()

Determines whether the mark has left gravity.

getName
string getName()

Returns the mark name.

getVisible
bool getVisible()

Returns true if the mark is visible.

setVisible
void setVisible(bool setting)