Skip to content

Commit 0bf270f

Browse files
committed
added generic setSize and draw function (calls the corresponding
processing functions)
1 parent 7a7b0e8 commit 0bf270f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/com/processingjs/client/ProcessingInstance.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,12 @@ public abstract class ProcessingInstance extends JavaScriptObject{
66

77
protected ProcessingInstance() {}
88

9+
public final native void setSize(int width,int height) /*-{
10+
this.size(width,height);
11+
}-*/;
12+
13+
public final native void draw() /*-{
14+
this.draw();
15+
}-*/;
16+
917
}

0 commit comments

Comments
 (0)