Class Rect
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(@NotNull com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) floatgetX()Deprecated.floatgetY()Deprecated.voidmove(@NotNull com.badlogic.gdx.math.Vector2 v) voidmoveBy(float x, float y) Deprecated.voidsetPosition(float x, float y) Deprecated.voidsetPosition(float x, float y, int alignment) Deprecated.voidsetX(float x) Deprecated.voidsetX(float x, int alignment) Deprecated.voidsetY(float y) Deprecated.voidsetY(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
-
Field Details
-
renderer
protected com.badlogic.gdx.graphics.glutils.ShapeRenderer renderer -
position
protected com.badlogic.gdx.math.Vector2 position -
size
-
color
-
-
Constructor Details
-
Rect
-
-
Method Details
-
draw
public void draw(@NotNull @NotNull com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) - Overrides:
drawin classcom.badlogic.gdx.scenes.scene2d.Actor
-
move
public void move(@NotNull @NotNull com.badlogic.gdx.math.Vector2 v) -
setX
Deprecated.Do not use this function, it will do nothing. Instead, use getPosition() or move().- Overrides:
setXin classcom.badlogic.gdx.scenes.scene2d.Actor
-
setY
Deprecated.Do not use this function, it will do nothing. Instead, use getPosition() or move().- Overrides:
setYin classcom.badlogic.gdx.scenes.scene2d.Actor
-
getX
Deprecated.Do not use this function, it will return 0. Instead, use getPosition().- Overrides:
getXin classcom.badlogic.gdx.scenes.scene2d.Actor- Returns:
- 0
-
getY
Deprecated.Do not use this function, it will return 0. Instead, use getPosition().- Overrides:
getYin classcom.badlogic.gdx.scenes.scene2d.Actor- Returns:
- 0
-
setX
Deprecated.Do not use this function, it will do nothing. Instead, use getPosition() or move().- Overrides:
setXin classcom.badlogic.gdx.scenes.scene2d.Actor
-
setY
Deprecated.Do not use this function, it will do nothing. Instead, use getPosition() or move().- Overrides:
setYin classcom.badlogic.gdx.scenes.scene2d.Actor
-
setPosition
Deprecated.Do not use this function, it will do nothing. Instead, use getPosition() or move().- Overrides:
setPositionin classcom.badlogic.gdx.scenes.scene2d.Actor
-
setPosition
Deprecated.Do not use this function, it will do nothing. Instead, use getPosition() or move().- Overrides:
setPositionin classcom.badlogic.gdx.scenes.scene2d.Actor
-
moveBy
Deprecated.Do not use this function, it will do nothing. Instead, use getPosition() or move().- Overrides:
moveByin classcom.badlogic.gdx.scenes.scene2d.Actor
-