private int fillcolor = 0x00000000;
private int strokecolor = 0xFF000000;
+ private int aspect = 0;
+
// specified directly by user
public LENGTH minwidth = 0;
public LENGTH maxwidth = MAX_LENGTH;
if ((fillcolor & 0xFF000000) != 0x00000000)
buf.fillTrapezoid(globalx, globalx + width, globaly, globalx, globalx + width, globaly + height, fillcolor);
+ // FIXME: do aspect in here
if (texture != null && texture.isLoaded)
for(int x = globalx; x < cx2; x += texture.width)
for(int y = globaly; y < cy2; y += texture.height)
case "shrink": return B(test(HSHRINK) || test(VSHRINK));
case "hshrink": return B(test(HSHRINK));
case "vshrink": return B(test(VSHRINK));
+ case "aspect": return N(aspect);
case "x": return (parent == null || !test(VISIBLE)) ? N(0) : N(x);
case "y": return (parent == null || !test(VISIBLE)) ? N(0) : N(y);
case "width": return N(width);
case "noclip": CHECKSET_FLAG(NOCLIP); if (parent == null) dirty(); else parent.dirty();
case "visible": CHECKSET_FLAG(VISIBLE); dirty(); MARK_RESIZE; dirty();
case "packed": CHECKSET_FLAG(PACKED); MARK_REPACK_parent;
+ case "aspect": CHECKSET_INT(aspect); DIRTY;
case "globalx": put("x", N(globalToLocalX(toInt(value))));
case "globaly": put("y", N(globalToLocalY(toInt(value))));
case "align": clear(ALIGNS); setAlign(value == null ? "center" : value); MARK_RESIZE;