summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/tabletop
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/gdx/tabletop')
-rw-r--r--core/src/ch/asynk/gdx/tabletop/ui/Root.java7
1 files changed, 7 insertions, 0 deletions
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);