Gutter

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

Gutter object for class@View.

The GtkSourceGutter object represents the left or right gutter of the text view. It is used by class@View to draw the line numbers and class@Marks that might be present on a line. By packing additional class@GutterRenderer objects in the gutter, you can extend the gutter with your own custom drawings.

To get a GtkSourceGutter, use the method@View.get_gutter function.

The gutter works very much the same way as cells rendered in a class@Gtk.TreeView. The concept is similar, with the exception that the gutter does not have an underlying iface@Gtk.TreeModel. The builtin line number renderer is at position %GTK_SOURCE_VIEW_GUTTER_POSITION_LINES (-30) and the marks renderer is at %GTK_SOURCE_VIEW_GUTTER_POSITION_MARKS (-20). The gutter sorts the renderers in ascending order, from left to right. So the marks are displayed on the right of the line numbers.

Skipped during bindings generation

  • method window-type: Property has no getter nor setter

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
open val gtkAccessiblePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkBuildablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkConstraintTargetPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtksourceGutterPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val view: View

The #GtkSourceView of the gutter.

Functions

Link copied to clipboard
open fun getView(): View
Link copied to clipboard
open fun insert(renderer: GutterRenderer, position: Int): Boolean

Insert @renderer into the gutter. If @renderer is yet unowned then gutter claims its ownership. Otherwise just increases renderer's reference count.

Link copied to clipboard
open fun remove(renderer: GutterRenderer)
Link copied to clipboard
open fun reorder(renderer: GutterRenderer, position: Int)

Reorders @renderer in @gutter to new @position.