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 gtksource.gutter_renderer.GutterRenderer.queryData 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
GutterLinesGidBuilder builder() static nothrowGet builder for [gtksource.gutter_lines.GutterLines] Returns: New builder objectgtk.text_buffer.TextBuffer getBuffer() nothrowGets the [gtk.text_buffer.TextBuffer] that the [gtksource.gutter_lines.GutterLines] represents. Returns: a #GtkTextBufferuint getFirst() nothrowGets the line number (starting from 0) for the first line that is user visible. Returns: a line number starting from 0void getIterAtLine(out gtk.text_iter.TextIter iter, uint line) nothrowGets a #GtkTextIter for the current buffer at lineuint getLast() nothrowGets the line number (starting from 0) for the last line that is user visible. Returns: a line number starting from 0void getLineYrange(uint line, gtksource.types.GutterRendererAlignmentMode mode, out int y, out int height) nothrowGets the Y range for a line based on mode.gtk.text_view.TextView getView() nothrowGets the [gtk.text_view.TextView] that the [gtksource.gutter_lines.GutterLines] represents. Returns: a #GtkTextViewbool hasAnyClass(uint line) nothrowChecks 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) nothrowChecks to see if [gtksource.gutter_lines.GutterLines.addClass] was called with the name for line.bool hasQclass(uint line, glib.types.Quark qname) nothrowChecks to see if [gtksource.gutter_lines.GutterLines.addQclass] was called with the quark denoted by qname for line.bool isPrelit(uint line) nothrowChecks 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) nothrowChecks to see if the view had a selection and if that selection overlaps line in some way.void removeQclass(uint line, glib.types.Quark qname) nothrowReverses a call to [gtksource.gutter_lines.GutterLines.addQclass] by removing the [glib.types.uint] matching qname.Fluent builder implementation template for gtksource.gutter_lines.GutterLines
Fluent builder for gtksource.gutter_lines.GutterLines
Methods