Package com.badlogic.gdx.scenes.scene2d.ui.Value

Examples of com.badlogic.gdx.scenes.scene2d.ui.Value.Fixed


    maxSize(new Fixed(width));
    return this;
  }

  public Cell<T> maxWidth (float maxWidth) {
    this.maxWidth = new Fixed(maxWidth);
    return this;
  }
View Full Code Here


    this.maxWidth = new Fixed(maxWidth);
    return this;
  }

  public Cell<T> maxHeight (float maxHeight) {
    this.maxHeight = new Fixed(maxHeight);
    return this;
  }
View Full Code Here

  }

  /** Sets the spaceTop, spaceLeft, spaceBottom, and spaceRight to the specified value. */
  public Cell<T> space (float space) {
    if (space < 0) throw new IllegalArgumentException("space cannot be < 0.");
    Value value = new Fixed(space);
    spaceTop = value;
    spaceLeft = value;
    spaceBottom = value;
    spaceRight = value;
    return this;
View Full Code Here

  public Cell<T> space (float top, float left, float bottom, float right) {
    if (top < 0) throw new IllegalArgumentException("top cannot be < 0.");
    if (left < 0) throw new IllegalArgumentException("left cannot be < 0.");
    if (bottom < 0) throw new IllegalArgumentException("bottom cannot be < 0.");
    if (right < 0) throw new IllegalArgumentException("right cannot be < 0.");
    spaceTop = new Fixed(top);
    spaceLeft = new Fixed(left);
    spaceBottom = new Fixed(bottom);
    spaceRight = new Fixed(right);
    return this;
  }
View Full Code Here

    return this;
  }

  public Cell<T> spaceTop (float spaceTop) {
    if (spaceTop < 0) throw new IllegalArgumentException("spaceTop cannot be < 0.");
    this.spaceTop = new Fixed(spaceTop);
    return this;
  }
View Full Code Here

    return this;
  }

  public Cell<T> spaceLeft (float spaceLeft) {
    if (spaceLeft < 0) throw new IllegalArgumentException("spaceLeft cannot be < 0.");
    this.spaceLeft = new Fixed(spaceLeft);
    return this;
  }
View Full Code Here

    return this;
  }

  public Cell<T> spaceBottom (float spaceBottom) {
    if (spaceBottom < 0) throw new IllegalArgumentException("spaceBottom cannot be < 0.");
    this.spaceBottom = new Fixed(spaceBottom);
    return this;
  }
View Full Code Here

    return this;
  }

  public Cell<T> spaceRight (float spaceRight) {
    if (spaceRight < 0) throw new IllegalArgumentException("spaceRight cannot be < 0.");
    this.spaceRight = new Fixed(spaceRight);
    return this;
  }
View Full Code Here

    return this;
  }

  /** Sets the padTop, padLeft, padBottom, and padRight to the specified value. */
  public Cell<T> pad (float pad) {
    Value value = new Fixed(pad);
    padTop = value;
    padLeft = value;
    padBottom = value;
    padRight = value;
    return this;
View Full Code Here

    padRight = value;
    return this;
  }

  public Cell<T> pad (float top, float left, float bottom, float right) {
    padTop = new Fixed(top);
    padLeft = new Fixed(left);
    padBottom = new Fixed(bottom);
    padRight = new Fixed(right);
    return this;
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.scenes.scene2d.ui.Value.Fixed

Copyright © 2018 www.massapicom. 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.