public Coord contentsz() { Coord max = new Coord(0, 0); for (Widget wdg = child; wdg != null; wdg = wdg.next) { if (twdgs.contains(wdg)) continue; if (!wdg.visible) continue; Coord br = wdg.c.add(wdg.sz); if (br.x > max.x) max.x = br.x; if (br.y > max.y) max.y = br.y; } return (max.sub(1, 1)); }
public void addtwdg(Widget wdg) { twdgs.add(wdg); placetwdgs(); }