case "height": put("maxheight", value); put("minheight", value); MARK_RESIZE;
case "maxwidth": setMaxWidth(value);
case "minwidth": CHECKSET_INT(minwidth); MARK_RESIZE;
+ if (parent == null && getSurface() != null)
+ getSurface().setMinimumSize(minwidth, minheight, minwidth != maxwidth || minheight != maxheight);
case "maxheight": setMaxHeight(value);
case "minheight": CHECKSET_INT(minheight); MARK_RESIZE;
+ if (parent == null && getSurface() != null)
+ getSurface().setMinimumSize(minwidth, minheight, minwidth != maxwidth || minheight != maxheight);
case "colspan": CHECKSET_SHORT(colspan); MARK_REPACK_parent;
case "rowspan": CHECKSET_SHORT(rowspan); MARK_REPACK_parent;
case "rows": CHECKSET_SHORT(rows); if (rows==0){set(FIXED, COLS);if(cols==0)cols=1;} else set(FIXED, ROWS); MARK_REPACK;
public abstract void setTitleBarText(String s); ///< Sets the surface's title bar text, if applicable
public abstract void setIcon(Picture i); ///< Sets the surface's title bar text, if applicable
public abstract void _dispose(); ///< Destroy the surface
+ public void setMinimumSize(int minx, int miny, boolean resizable) { }
protected void setSize(int w, int h) {
if (w == actualWidth && h == actualHeight) return;
class InnerFrame extends Frame {
public InnerFrame() throws java.lang.UnsupportedOperationException { }
+ public Dimension getMinimumSize() {
+ return new Dimension(root == null ? 0 : root.minwidth, root == null ? 0 : root.minheight); }
public void update(Graphics gr) { paint(gr); }
public void paint(Graphics gr) {
Rectangle r = gr.getClipBounds();
class InnerWindow extends Window {
public InnerWindow() throws java.lang.UnsupportedOperationException { super(new Frame()); }
+ public Dimension getMinimumSize() {
+ return new Dimension(root == null ? 0 : root.minwidth, root == null ? 0 : root.minheight); }
public void update(Graphics gr) { paint(gr); }
public void paint(Graphics gr) {
Rectangle r = gr.getClipBounds();
}
}
+ public void setMinimumSize(int minx, int miny, boolean resizable) { if (frame != null) frame.setResizable(resizable); }
+
public void render() {
// useful optimizatin;
window.setBackground((root.fillcolor & 0xFF000000) == 0 ?