/** holds the current theme mappings */
static Vector mapTo = new Vector();
+ static {
+ mapFrom.addElement("xwt.standard");
+ mapTo.addElement("org.xwt.themes.monopoly");
+ }
/**
* Resolves the partial resource name <tt>name</tt> to a fully
// Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL]
package org.xwt;
+import java.util.*;
public class SVG {
protected final void SizeChange(int width, int height) {
this.width = width;
this.height = height;
+ root.width = width;
+ root.height = height;
+ root.needs_reflow = true;
abort = true;
long lastResizeTime = System.currentTimeMillis();
lastResizeTimeTop = (int)(lastResizeTime >> 32);
/** Indicates that the backbuffer region x,y,w,h is no longer correct and must be regenerated */
public void dirty(int x, int y, int w, int h) {
- x = 0; y = 0; w = 1000; h = 1000;
backbufferDirtyRegions.dirty(x, y, w, h);
Refresh();
}
if (y+h > height) h = height - y;
if (w <= 0 || h <= 0) continue;
- root.render(x, y, w, h, backbuffer);
+ root.render(0, 0, x, y, w, h, backbuffer);
// if any area under the scar was repainted, rescar that area
if (scarred && x < hscar + scarPicture.getWidth() &&
static {
String[] p = new String[] {
"sizetoimage", "shrink", "hshrink", "vshrink", "x", "y", "width", "height",
- "flex", "hflex", "vflex", "cols", "rows", "align", "invisible", "absolute", "globalx", "globaly",
+ "flex", "hflex", "vflex", /*"cols", "rows",*/ "align", "invisible", "absolute", "globalx", "globaly",
"minwidth", "minheight", "height", "width", "maxwidth", "maxheight",
"numchildren", "hpad", "vpad", "doublebuffered", "cursor",
"mousex", "mousey", "xwt", "static", "mouseinside", "root", "thisbox", "indexof", "svg"