GutterLines
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_source_gutter_lines_get_type ()" ) ]
public class GutterLines :
Object
Collected information about visible lines.
The `GtkSourceGutterLines` object is used to collect information about visible lines.
Use this from your [signal@GutterRenderer:GtkSourceGutterLines: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.
Content:
Creation methods:
Methods:
- public void add_class (uint line, string name)
Adds the class name to line.
- public void add_qclass (uint line, Quark qname)
Adds the class denoted by qname to line.
- public unowned TextBuffer get_buffer ()
Gets the [class@Gtk.
- public uint get_first ()
Gets the line number (starting from 0) for the first line that is user
visible.
- public void get_iter_at_line (out TextIter iter, uint line)
Gets a TextIter
for the current buffer at line
- public uint get_last ()
Gets the line number (starting from 0) for the last line that is user
visible.
- public void get_line_extent (uint line, GutterRendererAlignmentMode mode, out double y, out double height)
Gets the Y range for a line based on mode.
- public void get_line_yrange (uint line, GutterRendererAlignmentMode mode, out int y, out int height)
Gets the Y range for a line based on mode.
- public unowned TextView get_view ()
Gets the [class@Gtk.
- public bool has_any_class (uint line)
Checks to see if the line has any GQuark classes set.
- public bool has_class (uint line, string name)
Checks to see if [method@GutterLines.
- public bool has_qclass (uint line, Quark qname)
Checks to see if [method@GutterLines.
- public bool is_cursor (uint line)
Checks to see if line contains the insertion cursor.
- public bool is_prelit (uint line)
Checks to see if line is marked as prelit.
- public bool is_selected (uint line)
Checks to see if the view had a selection and if that selection
overlaps line in some way.
- public void remove_class (uint line, string name)
Removes the class matching name from line.
- public void remove_qclass (uint line, Quark qname)
Reverses a call to [method@GutterLines.
Inherited Members:
All known members inherited from class GLib.Object