| 1370 | } |
| 1371 | |
| 1372 | Vector2f 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 | |
| 1380 | Sizef UICodeEditor::getMaxScroll() const { |
| 1381 | Vector2f vplc( getViewPortLineCount() ); |
no test coverage detected