MCPcopy Create free account
hub / github.com/benfry/processing4 / setCursor

Method setCursor

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

Source from the content-addressed store, hash-verified

1303
1304
1305 @Override
1306 public void setCursor(int kind) {
1307 // Swap the HAND cursor because MOVE doesn't seem to be available on OS X
1308 // https://github.com/processing/processing/issues/2358
1309 if (PApplet.platform == PConstants.MACOS && kind == PConstants.MOVE) {
1310 kind = PConstants.HAND;
1311 }
1312 //noinspection MagicConstant
1313 canvas.setCursor(Cursor.getPredefinedCursor(kind));
1314 cursorVisible = true;
1315 this.cursorType = kind;
1316 }
1317
1318
1319 @Override

Callers

nothing calls this directly

Calls 2

setCursorMethod · 0.65
getNativeMethod · 0.65

Tested by

no test coverage detected