From 8fddb67a5519cd56ddd3118fdbf2a8a5bf84e017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 15 Feb 2016 23:00:05 +0100 Subject: Widget: add getTop() --- core/src/ch/asynk/rustanddust/ui/Widget.java | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.1-2-g2b99