feat(gui): add some setters to Size
@@ -22,6 +22,11 @@ public final class Size {
return minHeight;
}
+ public void setMinSize(float width, float height) {
+ minHeight.set(width);
+ minHeight.set(height);
+ }
+
public MutableFloatValue prefWidth() {
return prefWidth;
}
@@ -30,6 +35,11 @@ public final class Size {
return prefHeight;
}
+ public void setPrefSize(float width, float height) {
+ prefWidth.set(width);
+ prefHeight.set(height);
+ }
+
public MutableFloatValue maxWidth() {
return maxWidth;
}
@@ -37,4 +47,9 @@ public final class Size {
public MutableFloatValue maxHeight() {
return maxHeight;
}
+
+ public void setMaxSize(float width, float height) {
+ maxWidth.set(width);
+ maxHeight.set(height);
+ }
}
