MCPcopy Index your code
hub / github.com/benfry/processing4 / setSize

Method setSize

core/src/processing/awt/PGraphicsJava2D.java:117–126  ·  view source on GitHub ↗

Queues a size change, won't happen until beginDraw().

(int w, int h)

Source from the content-addressed store, hash-verified

115 * Queues a size change, won't happen until beginDraw().
116 */
117 @Override
118 public void setSize(int w, int h) { // ignore
119 // If this is the initial setup, need to assign width/height;
120 // especially necessary for renderer subclasses.
121 // https://github.com/processing/processing4/issues/395
122 if (width == 0 || height == 0) {
123 super.setSize(w, h);
124 }
125 sizeChange = new Dimension(w, h);
126 }
127
128
129// @Override

Callers 1

svgToImageMethod · 0.95

Calls 1

setSizeMethod · 0.65

Tested by

no test coverage detected