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

Method DocumentPointFromView

src/qscint/scintilla/src/Editor.cpp:303–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303PointDocument Editor::DocumentPointFromView(Point ptView) const {
304 PointDocument ptDocument(ptView);
305 if (wMargin.GetID()) {
306 const Point ptOrigin = GetVisibleOriginInMain();
307 ptDocument.x += ptOrigin.x;
308 ptDocument.y += ptOrigin.y;
309 } else {
310 ptDocument.x += xOffset;
311 ptDocument.y += topLine * vs.lineHeight;
312 }
313 return ptDocument;
314}
315
316Sci::Line Editor::TopLineOfMain() const {
317 if (wMargin.GetID())

Callers

nothing calls this directly

Calls 1

GetIDMethod · 0.45

Tested by

no test coverage detected