GutterLines
Object Hierarchy:
GtkSource.GutterLines
GtkSource.GutterLines
GtkSource.GutterLines
GLib.Object
GLib.Object
GLib.Object->GtkSource.GutterLines
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_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
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref