2018-09-02 13:36:49 +02:00
|
|
|
package it.cavallium.warppi.gui.graphicengine;
|
2017-01-31 22:29:49 +01:00
|
|
|
|
|
|
|
import java.io.IOException;
|
2018-06-11 22:41:11 +02:00
|
|
|
import java.net.URISyntaxException;
|
2017-01-31 22:29:49 +01:00
|
|
|
|
2019-02-27 23:29:03 +01:00
|
|
|
import it.cavallium.warppi.device.display.DisplayOutputDevice;
|
|
|
|
|
2017-02-02 10:30:45 +01:00
|
|
|
public interface Skin {
|
2017-01-31 22:29:49 +01:00
|
|
|
|
2018-09-22 11:17:30 +02:00
|
|
|
void load(String file) throws IOException, URISyntaxException;
|
2017-01-31 22:29:49 +01:00
|
|
|
|
2019-02-27 23:29:03 +01:00
|
|
|
void initialize(DisplayOutputDevice d);
|
2017-09-24 18:47:30 +02:00
|
|
|
|
2018-09-22 11:17:30 +02:00
|
|
|
boolean isInitialized();
|
2017-01-31 22:29:49 +01:00
|
|
|
|
2019-02-27 23:29:03 +01:00
|
|
|
void use(DisplayOutputDevice d);
|
2018-05-12 21:18:29 +02:00
|
|
|
|
2018-10-23 17:28:05 +02:00
|
|
|
/**
|
|
|
|
* May not be available before initialization
|
|
|
|
* @return skin width
|
|
|
|
*/
|
2018-09-22 11:17:30 +02:00
|
|
|
int getSkinWidth();
|
2018-05-12 21:18:29 +02:00
|
|
|
|
2018-10-23 17:28:05 +02:00
|
|
|
/**
|
|
|
|
* May not be available before initialization
|
|
|
|
* @return skin height
|
|
|
|
*/
|
2018-09-22 11:17:30 +02:00
|
|
|
int getSkinHeight();
|
2017-01-31 22:29:49 +01:00
|
|
|
}
|