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
GType _getGType() static nothrow
GType _gType() @property nothrow
GutterLines self() nothrowReturns `this`, for use in `with` statements.
GutterLinesGidBuilder builder() static nothrowGet builder for [gtksource.gutter_lines.GutterLines] Returns: New builder object
void addClass(uint line, string name) nothrowAdds the class name to line.
void addQclass(uint line, glib.types.Quark qname) nothrowAdds the class denoted by qname to line.
gtk.text_buffer.TextBuffer getBuffer() nothrowGets the [gtk.text_buffer.TextBuffer] that the [gtksource.gutter_lines.GutterLines] represents. Returns: a #GtkTextBuffer
uint getFirst() nothrowGets 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) nothrowGets a #GtkTextIter for the current buffer at line
uint getLast() nothrowGets 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) 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 #GtkTextView
bool 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 isCursor(uint line) nothrowChecks to see if line contains the insertion cursor.
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 removeClass(uint line, string name) nothrowRemoves the class matching name from line.
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.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
GutterLines build() nothrowCreate object from builder. Returns: New object