summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-15 23:00:05 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-15 23:00:05 +0100
commit8fddb67a5519cd56ddd3118fdbf2a8a5bf84e017 (patch)
treecdba3a3a03caa2a4c582a3d4d216c5a9029ffc0b
parent4d144d13328f4944328da44d3a708e73a0eb3892 (diff)
downloadRustAndDust-8fddb67a5519cd56ddd3118fdbf2a8a5bf84e017.zip
RustAndDust-8fddb67a5519cd56ddd3118fdbf2a8a5bf84e017.tar.gz
Widget: add getTop()
-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)
{