Name
playoutline:GetXRanges -- get x ranges
Synopsis
ranges = playoutline:GetXRanges(start_index, end_index)
Function
Gets a list of visual ranges corresponding to a given logical range. This returns a list containing a number of tables that have the the fields x1 and x2 initialized to describe a range.

This list is not necessarily minimal - there may be consecutive ranges which are adjacent. The ranges will be sorted from left to right. The ranges are with respect to the left edge of the entire layout, not with respect to the line.

Inputs
start_index
start byte index of the logical range; if this value is less than the start index for the line, then the first range will extend all the way to the leading edge of the layout; otherwise, it will start at the leading edge of the first character
end_index
ending byte index of the logical range; if this value is greater than the end index for the line, then the last range will extend all the way to the trailing edge of the layout; otherwise, it will end at the trailing edge of the last character
Results
ranges
a list containing a number of ranges

Show TOC