Package com.prineside.tdi2.ui.actors
Class QuadActor
java.lang.Object
com.prineside.tdi2.scene2d.Actor
com.prineside.tdi2.scene2d.ui.Widget
com.prineside.tdi2.ui.actors.QuadActor
- All Implemented Interfaces:
 Layout
Deprecated, use Quad as a regular Drawable for an Image
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidIf this method is overridden, the super method orWidget.validate()should be called to ensure the widget is laid out.float[]voidsetTextureRegion(TextureRegion region) voidsetVertexColors(Color bottomLeft, Color topLeft, Color topRight, Color bottomRight) voidsetVertexColorsDirect(int[] colors) voidsetVertexColorsSingle(Color color) voidsetVertexPositions(float[] positions) voidsetVertices(float[] vertices) Methods inherited from class com.prineside.tdi2.scene2d.ui.Widget
getMaxHeight, getMaxHeightValue, getMaxWidth, getMaxWidthValue, getMinHeight, getMinHeightValue, getMinWidth, getMinWidthValue, getPrefHeight, getPrefHeightValue, getPrefWidth, getPrefWidthValue, invalidate, invalidateHierarchy, layout, needsLayout, pack, setFillParent, setLayoutEnabled, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setPrefHeight, setPrefHeight, setPrefWidth, setPrefWidth, validateMethods inherited from class com.prineside.tdi2.scene2d.Actor
act, addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, hit, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toString 
- 
Constructor Details
- 
QuadActor
public QuadActor(float[] vertices, int[] colors) - Parameters:
 vertices- массив из 8 чисел - позиций вершин четырехугольника. Значения от 0 до 1 { x, y, Bottom Left x, y, Top Left x, y, Top Right x, y Bottom right }colors- массив цветов 4 вершин четырехугольника. Значения от 0 до 255 { r, g, b, a, Bottom Left r, g, b, a, Top Left r, g, b, a, Top Right r, g, b, a Bottom right }
 - 
QuadActor
 - 
QuadActor
Сразу задает размеры в пикселях. Ширина и высота будет установлена автоматически- Parameters:
 positions- массив из 8 чисел - позиций вершин четырехугольника. Значения в пикселях { x, y, Bottom Left x, y, Top Left x, y, Top Right x, y Bottom right }
 - 
QuadActor
 - 
QuadActor
 
 - 
 - 
Method Details
- 
setTextureRegion
 - 
getTextureRegion
 - 
getVertexPositions
public float[] getVertexPositions() - 
setVertexPositions
public void setVertexPositions(float[] positions)  - 
setVertices
public void setVertices(float[] vertices)  - 
setVertexColorsDirect
public void setVertexColorsDirect(int[] colors)  - 
setVertexColors
 - 
setVertexColorsSingle
 - 
draw
Description copied from class:WidgetIf this method is overridden, the super method orWidget.validate()should be called to ensure the widget is laid out. 
 -