Re: Request for documentation explanation
- From: Hrvoje Niksic <hrvoje niksic avl com>
- To: <gtk-list gnome org>
- Subject: Re: Request for documentation explanation
- Date: Mon, 14 Jul 2014 14:49:59 +0200
On 07/12/2014 10:52 AM, Igor Korot wrote:
Hi, ALL,
On the link https://developer.gnome.org/gtk2/stable/GtkTextIter.html#gtk-text-iter-get-line
it does not say whether it will return the number of physical lines or
number of logical lines.
Could someone please sched some light on this?
A GtkTextBuffer must return the physical line number (number of newlines
between the beginning of buffer and the iterator's position) because a
text buffer doesn't have the information about fonts in use and the
width of the text view.
Note that showing a line number of a display line isn't very useful to
the end user. Physical line numbers help navigation based on diagnostics
from external tools (compilers, syntax checkers, etc.), while display
lines provide no such benefits.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]