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

Method setCursor

core/src/processing/javafx/PSurfaceFX.java:668–681  ·  view source on GitHub ↗
(int kind)

Source from the content-addressed store, hash-verified

666 Cursor lastCursor = Cursor.DEFAULT;
667
668 public void setCursor(int kind) {
669 Cursor c;
670 switch (kind) {
671 case PConstants.ARROW: c = Cursor.DEFAULT; break;
672 case PConstants.CROSS: c = Cursor.CROSSHAIR; break;
673 case PConstants.HAND: c = Cursor.HAND; break;
674 case PConstants.MOVE: c = Cursor.MOVE; break;
675 case PConstants.TEXT: c = Cursor.TEXT; break;
676 case PConstants.WAIT: c = Cursor.WAIT; break;
677 default: c = Cursor.DEFAULT; break;
678 }
679 lastCursor = c;
680 canvas.getScene().setCursor(c);
681 }
682
683
684 public void setCursor(PImage image, int hotspotX, int hotspotY) {

Callers

nothing calls this directly

Calls 1

setCursorMethod · 0.65

Tested by

no test coverage detected