package loon.component.skin;
import loon.LSystem;
import loon.LTexture;
import loon.canvas.LColor;
import loon.component.DefUI;
import loon.font.FontSet;
import loon.font.IFont;
public class WindowSkin implements FontSet<WindowSkin>{
private IFont font;
private LTexture barTexture;
private LTexture backgroundTexture;
private LColor fontColor;
public final static WindowSkin def() {
return new WindowSkin();
}
public WindowSkin() {
this(LSystem.getSystemGameFont(), LColor.white, DefUI.get().getDefaultTextures(0),
DefUI.get().getDefaultTextures(7));
}
public WindowSkin(IFont font, LColor fontColor, LTexture bar,
LTexture background) {
this.font = font;
this.fontColor = fontColor;
this.barTexture = bar;
this.backgroundTexture = background;
}
public IFont getFont() {
return font;
}
public WindowSkin setFont(IFont font) {
this.font = font;
return this;
}
public LTexture getBarTexture() {
return barTexture;
}
public void setBarTexture(LTexture barTexture) {
this.barTexture = barTexture;
}
public LTexture getBackgroundTexture() {
return backgroundTexture;
}
public void setBackgroundTexture(LTexture backgroundTexture) {
this.backgroundTexture = backgroundTexture;
}
public LColor getFontColor() {
return fontColor;
}
public void setFontColor(LColor fontColor) {
this.fontColor = fontColor;
}
}