/** * Creates a menu host using the given values. The root layer is set to the layer of the given * root and the stylesheet to its stylesheet. */ public MenuHost (Interface iface, Elements<?> root) { this(iface, root.layer); _stylesheet = root.stylesheet(); _screenArea.setSize(iface.plat.graphics().viewSize); }
/** * Sets the size of this rectangle to the supplied dimensions. */ public void setSize (IDimension d) { setSize(d.width(), d.height()); }
/** * Sets the size of this rectangle to the supplied dimensions. */ public void setSize (IDimension d) { setSize(d.width(), d.height()); }