@Override public void layout () { clampSplitAmount(); if (!vertical) calculateHorizBoundsAndPositions(); else calculateVertBoundsAndPositions(); Actor firstWidget = this.firstWidget; if (firstWidget != null) { Rectangle firstWidgetBounds = this.firstWidgetBounds; firstWidget.setBounds(firstWidgetBounds.x, firstWidgetBounds.y, firstWidgetBounds.width, firstWidgetBounds.height); if (firstWidget instanceof Layout) ((Layout)firstWidget).validate(); } Actor secondWidget = this.secondWidget; if (secondWidget != null) { Rectangle secondWidgetBounds = this.secondWidgetBounds; secondWidget.setBounds(secondWidgetBounds.x, secondWidgetBounds.y, secondWidgetBounds.width, secondWidgetBounds.height); if (secondWidget instanceof Layout) ((Layout)secondWidget).validate(); } }
@Override public void layout () { clampSplitAmount(); if (!vertical) calculateHorizBoundsAndPositions(); else calculateVertBoundsAndPositions(); Actor firstWidget = this.firstWidget; if (firstWidget != null) { Rectangle firstWidgetBounds = this.firstWidgetBounds; firstWidget.setBounds(firstWidgetBounds.x, firstWidgetBounds.y, firstWidgetBounds.width, firstWidgetBounds.height); if (firstWidget instanceof Layout) ((Layout)firstWidget).validate(); } Actor secondWidget = this.secondWidget; if (secondWidget != null) { Rectangle secondWidgetBounds = this.secondWidgetBounds; secondWidget.setBounds(secondWidgetBounds.x, secondWidgetBounds.y, secondWidgetBounds.width, secondWidgetBounds.height); if (secondWidget instanceof Layout) ((Layout)secondWidget).validate(); } }
public void layout () { if (sizeInvalid) computeSize(); float width = getWidth(), height = getHeight(); Array<Actor> children = getChildren(); for (int i = 0, n = children.size; i < n; i++) { Actor child = children.get(i); child.setBounds(0, 0, width, height); if (child instanceof Layout) ((Layout)child).validate(); } }
public void layout () { if (sizeInvalid) computeSize(); float width = getWidth(), height = getHeight(); Array<Actor> children = getChildren(); for (int i = 0, n = children.size; i < n; i++) { Actor child = children.get(i); child.setBounds(0, 0, width, height); if (child instanceof Layout) ((Layout)child).validate(); } }
for (int i = 0, n = children.size; i < n; i++) { Actor child = children.get(i); if (child instanceof Layout) ((Layout)child).validate();
if (actor instanceof Layout) ((Layout)actor).validate();
for (int i = 0, n = children.size; i < n; i++) { Actor child = children.get(i); if (child instanceof Layout) ((Layout)child).validate();
if (actor instanceof Layout) ((Layout)actor).validate();
child.setBounds(x, y, width, height); if (layout != null) layout.validate();
child.setBounds(x, y, width, height); if (layout != null) layout.validate();
x += width + space; if (layout != null) layout.validate();
x += width + space; if (layout != null) layout.validate();
x += width + space; if (layout != null) layout.validate();
child.setBounds(x, y, width, height); if (layout != null) layout.validate();
x += width + space; if (layout != null) layout.validate();
child.setBounds(x, y, width, height); if (layout != null) layout.validate();
if (widget instanceof Layout) ((Layout)widget).validate();
if (widget instanceof Layout) ((Layout)widget).validate();
public void layout () { if (sizeInvalid) computeSize(); float width = getWidth(), height = getHeight(); Array<Actor> children = getChildren(); for (int i = 0, n = children.size; i < n; i++) { Actor child = children.get(i); child.setBounds(0, 0, width, height); if (child instanceof Layout) ((Layout)child).validate(); } }
@Override public void layout () { if (!vertical) calculateHorizBoundsAndPositions(); else calculateVertBoundsAndPositions(); SnapshotArray<Actor> actors = getChildren(); for (int i = 0; i < actors.size; i++) { Actor actor = actors.get(i); Rectangle bounds = widgetBounds.get(i); actor.setBounds(bounds.x, bounds.y, bounds.width, bounds.height); if (actor instanceof Layout) ((Layout) actor).validate(); } }