MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getLinePadding

Method getLinePadding

src/eepp/ui/doc/documentview.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80Float DocumentView::getLinePadding( Int64 docIdx ) const {
81 if ( isOneToOne() || mVisibleLinesOffset.empty() )
82 return 0;
83 return mVisibleLinesOffset[eeclamp(
84 docIdx, 0ll, eemax( static_cast<Int64>( mVisibleLinesOffset.size() ) - 1, 0ll ) )];
85}
86
87void DocumentView::setConfig( Config config ) {
88 if ( config != mConfig ) {

Callers 3

drawAfterLineTextMethod · 0.80
getTextPositionOffsetMethod · 0.80
getColFromXOffsetMethod · 0.80

Calls 4

eeclampFunction · 0.85
eemaxFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected