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

Method addCursorAtMousePosition

src/eepp/ui/uicodeeditor.cpp:1635–1642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1633}
1634
1635void UICodeEditor::addCursorAtMousePosition() {
1636 auto position = getInput()->getMousePos();
1637 if ( checkMouseOverLink( position ).empty() ) {
1638 auto pos( resolveScreenPosition( position.asFloat() ) );
1639 if ( !mDoc->selectionExists( pos ) )
1640 mDoc->addSelection( { pos, pos } );
1641 }
1642}
1643
1644void UICodeEditor::addCursorsFromCurrentToMousePosition() {
1645 auto position = getInput()->getMousePos();

Callers 1

registerCommandsMethod · 0.80

Calls 5

selectionExistsMethod · 0.80
addSelectionMethod · 0.80
getMousePosMethod · 0.45
emptyMethod · 0.45
asFloatMethod · 0.45

Tested by

no test coverage detected