Package: gtk

Function gtk-text-iter-line

Lambda List

gtk-text-iter-line (iter)

Syntax

(gtk-text-iter-line iter) => line-number
(setf (gtk-text-iter-line iter) line-number)

Arguments

iter -- a gtk-text-iter instance
line-number -- an integer with the line number, counted from 0

Details

Accessor of the line number containing the iterator.

The function gtk-text-iter-line returns the line number containing the iterator. The function (setf gtk-text-iter-line) moves the iterator to the start of the given line number.

Lines in a text buffer are numbered beginning with 0 for the first line in the text buffer. If the line number is negative or larger than the number of lines in the text buffer, moves the iterator to the start of the last line in the text buffer.
 

See also

*2021-7-24