Gtk.TextIter.prototype.get_line_offset

function get_line_offset():Number {
    // Gjs wrapper for gtk_text_iter_get_line_offset()
}

Returns the character offset of the iterator, counting from the start of a newline-terminated line. The first character on the line has offset 0.

Returns

offset from start of line