MCPcopy Index your code
hub / github.com/processing/processing / getCaretOffset

Method getCaretOffset

app/src/processing/app/ui/Editor.java:1678–1680  ·  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

1676 * 7 up to 4, then the caret position will be somewhere on line four.
1677 */
1678 public int getCaretOffset() {
1679 return textarea.getCaretPosition();
1680 }
1681
1682
1683 /**

Callers 3

insertTextMethod · 0.95
clearSelectionMethod · 0.80
renameMethod · 0.80

Calls 1

getCaretPositionMethod · 0.80

Tested by

no test coverage detected