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

Method setCursor

core/src/processing/awt/PSurfaceAWT.java:1474–1484  ·  view source on GitHub ↗
(int kind)

Source from the content-addressed store, hash-verified

1472
1473
1474 @Override
1475 public void setCursor(int kind) {
1476 // Swap the HAND cursor because MOVE doesn't seem to be available on OS X
1477 // https://github.com/processing/processing/issues/2358
1478 if (PApplet.platform == PConstants.MACOSX && kind == PConstants.MOVE) {
1479 kind = PConstants.HAND;
1480 }
1481 canvas.setCursor(Cursor.getPredefinedCursor(kind));
1482 cursorVisible = true;
1483 this.cursorType = kind;
1484 }
1485
1486
1487 @Override

Callers

nothing calls this directly

Calls 2

setCursorMethod · 0.65
getNativeMethod · 0.65

Tested by

no test coverage detected