racket/collects/htdch/draw/World.java
Matthias Felleisen c9046e4e44 - created a Canvas class and implementation
so that world can become an abstract class 
  (well, we will pretend it is one; I have 
  to ask Kathy how to do this)
 

svn: r497
2005-07-30 02:11:50 +00:00

45 lines
1.1 KiB
Java

package draw;
public class World {
public native boolean start(int width, int height);
public native boolean stop();
public native boolean drawCircle(Posn p, int r, Color c);
public native boolean drawDisk(Posn p, int r, Color c);
public native boolean drawRect(Posn p, int width, int height, Color c);
public native boolean drawLine(Posn p0, Posn p1, Color c);
public native boolean drawString(Posn p, String s);
public native boolean clearCircle(Posn p, int r, Color c);
public native boolean clearDisk(Posn p, int r, Color c);
public native boolean clearRect(Posn p, int width, int height, Color c);
public native boolean clearLine(Posn p0, Posn p1, Color c);
// public native boolean sleepForAWhile(int s);
public native boolean bigBang(double s);
public native World onTick();
public native World onKeyEvent(String ke);
public native boolean draw();
public native boolean erase();
public native boolean endOfTime();
public native World endOfWorld();
public native World lastWorld();
}