JavaScript EditorFree JavaScript Editor     Perl Manuals 

Main Page

8.13. Getting Line Information

The dlineinfo method returns a list of five items. These items describe the area of the line that contains index:

Here is an example call:

($x, $y, $w, $h, $base) = $text->lineinfo("index");

Unlike the bbox method, even areas not shown (due to nonwrapped characters) are used in the calculations, as long as some of the line is showing. However, if the line is not visible at all on the screen, the list will be empty. If the line happens to wrap to multiple lines, the entire area is used.

JavaScript EditorJavaScript Formatter     Perl Manuals