public static void setWindowLayout(String winName, Layout.Direction layout) { Window win = findWindow(winName); if (win != null) { win.setLayout(layout); } }
public void beginLayout(Layout.Direction layout) { Vector2 pos = Vector2.Zero; if (myLayoutStack.Count > 0) { pos = cursorPosition; } Layout l = new Layout(this, layout, pos); myLayoutStack.Push(l); }
public static float percent(float p, Layout.Direction dir) { Window win = currentWindow; if (win.skipItems) { return(0.0f); } float size = win.size[(int)dir]; return((p / 100.0f) * size); }
public static void beginLayout(Layout.Direction layout) { Window win = currentWindow; win.beginLayout(layout); }
public static void setWindowLayout(Layout.Direction layout) { Window win = currentWindow; win.setLayout(layout); }
public void beginLayout(Vector2 position, Layout.Direction layout) { Layout l = new Layout(this, layout, position); myLayoutStack.Push(l); }
public void setLayout(Layout.Direction layout) { myLayoutStack.Peek().myDirection = layout; }