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

Method DocumentPointFromView

scintilla/src/Editor.cxx:327–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327Point Editor::DocumentPointFromView ( Point ptView )
328{
329 Point ptDocument = ptView;
330 if ( wMargin.GetID() ) {
331 Point ptOrigin = GetVisibleOriginInMain();
332 ptDocument.x += ptOrigin.x;
333 ptDocument.y += ptOrigin.y;
334 } else {
335 ptDocument.x += xOffset;
336 ptDocument.y += topLine * vs.lineHeight;
337 }
338 return ptDocument;
339}
340
341int Editor::TopLineOfMain()
342{

Callers

nothing calls this directly

Calls 1

GetIDMethod · 0.45

Tested by

no test coverage detected