gtksource.gutter

Module for Gutter class

Types 3

Gutter object for gtksource.view.View.

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

To get a gtksource.gutter.Gutter, use the gtksource.view.View.getGutter function.

The gutter works very much the same way as cells rendered in a gtk.tree_view.TreeView. The concept is similar, with the exception that the gutter does not have an underlying gtk.tree_model.TreeModel. The builtin line number renderer is at position gtksource.types.ViewGutterPosition.Lines (-30) and the marks renderer is at gtksource.types.ViewGutterPosition.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.

Methods
GType _gType() @property
Gutter self()Returns `this`, for use in `with` statements.
GutterGidBuilder builder()Get builder for [gtksource.gutter.Gutter] Returns: New builder object
gtksource.view.View view() @propertyGet `view` property. Returns: The #GtkSourceView of the gutter.
gtk.types.TextWindowType windowType() @propertyGet `windowType` property. Returns: The text window type on which the window is placed.
bool insert(gtksource.gutter_renderer.GutterRenderer renderer, int position)Insert renderer into the gutter. If renderer is yet unowned then gutter claims its ownership. Otherwise just increases renderer's reference count. renderer cannot be already inserted to another gut...
void reorder(gtksource.gutter_renderer.GutterRenderer renderer, int position)Reorders renderer in gutter to new position.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtksource.gutter.Gutter

Methods
T view(gtksource.view.View propval)Set `view` property. Params: propval = The #GtkSourceView of the gutter. Returns: Builder instance for fluent chaining
T windowType(gtk.types.TextWindowType propval)Set `windowType` property. Params: propval = The text window type on which the window is placed. Returns: Builder instance for fluent chaining

Fluent builder for gtksource.gutter.Gutter

Methods
Gutter build()Create object from builder. Returns: New object