GtkSourceGutter

Gutter object for class@View.

The gtksource.gutter.Gutter 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 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.

struct GtkSourceGutter