| 119 | } |
| 120 | |
| 121 | bool LineLayout::InLine(int offset, int line) const { |
| 122 | return ((offset >= LineStart(line)) && (offset < LineStart(line + 1))) || |
| 123 | ((offset == numCharsInLine) && (line == (lines-1))); |
| 124 | } |
| 125 | |
| 126 | void LineLayout::SetLineStart(int line, int start) { |
| 127 | if ((line >= lenLineStarts) && (line != 0)) { |