Warning: session_start(): open(/var/lib/php/sessions/sess_ba54bkr3hq536bkk27llemv67k, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass Canvas extends ImageSurface {
O makeImg;
*() {}
*(O *makeImg) {}
void update() { updateCanvas(this, makeImg); }
}
// f: (int w, int h) -> BufferedImage
static Canvas jcanvas(O f) {
ret jcanvas(f, 0); // 100
}
static Canvas jcanvas(fO f, final int updateDelay) {
ret (Canvas) swing(func {
final Canvas is = new Canvas(f);
final Runnable update = new Runnable {
bool first = true;
public void run {
BufferedImage img = is.getImage();
int w = is.getWidth(), h = is.getHeight();
if (first || img.getWidth() != w || img.getHeight() != h) {
updateCanvas(is, f);
first = false;
}
}
};
onResize(is, r { awtLater(is, updateDelay, update) });
bindToComponent(is, update); // first update
ret is;
});
}