| 3328 | } |
| 3329 | |
| 3330 | void ScintillaEditView::getVisibleStartAndEndPosition(int * startPos, int * endPos) |
| 3331 | { |
| 3332 | assert(startPos != NULL && endPos != NULL); |
| 3333 | // Get the position of the 1st and last showing chars from the edit view |
| 3334 | QRect rcEditView; |
| 3335 | rcEditView = this->rect(); |
| 3336 | int pos = execute(SCI_POSITIONFROMPOINT, 0, 0); |
| 3337 | int line = execute(SCI_LINEFROMPOSITION, pos); |
| 3338 | *startPos = static_cast<int32_t>(execute(SCI_POSITIONFROMLINE, line)); |
| 3339 | pos = execute(SCI_POSITIONFROMPOINT, rcEditView.right() - rcEditView.left(), rcEditView.bottom() - rcEditView.top()); |
| 3340 | line = execute(SCI_LINEFROMPOSITION, pos); |
| 3341 | *endPos = static_cast<int32_t>(execute(SCI_GETLINEENDPOSITION, line)); |
| 3342 | } |
| 3343 | |
| 3344 | bool isUrlSchemeStartChar(QChar const c) |
| 3345 | { |