Lines Matching full:endpos
803 int startPos, endPos;
804 selectionStartEnd(startPos, endPos);
806 endPos = textLength();
809 if (startPos != 0 && startPos == endPos)
810 startPos = endPos - 1;
815 if (box->isSelected(startPos, endPos)) {
1161 // Now calculate startPos and endPos for painting selection.
1162 // We include a selection while endPos > 0
1163 int startPos, endPos;
1167 endPos = textLength();
1169 selectionStartEnd(startPos, endPos);
1171 endPos = textLength();
1176 if (startPos == endPos)
1181 rect.unite(box->selectionRect(0, 0, startPos, endPos));
1187 int ePos = min<int>(endPos - box->start(), box->len());