File x/CachedImageRep


class x.CachedImageRep

The X CachedImageRep can do slow caching, using ximages, and fast caching using pixmaps. The distinction is to please memory restricted X servers.

Inherits

State supers
tag.CachedImageRep

methods

redefine void
  load tom.Array arguments;
Register us with the tag.ImageRep class.

instance (id)
  withSize (float, float) (x, y)
  onScreen Screen screen;
Undocumented.

instance (id)
  withBitmapImageRep tag.BitmapImageRep rep
            onScreen Screen screen;
Undocumented.

instance x.CachedImageRep

variables

public Screen screen;
The Screen on which we are `locked'.
public pointer ximage;
Pointer to the underlying XImage structure, if we have one.
int pixmap;
The xid of the Pixmap, if we have one.

methods

id
  init (Screen, pointer, int) (s, x, pixmap_x_id);
Undocumented.

void
  dealloc;
Deallocate the pixmap and ximage.

boolean
  drawAtPoint (float, float) (x, y);
Undocumented.

int
  pixmap;
Return the pixmap. If the ximage is small enough, the pixmap is created on the fly, and returned.


Generated by tm 1.01.