public void resize(int x, int y, int w, int h) { Geometry.Rectangle r = new Geometry.Rectangle(w, h, new Geometry.Point(x, y)); var a = r.Split(1, 4, 0.05f, 0.05f); PalleteButton.Reorient(a[0]); AddProductButton.Reorient(a[1]); ReconnectButton.Reorient(a[2]); BypassButton.Reorient(a[3]); }