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

Method DocFromDisplay

scintilla/src/ContractionState.cxx:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79int ContractionState::DocFromDisplay(int lineDisplay) const {
80 if (OneToOne()) {
81 return lineDisplay;
82 } else {
83 if (lineDisplay <= 0) {
84 return 0;
85 }
86 if (lineDisplay > LinesDisplayed()) {
87 return displayLines->PartitionFromPosition(LinesDisplayed());
88 }
89 int lineDoc = displayLines->PartitionFromPosition(lineDisplay);
90 PLATFORM_ASSERT(GetVisible(lineDoc));
91 return lineDoc;
92 }
93}
94
95void ContractionState::InsertLine(int lineDoc) {
96 if (OneToOne()) {

Callers 10

LineFromLocationMethod · 0.80
SetTopLineMethod · 0.80
SPositionFromLocationMethod · 0.80
MovePositionSoVisibleMethod · 0.80
WrapLinesMethod · 0.80
PaintSelMarginMethod · 0.80
PaintMethod · 0.80
CursorUpOrDownMethod · 0.80
PositionAfterAreaMethod · 0.80
WndProcMethod · 0.80

Calls 1

PartitionFromPositionMethod · 0.80

Tested by

no test coverage detected