MCPcopy Create free account
hub / github.com/cxasm/notepad-- / getVisibleStartAndEndPosition

Method getVisibleStartAndEndPosition

src/scintillaeditview.cpp:3330–3342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3328}
3329
3330void 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
3344bool isUrlSchemeStartChar(QChar const c)
3345{

Callers 1

addHotSpotMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected