aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl/gui/AbstractWidget.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dev/isxander/yacl/gui/AbstractWidget.java')
-rw-r--r--src/main/java/dev/isxander/yacl/gui/AbstractWidget.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/dev/isxander/yacl/gui/AbstractWidget.java b/src/main/java/dev/isxander/yacl/gui/AbstractWidget.java
index a6e75f9..d943a86 100644
--- a/src/main/java/dev/isxander/yacl/gui/AbstractWidget.java
+++ b/src/main/java/dev/isxander/yacl/gui/AbstractWidget.java
@@ -30,6 +30,10 @@ public abstract class AbstractWidget implements Element, Drawable, Selectable {
this.dim = dim;
}
+ public Dimension<Integer> getDimension() {
+ return dim;
+ }
+
@Override
public SelectionType getType() {
return SelectionType.NONE;