Package com.badlogic.gdx.scenes.scene2d

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


      actor.y = 0;
      actor.width = width;
      actor.height = height;
      if (actor instanceof Layout) {
        Layout layout = (Layout)actor;
        layout.invalidate();
        layout.layout();
      }
    }
  }
View Full Code Here


    if (widget.width != widgetWidth || widget.height != widgetHeight) {
      widget.width = widgetWidth;
      widget.height = widgetHeight;
      if (widget instanceof Layout) {
        Layout layout = (Layout)widget;
        layout.invalidate();
        layout.layout();
      }
    }

    // Set the bounds and scroll knob sizes if scrollbars are needed.
View Full Code Here

  public void layout () {
    if (!needsLayout) return;
    needsLayout = false;
    if (widget instanceof Layout) {
      Layout layout = (Layout)widget;
      layout.invalidate();
      layout.layout();
    }
  }

  @Override
View Full Code Here

      actor.y = table.height - c.getWidgetY() - widgetHeight;
      actor.width = c.getWidgetWidth();
      actor.height = widgetHeight;
      if (actor instanceof Layout) {
        Layout layout = (Layout)actor;
        layout.invalidate();
        layout.layout();
      }
    }
  }
View Full Code Here

      secondWidget.y = secondWidgetBounds.y;
      secondWidget.width = secondWidgetBounds.width;
      secondWidget.height = secondWidgetBounds.height;
      if (secondWidget instanceof Layout) {
        Layout layout = (Layout)secondWidget;
        layout.invalidate();
        layout.validate();
      }
    }
  }
View Full Code Here

      vKnobBounds.y = vScrollBounds.y + (int)((vScrollBounds.height - vKnobBounds.height) * (1 - getScrollPercentY()));
    }

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

  @Override
View Full Code Here

      firstWidget.y = firstWidgetBounds.y;
      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) {
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.