summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/ui
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/ui')
-rw-r--r--core/src/ch/asynk/rustanddust/ui/Widget.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/ui/Widget.java b/core/src/ch/asynk/rustanddust/ui/Widget.java
index 838993d..afcce67 100644
--- a/core/src/ch/asynk/rustanddust/ui/Widget.java
+++ b/core/src/ch/asynk/rustanddust/ui/Widget.java
@@ -29,6 +29,7 @@ public abstract class Widget implements Disposable, Drawable
public float getY() { return rect.y; }
public float getWidth() { return rect.width; }
public float getHeight() { return rect.height; }
+ public float getTop() { return rect.y + rect.height; }
public void translate(float dx, float dy)
{