CachedImageRep can do slow caching, using ximages, and fast
caching using pixmaps. The distinction is to please memory restricted
X servers.
redefine void load tom.Array arguments;
tag.ImageRep class.
instance (id) withSize (float, float) (x, y) onScreen Screen screen;
instance (id)
withBitmapImageRep tag.BitmapImageRep rep
onScreen Screen screen;
public Screen screen;
Screen on which we are `locked'.
public pointer ximage;
int pixmap;
id init (Screen, pointer, int) (s, x, pixmap_x_id);
void dealloc;
pixmap and ximage.
boolean drawAtPoint (float, float) (x, y);
int pixmap;
pixmap. If the ximage is small enough, the pixmap is
created on the fly, and returned.