Class

GtkSourceGutterLines

since: 5

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.

Available since: 5

Hierarchy

hierarchy this GtkSourceGutterLines ancestor_0 GObject ancestor_0--this

Ancestors

Instance methods

gtk_source_gutter_lines_add_class

Adds the class name to line.

since: 5

gtk_source_gutter_lines_add_qclass

Adds the class denoted by qname to line.

since: 5

gtk_source_gutter_lines_get_buffer

Gets the GtkTextBuffer that the GtkSourceGutterLines represents.

since: 5

gtk_source_gutter_lines_get_first

Gets the line number (starting from 0) for the first line that is user visible.

since: 5

gtk_source_gutter_lines_get_iter_at_line

Gets a GtkTextIter for the current buffer at line.

since: 5

gtk_source_gutter_lines_get_last

Gets the line number (starting from 0) for the last line that is user visible.

since: 5

gtk_source_gutter_lines_get_line_yrange

Gets the Y range for a line based on mode.

since: 5

gtk_source_gutter_lines_get_view

Gets the GtkTextView that the GtkSourceGutterLines represents.

since: 5

gtk_source_gutter_lines_has_class

Checks to see if gtk_source_gutter_lines_add_class() was called with the name for line.

since: 5

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.

since: 5

gtk_source_gutter_lines_is_cursor

Checks to see if line contains the insertion cursor.

since: 5

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.

since: 5

gtk_source_gutter_lines_is_selected

Checks to see if the view had a selection and if that selection overlaps line in some way.

since: 5

gtk_source_gutter_lines_remove_class

Removes the class matching name from line.

since: 5

gtk_source_gutter_lines_remove_qclass

Reverses a call to gtk_source_gutter_lines_add_qclass() by removing the GQuark matching qname.

since: 5

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

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.

since: 2.0

Class structure

struct GtkSourceGutterLinesClass {
  GObjectClass parent_class;
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.