Package group24.escaperoom.ui
Class DrawingPane
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
group24.escaperoom.ui.DrawingPane
public class DrawingPane
extends com.badlogic.gdx.scenes.scene2d.Actor
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddraw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) static intvoidvoidsetBrushSize(int size) voidsetDrawColor(com.badlogic.gdx.graphics.Color color) voidsetItemBrushItem(Item item) Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
act, addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, 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, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, hit, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setStage, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront, toString
-
Field Details
-
canvasColor
public static final com.badlogic.gdx.graphics.Color canvasColor
-
-
Constructor Details
-
DrawingPane
public DrawingPane(com.badlogic.gdx.graphics.Pixmap pixmap)
-
-
Method Details
-
getBrushSize
public static int getBrushSize() -
setDrawColor
public void setDrawColor(com.badlogic.gdx.graphics.Color color) -
setBrushSize
public void setBrushSize(int size) -
setBrushShape
-
setItemBrushItem
-
clear
public void clear()- Overrides:
clearin classcom.badlogic.gdx.scenes.scene2d.Actor
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) - Overrides:
drawin classcom.badlogic.gdx.scenes.scene2d.Actor
-