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.
19 lines
413 B
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);
|
|
}
|
|
|