Package: gtk

Function gtk-text-view-move-display-line

Lambda List

gtk-text-view-move-display-line (view iter &key direction start-or-end)

Arguments

view -- a gtk-text-view widget
iter -- a gtk-text-iter iterator
direction -- the :forward or :backward keyword, the default value is :forward
start-or-end -- true to go the end of the next or the start of the previous display line, the default value is false

Return Value

True if iter was moved and is not on the end iterator.

Details

Moves the given iter by one display (wrapped) line. If the direction argument is :forward moves forward otherwise backward. If the start-or-end argument is true moves to next display line end for a forward move and to the display line start for a backward move.

A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the width of the text view. Paragraphs are the same in all text views, since they depend on the contents of the text buffer.

Note

This function combines the gtk_text_view_forward_display_line (), gtk_text_view_forward_display_line_end(), gtk_text_view_backward_display_line(), and gtk_text_view_backward_display_line_start() functions into one Lisp function.
 

See also

2021-10-21