Versatile Java game engine with pluggable backends (this was used in Rogue, I think)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
506 B

10 years ago
package mightypork.gamecore.gui.components.layout.linear;
import mightypork.gamecore.gui.components.Component;
import mightypork.utils.math.constraints.num.Num;
public class LinearRectangle extends AbstractLinearWrapper {
10 years ago
private Num width;
public LinearRectangle(Component wrapped, Num width)
{
10 years ago
super(wrapped);
this.width = width;
}
10 years ago
public void setWidth(Num width)
{
this.width = width;
}
10 years ago
@Override
public double computeWidth(double height)
{
return this.width.value();
}
10 years ago
}