Class
GtkSourceGutterLines
Description [src]
final class GtkSource.GutterLines : GObject.Object
{
/* No available fields */
}
Collected information about visible lines.
The GtkSourceGutterLines
object is used to collect information about
visible lines.
Use this from your GtkSourceGutterRenderer::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.
Instance methods
gtk_source_gutter_lines_get_first
Gets the line number (starting from 0) for the first line that is user visible.
gtk_source_gutter_lines_get_last
Gets the line number (starting from 0) for the last line that is user visible.
gtk_source_gutter_lines_has_any_class
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.
since: 5.6
gtk_source_gutter_lines_has_class
Checks to see if gtk_source_gutter_lines_add_class()
was called with
the name
for line
.
gtk_source_gutter_lines_has_qclass
Checks to see if gtk_source_gutter_lines_add_qclass()
was called with
the quark denoted by qname
for line
.
gtk_source_gutter_lines_is_prelit
Checks to see if line
is marked as prelit. Generally, this means
the mouse pointer is over the line within the gutter.
gtk_source_gutter_lines_is_selected
Checks to see if the view had a selection and if that selection overlaps
line
in some way.
gtk_source_gutter_lines_remove_qclass
Reverses a call to gtk_source_gutter_lines_add_qclass()
by removing
the GQuark
matching qname
.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.