summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-10-03 15:57:23 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-10-03 15:57:23 +0200
commitbbf725c026a81881a6d810237253549ff2e6e703 (patch)
tree841fc9a015d40ab5b7240eb2041df3244956ff51 /core
parent785471d3e46ff7f8143b19f13dee4f0bc072e721 (diff)
downloadgdx-boardgame-bbf725c026a81881a6d810237253549ff2e6e703.zip
gdx-boardgame-bbf725c026a81881a6d810237253549ff2e6e703.tar.gz
ui/Root : add resize(Rectangle)
Diffstat (limited to 'core')
-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);