@Override public int getPreferredWidth(int hHint) { return grid.getWidth()[1]; }
@Override public int getMaximumWidth(int hHint) { return grid.getWidth()[2]; }
@Override public int getMinimumWidth(int hHint) { return grid.getWidth()[0]; }
@Override public Vector2i getPreferredContentSize(Canvas canvas, Vector2i sizeHint) { int[] bounds = {0, 0, canvas.size().x, canvas.size().y}; layoutContainer(canvas, bounds); return new Vector2i(grid.getWidth()[1], grid.getHeight()[1]); }
public final int[] getWidth() { return getWidth(lastRefHeight); }
private Dimension getSizeImpl(Container parent, int sizeType) { checkCache(parent); Insets i = parent.getInsets(); int w = LayoutUtil.getSizeSafe(grid != null ? grid.getWidth() : null, sizeType) + i.left + i.right; int h = LayoutUtil.getSizeSafe(grid != null ? grid.getHeight() : null, sizeType) + i.top + i.bottom; return new Dimension(w, h); }
protected double computeWidth(double refHeight, int type) { int ins = getHorIns(); int refSize = (int) Math.ceil(refHeight != -1 ? refHeight : getHeight()) - ins; return ins + LayoutUtil.getSizeSafe(getGrid().getWidth(refSize), type); }
@Override protected Point computeSize(Composite parent, int wHint, int hHint, boolean flushCache) { checkCache(parent); int w = LayoutUtil.getSizeSafe(grid != null ? grid.getWidth() : null, LayoutUtil.PREF); int h = LayoutUtil.getSizeSafe(grid != null ? grid.getHeight() : null, LayoutUtil.PREF); return new Point(w, h); }
long newSize = grid.getHeight()[1] + (((long) grid.getWidth()[1]) << 32); if (lastSize != newSize) { lastSize = newSize;
long newSize = lGrid.getHeight()[1] + (((long) lGrid.getWidth()[1]) << 32); if (lastSize != newSize) { lastSize = newSize;