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

Method getRelativeScreenPosition

src/eepp/ui/uicodeeditor.cpp:2005–2012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2003}
2004
2005Vector2f 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
2014bool UICodeEditor::getShowLinesRelativePosition() const {
2015 return mShowLinesRelativePosition;

Callers 1

createListViewHelperMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected