コード例 #1
0
ファイル: Window.java プロジェクト: RaynsAS/Custom-Salem
 public void resize(Coord sz) {
   IBox box;
   int th;
   if (cap == null) {
     box = wbox;
     th = 0;
   } else {
     box = topless;
     th = Window.th;
   }
   sz = sz.add(box.bisz()).add(0, th).add(mrgn.mul(2));
   this.sz = sz;
   ctl = box.btloff().add(0, th);
   csz = sz.sub(box.bisz()).sub(0, th);
   atl = ctl.add(mrgn);
   asz = csz.sub(mrgn.mul(2));
   ac = new Coord();
   // ac = tlo.add(wbox.btloff()).add(mrgn);
   placetwdgs();
   for (Widget ch = child; ch != null; ch = ch.next) ch.presize();
 }