MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / SetTopLine

Method SetTopLine

scintilla/src/Editor.cxx:519–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519void Editor::SetTopLine ( int topLineNew )
520{
521 if ( ( topLine != topLineNew ) && ( topLineNew >= 0 ) ) {
522 topLine = topLineNew;
523 ContainerNeedsUpdate ( SC_UPDATE_V_SCROLL );
524 }
525 posTopLine = pdoc->LineStart ( cs.DocFromDisplay ( topLine ) );
526}
527
528SelectionPosition Editor::SPositionFromLocation ( Point pt, bool canReturnInvalid, bool charPosition, bool virtualSpace )
529{

Callers

nothing calls this directly

Calls 2

DocFromDisplayMethod · 0.80
LineStartMethod · 0.45

Tested by

no test coverage detected