public class Toolbar
extends com.badlogic.gdx.scenes.scene2d.ui.Window
Modifier and Type | Class and Description |
---|---|
static class |
Toolbar.Tool
a enum listing the available tools
|
Constructor and Description |
---|
Toolbar(com.badlogic.gdx.scenes.scene2d.Stage stage,
com.badlogic.gdx.graphics.g2d.TextureAtlas sprites,
PlacableSelector left,
PlacableSelector right)
creates a new toolbar
|
Modifier and Type | Method and Description |
---|---|
Toolbar.Tool |
getLeftTool()
index of left mouse button.
|
Toolbar.Tool |
getRightTool()
index of right mouse button.
|
void |
render(com.badlogic.gdx.graphics.glutils.ShapeRenderer shR)
renders the toolbar outline
|
draw, drawBackground, drawStageBackground, getPrefWidth, getStyle, getTitleLabel, getTitleTable, hit, isDragging, isModal, isMovable, isResizable, setKeepWithinStage, setModal, setMovable, setResizable, setResizeBorder, setStyle
add, add, add, add, add, add, add, align, background, background, bottom, center, clearChildren, columnDefaults, debug, debug, debugActor, debugAll, debugCell, debugTable, defaults, drawDebug, drawDebugBounds, getAlign, getBackground, getCell, getCells, getClip, getColumns, getMinHeight, getMinWidth, getPadBottom, getPadBottomValue, getPadLeft, getPadLeftValue, getPadRight, getPadRightValue, getPadTop, getPadTopValue, getPadX, getPadY, getPrefHeight, getRow, getRows, getSkin, getTableDebug, invalidate, layout, left, pad, pad, pad, pad, padBottom, padBottom, padLeft, padLeft, padRight, padRight, padTop, padTop, removeActor, removeActor, reset, right, row, setBackground, setBackground, setClip, setDebug, setRound, setSkin, stack, top
childrenChanged, getMaxHeight, getMaxWidth, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate
act, addActor, addActorAfter, addActorAt, addActorBefore, applyTransform, applyTransform, clear, computeTransform, drawChildren, drawDebugChildren, findActor, getChildren, getCullingArea, hasChildren, isTransform, localToDescendantCoordinates, resetTransform, resetTransform, setCullingArea, setDebug, setStage, setTransform, swapActor, swapActor, toString
addAction, addCaptureListener, addListener, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, fire, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasParent, isAscendantOf, isDescendantOf, isTouchable, isVisible, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront
public Toolbar(com.badlogic.gdx.scenes.scene2d.Stage stage, com.badlogic.gdx.graphics.g2d.TextureAtlas sprites, PlacableSelector left, PlacableSelector right)
stage
- sprites
- left
- right
- public void render(com.badlogic.gdx.graphics.glutils.ShapeRenderer shR)
shR
- public Toolbar.Tool getLeftTool()
public Toolbar.Tool getRightTool()