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

Method setSize

core/src/processing/core/PApplet.java:1248–1253  ·  view source on GitHub ↗

Called by PSurface objects to set the width and height variables, and update the pixelWidth and pixelHeight variables.

(int width, int height)

Source from the content-addressed store, hash-verified

1246 * and update the pixelWidth and pixelHeight variables.
1247 */
1248 public void setSize(int width, int height) {
1249 this.width = width;
1250 this.height = height;
1251 pixelWidth = width * pixelDensity;
1252 pixelHeight = height * pixelDensity;
1253 }
1254
1255
1256 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Callers

nothing calls this directly

Calls 2

deprecationWarningMethod · 0.95
setSizeMethod · 0.65

Tested by

no test coverage detected