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.
gamecore/src/mightypork/gamecore/gui/components/DynamicWidthComponent.java

19 lines
413 B

package mightypork.gamecore.gui.components;
/**
* Component whose width is derived from content.<br>
* Used for Linear components.
*
* @author Ondřej Hruška (MightyPork)
*/
public interface DynamicWidthComponent extends Component {
/**
* Get current width, if the element has specified height
*
* @param height current height
* @return current width
*/
double computeWidth(double height);
}