| 1355 | } |
| 1356 | |
| 1357 | Rectf UICodeEditor::getScreenPosition( const TextPosition& position ) const { |
| 1358 | Float lineHeight = getLineHeight(); |
| 1359 | Vector2f screenStart( getScreenStart() ); |
| 1360 | Vector2f start( screenStart.x + getGutterWidth(), screenStart.y + getPluginsTopSpace() ); |
| 1361 | Vector2f startScroll( start - mScroll ); |
| 1362 | auto offset = getTextPositionOffsetSanitized( position, lineHeight ); |
| 1363 | return { { static_cast<Float>( startScroll.x + offset.x ), |
| 1364 | static_cast<Float>( startScroll.y + offset.y ) }, |
| 1365 | { getGlyphWidth(), lineHeight } }; |
| 1366 | } |
| 1367 | |
| 1368 | const Float& UICodeEditor::getPluginsTopSpace() const { |
| 1369 | return mPluginsTopSpace; |
no outgoing calls
no test coverage detected