gtksource.gutter_lines

Module for [GutterLines] class

Types 3

Collected information about visible lines.

The [gtksource.gutter_lines.GutterLines] 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.

Methods
GType _gType() @property
GutterLines self()Returns `this`, for use in `with` statements.
GutterLinesGidBuilder builder()Get builder for [gtksource.gutter_lines.GutterLines] Returns: New builder object
void addClass(uint line, string name)Adds the class name to line.
void addQclass(uint line, glib.types.Quark qname)Adds the class denoted by qname to line.
gtk.text_buffer.TextBuffer getBuffer()Gets the [gtk.textbuffer.TextBuffer] that the [gtksource.gutterlines.GutterLines] represents. Returns: a #GtkTextBuffer
uint getFirst()Gets the line number (starting from 0) for the first line that is user visible. Returns: a line number starting from 0
void getIterAtLine(out gtk.text_iter.TextIter iter, uint line)Gets a #GtkTextIter for the current buffer at line
uint getLast()Gets the line number (starting from 0) for the last line that is user visible. Returns: a line number starting from 0
void getLineYrange(uint line, gtksource.types.GutterRendererAlignmentMode mode, out int y, out int height)Gets the Y range for a line based on mode.
gtk.text_view.TextView getView()Gets the [gtk.textview.TextView] that the [gtksource.gutterlines.GutterLines] represents. Returns: a #GtkTextView
bool hasAnyClass(uint line)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.
bool hasClass(uint line, string name)Checks to see if [gtksource.gutter_lines.GutterLines.addClass] was called with the name for line.
bool hasQclass(uint line, glib.types.Quark qname)Checks to see if [gtksource.gutter_lines.GutterLines.addQclass] was called with the quark denoted by qname for line.
bool isCursor(uint line)Checks to see if line contains the insertion cursor.
bool isPrelit(uint line)Checks to see if line is marked as prelit. Generally, this means the mouse pointer is over the line within the gutter.
bool isSelected(uint line)Checks to see if the view had a selection and if that selection overlaps line in some way.
void removeClass(uint line, string name)Removes the class matching name from line.
void removeQclass(uint line, glib.types.Quark qname)Reverses a call to [gtksource.gutter_lines.GutterLines.addQclass] by removing the [glib.types.uint] matching qname.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gtksource.gutter_lines.GutterLines]