| 2003 | } |
| 2004 | |
| 2005 | Vector2f UICodeEditor::getRelativeScreenPosition( const TextPosition& pos ) { |
| 2006 | Float gutterWidth = getGutterWidth(); |
| 2007 | Vector2f start( gutterWidth, getPluginsTopSpace() ); |
| 2008 | Vector2f startScroll( start - mScroll ); |
| 2009 | auto offset = getTextPositionOffset( pos ); |
| 2010 | return { static_cast<Float>( startScroll.x + offset.x ), |
| 2011 | static_cast<Float>( startScroll.y + offset.y + mPaddingPx.Top + getLineOffset() ) }; |
| 2012 | } |
| 2013 | |
| 2014 | bool UICodeEditor::getShowLinesRelativePosition() const { |
| 2015 | return mShowLinesRelativePosition; |
no outgoing calls
no test coverage detected