foreach(d; rc.style.subs){
switch(d.func){
case none:
Window w = new Window(container);
goto all;
case drag:
Dragable w = new Dragable(container);
goto all;
case close:
Button w = new Button(container);
goto all;
case leftResize:
Dragable w = new Dragable(container);
goto all;
case leftBottomResize:
Dragable w = new Dragable(container);
goto all;
case bottomResize:
Dragable w = new Dragable(container);
goto all;
case rightBottomResize:
Dragable w = new Dragable(container);
goto all;
case rightResize:
Dragable w = new Dragable(container);
all:
w.setBackground(d.image);
w.left = d.left;
w.top = d.top;
w.right = d.right;
w.bottom = d.bottom;
w.xAdd = d.xadd;
w.yAdd = d.yadd;
w.widthAdd = d.widthadd;
w.heightAdd = d.heightadd;
container.addDependent(w);
w.map();
getContainer[w.id] = container;
default:
break;
}
}