Package com.badlogic.gdx.scenes.scene2d

Examples of com.badlogic.gdx.scenes.scene2d.Layout.validate()


      secondWidget.width = secondWidgetBounds.width;
      secondWidget.height = secondWidgetBounds.height;
      if (secondWidget instanceof Layout) {
        Layout layout = (Layout)secondWidget;
        layout.invalidate();
        layout.validate();
      }
    }
  }

  @Override
View Full Code Here


    }

    if (widget instanceof Layout) {
      Layout layout = (Layout)widget;
      layout.invalidate();
      layout.validate();
    }
  }

  @Override
  public void draw (SpriteBatch batch, float parentAlpha) {
View Full Code Here

      firstWidget.width = firstWidgetBounds.width;
      firstWidget.height = firstWidgetBounds.height;
      if (firstWidget instanceof Layout) {
        Layout layout = (Layout)firstWidget;
        layout.invalidate();
        layout.validate();
      }
    }
    if (secondWidget != null && secondWidget.width != secondWidgetBounds.width
      || secondWidget.height != secondWidgetBounds.height) {
      secondWidget.x = secondWidgetBounds.x;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.