Gutter


Object Hierarchy:

GtkSource.Gutter GtkSource.Gutter GtkSource.Gutter Gtk.Widget Gtk.Widget Gtk.Widget->GtkSource.Gutter GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->GtkSource.Gutter Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->GtkSource.Gutter Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->GtkSource.Gutter Gtk.ConstraintTarget->Gtk.Widget

Description:

[ CCode ( type_id = "gtk_source_gutter_get_type ()" ) ]
public class Gutter : Widget, Accessible, Buildable, ConstraintTarget

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@Mark]s 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 [[email protected]_gutter] function.

The gutter works very much the same way as cells rendered in a [[email protected]]. The concept is similar, with the exception that the gutter does not have an underlying [[email protected]]. 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.


Namespace: GtkSource
Package: gtksourceview-5

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable



2022 vala-language.org