From bbf725c026a81881a6d810237253549ff2e6e703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 3 Oct 2018 15:57:23 +0200 Subject: ui/Root : add resize(Rectangle) --- core/src/ch/asynk/gdx/tabletop/ui/Root.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/ch/asynk/gdx/tabletop/ui/Root.java b/core/src/ch/asynk/gdx/tabletop/ui/Root.java index f887f32..21ffd54 100644 --- a/core/src/ch/asynk/gdx/tabletop/ui/Root.java +++ b/core/src/ch/asynk/gdx/tabletop/ui/Root.java @@ -1,5 +1,7 @@ package ch.asynk.gdx.tabletop.ui; +import com.badlogic.gdx.math.Rectangle; + public class Root extends Assembly { public Root(int c) @@ -8,6 +10,11 @@ public class Root extends Assembly this.alignment = Alignment.ABSOLUTE; } + public void resize(Rectangle r) + { + resize(r.x, r.y, r.width, r.height); + } + public void resize(float width, float height) { resize(getX(), getY(), width, height); -- cgit v1.1-2-g2b99