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

Method getViewPortLineCount

src/eepp/ui/uicodeeditor.cpp:1372–1378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1370}
1371
1372Vector2f UICodeEditor::getViewPortLineCount() const {
1373 return Vector2f(
1374 eefloor( getViewportWidth() / getGlyphWidth() ),
1375 eefloor( ( editorHeight() - getPluginsTopSpace() -
1376 ( mHScrollBar->isVisible() ? mHScrollBar->getPixelsSize().getHeight() : 0.f ) ) /
1377 getLineHeight() ) );
1378}
1379
1380Sizef UICodeEditor::getMaxScroll() const {
1381 Vector2f vplc( getViewPortLineCount() );

Callers 1

onKeyDownMethod · 0.80

Calls 3

isVisibleMethod · 0.45
getHeightMethod · 0.45
getPixelsSizeMethod · 0.45

Tested by

no test coverage detected