package b4j.example.designerscripts;
import anywheresoftware.b4a.BA;


public class LS_main{

public static void LS_general(anywheresoftware.b4j.objects.LayoutBuilder.LayoutData views, int width, int height, float scale) {
;
String _space="";
String _width="";
String _height="";
String _textsize="";
//BA.debugLineNum = 4;BA.debugLine="Space = 30"[main/General script]
_space = "30";
//BA.debugLineNum = 5;BA.debugLine="Width = (100%x - 4 * Space) / 3"[main/General script]
_width = BA.NumberToString(((100d / 100 * width)-4d*Double.parseDouble(_space))/3d);
//BA.debugLineNum = 6;BA.debugLine="Height = (100%y - 4 * Space) / 3"[main/General script]
_height = BA.NumberToString(((100d / 100 * height)-4d*Double.parseDouble(_space))/3d);
//BA.debugLineNum = 7;BA.debugLine="TextSize = Min(Width, Height) / 5"[main/General script]
_textsize = BA.NumberToString(Math.min(Double.parseDouble(_width),Double.parseDouble(_height))/5d);
//BA.debugLineNum = 10;BA.debugLine="btnTest1.Width = Width"[main/General script]
views.get("btntest1").setPrefWidth((int)(Double.parseDouble(_width)));
//BA.debugLineNum = 11;BA.debugLine="btnTest1.Height = Height"[main/General script]
views.get("btntest1").setPrefHeight((int)(Double.parseDouble(_height)));
//BA.debugLineNum = 12;BA.debugLine="btnTest1.TextSize = TextSize"[main/General script]
((anywheresoftware.b4j.objects.LabeledWrapper)views.get("btntest1")).setTextSize((float)(Double.parseDouble(_textsize)));
//BA.debugLineNum = 13;BA.debugLine="btnTest2.Width = Width"[main/General script]
views.get("btntest2").setPrefWidth((int)(Double.parseDouble(_width)));
//BA.debugLineNum = 14;BA.debugLine="btnTest2.Height = Height"[main/General script]
views.get("btntest2").setPrefHeight((int)(Double.parseDouble(_height)));
//BA.debugLineNum = 15;BA.debugLine="btnTest2.TextSize = TextSize"[main/General script]
((anywheresoftware.b4j.objects.LabeledWrapper)views.get("btntest2")).setTextSize((float)(Double.parseDouble(_textsize)));
//BA.debugLineNum = 16;BA.debugLine="btnTest3.Width = Width"[main/General script]
views.get("btntest3").setPrefWidth((int)(Double.parseDouble(_width)));
//BA.debugLineNum = 17;BA.debugLine="btnTest3.Height = Height"[main/General script]
views.get("btntest3").setPrefHeight((int)(Double.parseDouble(_height)));
//BA.debugLineNum = 18;BA.debugLine="btnTest3.TextSize = TextSize"[main/General script]
((anywheresoftware.b4j.objects.LabeledWrapper)views.get("btntest3")).setTextSize((float)(Double.parseDouble(_textsize)));
//BA.debugLineNum = 19;BA.debugLine="btnTest4.Width = Width"[main/General script]
views.get("btntest4").setPrefWidth((int)(Double.parseDouble(_width)));
//BA.debugLineNum = 20;BA.debugLine="btnTest4.Height = Height"[main/General script]
views.get("btntest4").setPrefHeight((int)(Double.parseDouble(_height)));
//BA.debugLineNum = 21;BA.debugLine="btnTest4.TextSize = TextSize"[main/General script]
((anywheresoftware.b4j.objects.LabeledWrapper)views.get("btntest4")).setTextSize((float)(Double.parseDouble(_textsize)));
//BA.debugLineNum = 22;BA.debugLine="btnTest5.Width = Width"[main/General script]
views.get("btntest5").setPrefWidth((int)(Double.parseDouble(_width)));
//BA.debugLineNum = 23;BA.debugLine="btnTest5.Height = Height"[main/General script]
views.get("btntest5").setPrefHeight((int)(Double.parseDouble(_height)));
//BA.debugLineNum = 24;BA.debugLine="btnTest5.TextSize = TextSize"[main/General script]
((anywheresoftware.b4j.objects.LabeledWrapper)views.get("btntest5")).setTextSize((float)(Double.parseDouble(_textsize)));
//BA.debugLineNum = 25;BA.debugLine="btnTest6.Width = Width"[main/General script]
views.get("btntest6").setPrefWidth((int)(Double.parseDouble(_width)));
//BA.debugLineNum = 26;BA.debugLine="btnTest6.Height = Height"[main/General script]
views.get("btntest6").setPrefHeight((int)(Double.parseDouble(_height)));
//BA.debugLineNum = 27;BA.debugLine="btnTest6.TextSize = TextSize"[main/General script]
((anywheresoftware.b4j.objects.LabeledWrapper)views.get("btntest6")).setTextSize((float)(Double.parseDouble(_textsize)));
//BA.debugLineNum = 28;BA.debugLine="btnTest7.Width = Width"[main/General script]
views.get("btntest7").setPrefWidth((int)(Double.parseDouble(_width)));
//BA.debugLineNum = 29;BA.debugLine="btnTest7.Height = Height"[main/General script]
views.get("btntest7").setPrefHeight((int)(Double.parseDouble(_height)));
//BA.debugLineNum = 30;BA.debugLine="btnTest7.TextSize = TextSize"[main/General script]
((anywheresoftware.b4j.objects.LabeledWrapper)views.get("btntest7")).setTextSize((float)(Double.parseDouble(_textsize)));
//BA.debugLineNum = 31;BA.debugLine="btnTest8.Width = Width"[main/General script]
views.get("btntest8").setPrefWidth((int)(Double.parseDouble(_width)));
//BA.debugLineNum = 32;BA.debugLine="btnTest8.Height = Height"[main/General script]
views.get("btntest8").setPrefHeight((int)(Double.parseDouble(_height)));
//BA.debugLineNum = 33;BA.debugLine="btnTest8.TextSize = TextSize"[main/General script]
((anywheresoftware.b4j.objects.LabeledWrapper)views.get("btntest8")).setTextSize((float)(Double.parseDouble(_textsize)));
//BA.debugLineNum = 34;BA.debugLine="btnTest9.Width = Width"[main/General script]
views.get("btntest9").setPrefWidth((int)(Double.parseDouble(_width)));
//BA.debugLineNum = 35;BA.debugLine="btnTest9.Height = Height"[main/General script]
views.get("btntest9").setPrefHeight((int)(Double.parseDouble(_height)));
//BA.debugLineNum = 36;BA.debugLine="btnTest9.TextSize = TextSize"[main/General script]
((anywheresoftware.b4j.objects.LabeledWrapper)views.get("btntest9")).setTextSize((float)(Double.parseDouble(_textsize)));
//BA.debugLineNum = 39;BA.debugLine="btnTest5.HorizontalCenter = 50%x"[main/General script]
views.get("btntest5").setLeft((int)((50d / 100 * width) - (views.get("btntest5").getPrefWidth() / 2)));
//BA.debugLineNum = 40;BA.debugLine="btnTest5.VerticalCenter = 50%y"[main/General script]
views.get("btntest5").setTop((int)((50d / 100 * height) - (views.get("btntest5").getPrefHeight() / 2)));
//BA.debugLineNum = 43;BA.debugLine="btnTest1.Right = btnTest5.Left - Space"[main/General script]
views.get("btntest1").setLeft((int)((views.get("btntest5").getLeft())-Double.parseDouble(_space) - (views.get("btntest1").getPrefWidth())));
//BA.debugLineNum = 44;BA.debugLine="btnTest1.Bottom = btnTest5.Top - Space"[main/General script]
views.get("btntest1").setTop((int)((views.get("btntest5").getTop())-Double.parseDouble(_space) - (views.get("btntest1").getPrefHeight())));
//BA.debugLineNum = 46;BA.debugLine="btnTest2.Left = btnTest5.Left"[main/General script]
views.get("btntest2").setLeft((int)((views.get("btntest5").getLeft())));
//BA.debugLineNum = 47;BA.debugLine="btnTest2.Bottom = btnTest5.Top - Space"[main/General script]
views.get("btntest2").setTop((int)((views.get("btntest5").getTop())-Double.parseDouble(_space) - (views.get("btntest2").getPrefHeight())));
//BA.debugLineNum = 49;BA.debugLine="btnTest3.Left = btnTest5.Right + Space"[main/General script]
views.get("btntest3").setLeft((int)((views.get("btntest5").getLeft() + views.get("btntest5").getPrefWidth())+Double.parseDouble(_space)));
//BA.debugLineNum = 50;BA.debugLine="btnTest3.Bottom = btnTest5.Top - Space"[main/General script]
views.get("btntest3").setTop((int)((views.get("btntest5").getTop())-Double.parseDouble(_space) - (views.get("btntest3").getPrefHeight())));
//BA.debugLineNum = 52;BA.debugLine="btnTest4.Right = btnTest5.Left - Space"[main/General script]
views.get("btntest4").setLeft((int)((views.get("btntest5").getLeft())-Double.parseDouble(_space) - (views.get("btntest4").getPrefWidth())));
//BA.debugLineNum = 53;BA.debugLine="btnTest4.Top = btnTest5.Top"[main/General script]
views.get("btntest4").setTop((int)((views.get("btntest5").getTop())));
//BA.debugLineNum = 55;BA.debugLine="btnTest6.Left = btnTest5.Right + Space"[main/General script]
views.get("btntest6").setLeft((int)((views.get("btntest5").getLeft() + views.get("btntest5").getPrefWidth())+Double.parseDouble(_space)));
//BA.debugLineNum = 56;BA.debugLine="btnTest6.Top = btnTest5.Top"[main/General script]
views.get("btntest6").setTop((int)((views.get("btntest5").getTop())));
//BA.debugLineNum = 58;BA.debugLine="btnTest7.Right = btnTest5.Left - Space"[main/General script]
views.get("btntest7").setLeft((int)((views.get("btntest5").getLeft())-Double.parseDouble(_space) - (views.get("btntest7").getPrefWidth())));
//BA.debugLineNum = 59;BA.debugLine="btnTest7.Top = btnTest5.Bottom + Space"[main/General script]
views.get("btntest7").setTop((int)((views.get("btntest5").getTop() + views.get("btntest5").getPrefHeight())+Double.parseDouble(_space)));
//BA.debugLineNum = 61;BA.debugLine="btnTest8.Left = btnTest5.Left"[main/General script]
views.get("btntest8").setLeft((int)((views.get("btntest5").getLeft())));
//BA.debugLineNum = 62;BA.debugLine="btnTest8.Top = btnTest5.Bottom + Space"[main/General script]
views.get("btntest8").setTop((int)((views.get("btntest5").getTop() + views.get("btntest5").getPrefHeight())+Double.parseDouble(_space)));
//BA.debugLineNum = 64;BA.debugLine="btnTest9.Left = btnTest5.Right + Space"[main/General script]
views.get("btntest9").setLeft((int)((views.get("btntest5").getLeft() + views.get("btntest5").getPrefWidth())+Double.parseDouble(_space)));
//BA.debugLineNum = 65;BA.debugLine="btnTest9.Top = btnTest5.Bottom + Space"[main/General script]
views.get("btntest9").setTop((int)((views.get("btntest5").getTop() + views.get("btntest5").getPrefHeight())+Double.parseDouble(_space)));

}
}