effects, styleId, visibility, zIndex
Constructor and Description |
---|
UiContainer(GameContainer gc,
com.badlogic.gdx.assets.AssetManager assetManager) |
Modifier and Type | Method and Description |
---|---|
void |
add(Container container) |
void |
addScreenSizeListener(ScreenSizeListener listener) |
void |
attach(ParentRenderNode<?,?> parentRenderNode) |
void |
clearActiveNavigation() |
void |
detach(ParentRenderNode<?,?> parentRenderNode) |
int |
getHeight() |
InputSource |
getLastInputSource() |
UiTheme |
getTheme() |
int |
getWidth() |
void |
interpolate(float alpha) |
boolean |
isThemeApplied() |
boolean |
keyDown(int keycode) |
boolean |
keyTyped(char character) |
boolean |
keyUp(int keycode) |
boolean |
mouseMoved(int screenX,
int screenY) |
void |
remove(Container container) |
void |
removeScreenSizeListener(ScreenSizeListener listener) |
void |
render(Graphics g) |
boolean |
scrolled(int amount) |
void |
set(int width,
int height)
Sets the width and height of the
UiContainer |
void |
setActiveNavigation(Navigatable activeNavigation) |
void |
setScale(float scaleX,
float scaleY)
Sets the
Graphics scaling during rendering. |
void |
setStyleId(java.lang.String styleId) |
void |
setTheme(UiTheme theme) |
void |
setVisibility(Visibility visibility) |
void |
setZIndex(int zIndex) |
void |
syncWithRenderNode() |
boolean |
touchDown(int screenX,
int screenY,
int pointer,
int button) |
boolean |
touchDragged(int screenX,
int screenY,
int pointer) |
boolean |
touchUp(int screenX,
int screenY,
int pointer,
int button) |
void |
update(float delta) |
addHoverListener, applyEffect, equals, getElementById, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeHoverListener, setDebugEnabled
public UiContainer(GameContainer gc, com.badlogic.gdx.assets.AssetManager assetManager)
public void update(float delta)
public void interpolate(float alpha)
public void render(Graphics g)
public void add(Container container)
public void remove(Container container)
public void attach(ParentRenderNode<?,?> parentRenderNode)
public void detach(ParentRenderNode<?,?> parentRenderNode)
public void setVisibility(Visibility visibility)
setVisibility
in class UiElement
public void syncWithRenderNode()
syncWithRenderNode
in class UiElement
public void addScreenSizeListener(ScreenSizeListener listener)
public void removeScreenSizeListener(ScreenSizeListener listener)
public boolean isThemeApplied()
public UiTheme getTheme()
public void setTheme(UiTheme theme)
public void setStyleId(java.lang.String styleId)
setStyleId
in class UiElement
public boolean touchDown(int screenX, int screenY, int pointer, int button)
touchDown
in interface com.badlogic.gdx.InputProcessor
public boolean touchUp(int screenX, int screenY, int pointer, int button)
touchUp
in interface com.badlogic.gdx.InputProcessor
public boolean touchDragged(int screenX, int screenY, int pointer)
touchDragged
in interface com.badlogic.gdx.InputProcessor
public boolean mouseMoved(int screenX, int screenY)
mouseMoved
in interface com.badlogic.gdx.InputProcessor
public boolean scrolled(int amount)
scrolled
in interface com.badlogic.gdx.InputProcessor
public boolean keyTyped(char character)
keyTyped
in interface com.badlogic.gdx.InputProcessor
public boolean keyDown(int keycode)
keyDown
in interface com.badlogic.gdx.InputProcessor
public boolean keyUp(int keycode)
keyUp
in interface com.badlogic.gdx.InputProcessor
public void setActiveNavigation(Navigatable activeNavigation)
public void clearActiveNavigation()
public int getWidth()
public int getHeight()
public void set(int width, int height)
UiContainer
width
- The width in pixelsheight
- The height in pixelspublic void setScale(float scaleX, float scaleY)
Graphics
scaling during rendering. Mouse/touch
coordinates will be scaled accordingly.scaleX
- Scaling along the X axisscaleY
- Scaling along the Y axispublic InputSource getLastInputSource()