MCPcopy Create free account
hub / github.com/YACReader/yacreader / yPositionForPage

Method yPositionForPage

YACReader/continuous_view_model.cpp:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147int ContinuousViewModel::yPositionForPage(int pageIndex) const
148{
149 if (pageIndex < 0 || pageIndex >= layoutSnapshot.yPositions.size()) {
150 return 0;
151 }
152
153 return layoutSnapshot.yPositions[pageIndex];
154}
155
156int ContinuousViewModel::pageAtY(int y) const
157{

Callers 3

grabMagnifiedRegionMethod · 0.80
paintEventMethod · 0.80
pageRectForMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected