GutterLines

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

Collected information about visible lines.

The GtkSourceGutterLines object is used to collect information about visible lines.

Use this from your signal@GutterRenderer::query-data to collect the necessary information on visible lines. Doing so reduces the number of passes through the text btree allowing GtkSourceView to reach more frames-per-second while performing kinetic scrolling.

Skipped during bindings generation

  • parameter y: y: Out parameter is not supported

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
open fun addClass(line: <Error class: unknown class>, name: String)

Adds the class @name to @line.

Link copied to clipboard
open fun addQclass(line: <Error class: unknown class>, qname: <Error class: unknown class>)

Adds the class denoted by @qname to @line.

Link copied to clipboard
open fun getBuffer(): <Error class: unknown class>

Gets the class@Gtk.TextBuffer that the GtkSourceGutterLines represents.

Link copied to clipboard
open fun getFirst(): <Error class: unknown class>

Gets the line number (starting from 0) for the first line that is user visible.

Link copied to clipboard
open fun getIterAtLine(iter: <Error class: unknown class>, line: <Error class: unknown class>)

Gets a #GtkTextIter for the current buffer at @line

Link copied to clipboard
open fun getLast(): <Error class: unknown class>

Gets the line number (starting from 0) for the last line that is user visible.

Link copied to clipboard
open fun getView(): <Error class: unknown class>

Gets the class@Gtk.TextView that the GtkSourceGutterLines represents.

Link copied to clipboard
open fun hasAnyClass(line: <Error class: unknown class>): Boolean

Checks to see if the line has any GQuark classes set. This can be used to help renderer implementations avoid work if nothing has been set on the class.

Link copied to clipboard
open fun hasClass(line: <Error class: unknown class>, name: String): Boolean

Checks to see if method@GutterLines.add_class was called with the @name for @line.

Link copied to clipboard
open fun hasQclass(line: <Error class: unknown class>, qname: <Error class: unknown class>): Boolean

Checks to see if method@GutterLines.add_qclass was called with the quark denoted by @qname for @line.

Link copied to clipboard
open fun isCursor(line: <Error class: unknown class>): Boolean

Checks to see if @line contains the insertion cursor.

Link copied to clipboard
open fun isPrelit(line: <Error class: unknown class>): Boolean

Checks to see if @line is marked as prelit. Generally, this means the mouse pointer is over the line within the gutter.

Link copied to clipboard
open fun isSelected(line: <Error class: unknown class>): Boolean

Checks to see if the view had a selection and if that selection overlaps

Link copied to clipboard
open fun removeClass(line: <Error class: unknown class>, name: String)

Removes the class matching @name from @line.

Link copied to clipboard
open fun removeQclass(line: <Error class: unknown class>, qname: <Error class: unknown class>)

Reverses a call to method@GutterLines.add_qclass by removing the alias@GLib.Quark matching @qname.