MCPcopy Create free account
hub / github.com/WiringProject/Wiring / getCaretOffset

Method getCaretOffset

IDE/processing/app/Editor.java:1387–1389  ·  view source on GitHub ↗

Get the position (character offset) of the caret. With text selected, this will be the last character actually selected, no matter the direction of the selection. That is, if the user clicks and drags to select lines 7 up to 4, then the caret position will be somewhere on line four.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

insertTextMethod · 0.95

Calls 1

getCaretPositionMethod · 0.80

Tested by

no test coverage detected