| 130 | } |
| 131 | |
| 132 | bool LineLayout::InLine(int offset, int line) const { |
| 133 | return ((offset >= LineStart(line)) && (offset < LineStart(line + 1))) || |
| 134 | ((offset == numCharsInLine) && (line == (lines-1))); |
| 135 | } |
| 136 | |
| 137 | void LineLayout::SetLineStart(int line, int start) { |
| 138 | if ((line >= lenLineStarts) && (line != 0)) { |