X-coordinate, relative to the viewport origin, of the left of the rectangle box.
523524525526527528529530531532533
bginst.addTo(layer, 0, 0, 0); } // do our actual layout Insets insets = ldata.bg.insets; ldata.layout(insets.left(), insets.top(), width - insets.width(), height - insets.height()); // finally clear our cached layout data clearLayoutData(); }
5354555657585960616263
// create and save off the instance so we can destroy it later instances[ii] = instantiate(bg, current.subtractFrom(new Dimension(size))); // add to our composite layer and translate the layers added instances[ii].addTo(layer, current.left(), current.top(), 0); // adjust the bounds current = current.mutable().add(bg.insets); }