Mark

open class Mark(pointer: <Error class: unknown class><<Error class: unknown class>>)

Mark object for class@Buffer.

A GtkSourceMark marks a position in the text where you want to display additional info. It is based on class@Gtk.TextMark 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 method@View.set_mark_attributes. 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

Link copied to clipboard
constructor(name: String? = null, category: String)

Creates a text mark.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val category: String

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

Link copied to clipboard
val gtksourceMarkPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun getCategory(): String

Returns the mark category.

Link copied to clipboard
open fun next(category: String? = null): Mark?

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

Link copied to clipboard
open fun prev(category: String? = null): Mark?

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