java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
org.indiumstudios.keylib.rendering.objects.shapes.Rect

public class Rect extends com.badlogic.gdx.scenes.scene2d.Actor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected RGBAc
     
    protected com.badlogic.gdx.math.Vector2
     
    protected com.badlogic.gdx.graphics.glutils.ShapeRenderer
     
    protected Dimension
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Rect(com.badlogic.gdx.math.Vector2 position, Dimension size, @NotNull RGBAc color)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(@NotNull com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha)
     
    float
    Deprecated.
    float
    Deprecated.
    void
    move(@NotNull com.badlogic.gdx.math.Vector2 v)
     
    void
    moveBy(float x, float y)
    Deprecated.
    void
    setPosition(float x, float y)
    Deprecated.
    void
    setPosition(float x, float y, int alignment)
    Deprecated.
    void
    setX(float x)
    Deprecated.
    void
    setX(float x, int alignment)
    Deprecated.
    void
    setY(float y)
    Deprecated.
    void
    setY(float y, int alignment)
    Deprecated.

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor

    act, addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, hit, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setStage, setTouchable, setUserObject, setVisible, setWidth, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • renderer

      protected com.badlogic.gdx.graphics.glutils.ShapeRenderer renderer
    • position

      protected com.badlogic.gdx.math.Vector2 position
    • size

      protected Dimension size
    • color

      protected RGBAc color
  • Constructor Details

    • Rect

      public Rect(com.badlogic.gdx.math.Vector2 position, Dimension size, @NotNull @NotNull RGBAc color)
  • Method Details

    • draw

      public void draw(@NotNull @NotNull com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha)
      Overrides:
      draw in class com.badlogic.gdx.scenes.scene2d.Actor
    • move

      public void move(@NotNull @NotNull com.badlogic.gdx.math.Vector2 v)
    • setX

      @Deprecated public void setX(float x)
      Deprecated.
      Do not use this function, it will do nothing. Instead, use getPosition() or move().
      Overrides:
      setX in class com.badlogic.gdx.scenes.scene2d.Actor
    • setY

      @Deprecated public void setY(float y)
      Deprecated.
      Do not use this function, it will do nothing. Instead, use getPosition() or move().
      Overrides:
      setY in class com.badlogic.gdx.scenes.scene2d.Actor
    • getX

      @Deprecated public float getX()
      Deprecated.
      Do not use this function, it will return 0. Instead, use getPosition().
      Overrides:
      getX in class com.badlogic.gdx.scenes.scene2d.Actor
      Returns:
      0
    • getY

      @Deprecated public float getY()
      Deprecated.
      Do not use this function, it will return 0. Instead, use getPosition().
      Overrides:
      getY in class com.badlogic.gdx.scenes.scene2d.Actor
      Returns:
      0
    • setX

      @Deprecated public void setX(float x, int alignment)
      Deprecated.
      Do not use this function, it will do nothing. Instead, use getPosition() or move().
      Overrides:
      setX in class com.badlogic.gdx.scenes.scene2d.Actor
    • setY

      @Deprecated public void setY(float y, int alignment)
      Deprecated.
      Do not use this function, it will do nothing. Instead, use getPosition() or move().
      Overrides:
      setY in class com.badlogic.gdx.scenes.scene2d.Actor
    • setPosition

      @Deprecated public void setPosition(float x, float y)
      Deprecated.
      Do not use this function, it will do nothing. Instead, use getPosition() or move().
      Overrides:
      setPosition in class com.badlogic.gdx.scenes.scene2d.Actor
    • setPosition

      @Deprecated public void setPosition(float x, float y, int alignment)
      Deprecated.
      Do not use this function, it will do nothing. Instead, use getPosition() or move().
      Overrides:
      setPosition in class com.badlogic.gdx.scenes.scene2d.Actor
    • moveBy

      @Deprecated public void moveBy(float x, float y)
      Deprecated.
      Do not use this function, it will do nothing. Instead, use getPosition() or move().
      Overrides:
      moveBy in class com.badlogic.gdx.scenes.scene2d.Actor