Class: GtkSource::GutterLines
- Inherits:
-
Object
- Object
- GtkSource::GutterLines
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#add_class(line, name) ⇒ nil
Adds the class name to line.
-
#add_qclass(line, qname) ⇒ nil
Adds the class denoted by qname to line.
-
#buffer ⇒ Gtk::TextBuffer
Gets the [classGtk.TextBuffer] that the
GtkSourceGutterLinesrepresents. -
#first ⇒ Integer
Gets the line number (starting from 0) for the first line that is user visible.
-
#get_iter_at_line(iter, line) ⇒ nil
Gets a Gtk::TextIter for the current buffer at line.
-
#get_line_yrange(line, mode, y, height) ⇒ nil
Gets the Y range for a line based on mode.
-
#has_any_class(line) ⇒ Boolean
Checks to see if the line has any GQuark classes set.
-
#has_class(line, name) ⇒ Boolean
Checks to see if [methodGutterLines.add_class] was called with the name for line.
-
#has_qclass(line, qname) ⇒ Boolean
Checks to see if [methodGutterLines.add_qclass] was called with the quark denoted by qname for line.
-
#is_cursor(line) ⇒ Boolean
Checks to see if line contains the insertion cursor.
-
#is_prelit(line) ⇒ Boolean
Checks to see if line is marked as prelit.
-
#is_selected(line) ⇒ Boolean
Checks to see if the view had a selection and if that selection overlaps line in some way.
-
#last ⇒ Integer
Gets the line number (starting from 0) for the last line that is user visible.
-
#remove_class(line, name) ⇒ nil
Removes the class matching name from line.
-
#remove_qclass(line, qname) ⇒ nil
Reverses a call to [methodGutterLines.add_qclass] by removing the [aliasGLib.Quark] matching qname.
-
#view ⇒ Gtk::TextView
Gets the [classGtk.TextView] that the
GtkSourceGutterLinesrepresents.
Instance Method Details
#add_class(line, name) ⇒ nil
Adds the class name to line.
name will be converted to a [aliasGLib.Quark] as part of this process. A faster version of this function is available via [methodGutterLines.add_qclass] for situations where the [aliasGLib.Quark] is known ahead of time.
#add_qclass(line, qname) ⇒ nil
Adds the class denoted by qname to line.
You may check if a line has qname by calling [methodGutterLines.has_qclass].
You can remove qname by calling [methodGutterLines.remove_qclass].
#buffer ⇒ Gtk::TextBuffer
Gets the [classGtk.TextBuffer] that the GtkSourceGutterLines represents.
#first ⇒ Integer
Gets the line number (starting from 0) for the first line that is user visible.
#get_iter_at_line(iter, line) ⇒ nil
Gets a Gtk::TextIter for the current buffer at line
#get_line_yrange(line, mode, y, height) ⇒ nil
Gets the Y range for a line based on mode.
The value for y is relative to the renderers widget coordinates.
#has_any_class(line) ⇒ Boolean
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.
#has_class(line, name) ⇒ Boolean
Checks to see if [methodGutterLines.add_class] was called with the name for line.
A faster version of this function is provided via [methodGutterLines.has_qclass] for situations where the quark is known ahead of time.
#has_qclass(line, qname) ⇒ Boolean
Checks to see if [methodGutterLines.add_qclass] was called with the quark denoted by qname for line.
#is_cursor(line) ⇒ Boolean
Checks to see if line contains the insertion cursor.
#is_prelit(line) ⇒ Boolean
Checks to see if line is marked as prelit. Generally, this means the mouse pointer is over the line within the gutter.
#is_selected(line) ⇒ Boolean
Checks to see if the view had a selection and if that selection overlaps line in some way.
#last ⇒ Integer
Gets the line number (starting from 0) for the last line that is user visible.
#remove_class(line, name) ⇒ nil
Removes the class matching name from line.
A faster version of this function is available via [methodGutterLines.remove_qclass] for situations where the #GQuark is known ahead of time.
#remove_qclass(line, qname) ⇒ nil
Reverses a call to [methodGutterLines.add_qclass] by removing the [aliasGLib.Quark] matching qname.
#view ⇒ Gtk::TextView
Gets the [classGtk.TextView] that the GtkSourceGutterLines represents.