package window;
import mishin870.*;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.game.Sprite;

public class windowTheme{
public Image min,max,clo;
public Image u,d,l,r,lu,ld,ru,rd;
public int miw,mih,maw,mah,cw,ch;
public int offsetX,offsetY;
public int offsetXC,offsetYC;
FontClass FC;
public boolean bmax,bmaxD;
public Image ico;

public windowTheme(){
bmax = false;
bmaxD = false;
FC = new FontClass();
FC.Init("ArialNarrow8");
}

public int getWidth(int swid){
return swid;
}

public int getHeight(int shei){
return shei;
}

public int getClick(int x,int y,int wid,int hei){
return 0;
}

public void minSet(Sprite min,boolean down){
if(down){
	min.setFrame(1);
} else {
	min.setFrame(0);
}
}

public void maxSet(Sprite max,boolean down){
bmaxD = down;
if(bmax){
	if(down){
		max.setFrame(3);
	} else {
		max.setFrame(2);
	}
} else {
	if(down){
		max.setFrame(1);
	} else {
		max.setFrame(0);
	}
}
}

public void cloSet(Sprite clo,boolean down){
if(down){
	clo.setFrame(1);
} else {
	clo.setFrame(0);
}
}

public void updateControlPos(int x,int y,int wid,int hei,Sprite min,Sprite max,Sprite clo){
}

public void resize(int wid,int hei){
}

public void drawName(Graphics g,String name,int x,int y,int wid){
}

public void drawBorder(Graphics g,int x,int y,int wid,int hei){
}

public void drawIcon(Graphics g,int x,int y,int wid){
}

public void maximize(Sprite max,boolean maximized){
bmax = maximized;
maxSet(max,bmaxD);
}

public abcd getXYWHMax(int wid,int hei){
return new abcd(0,0,wid,hei);
}

public point getXYClick(int x,int y){
return null;
}

}