Package de.ellpeck.rockbottom.api.gui
Class Gui
java.lang.Object
de.ellpeck.rockbottom.api.gui.Gui
- Direct Known Subclasses:
AbstractStatGui,ContainerGui,MessageBoxGui
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<GuiComponent>static final intprotected final booleanprotected intstatic final intprotected final Guiprotected intprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanintabstract ResourceNamegetName()intgetWidth()intgetX()intgetY()booleanvoidinit(IGameInstance game) booleanisMouseOver(IGameInstance game) booleanbooleanisMouseOverPrioritized(IGameInstance game, GuiComponent component) booleanonCharInput(IGameInstance game, int codePoint, char[] characters) voidonClosed(IGameInstance game) booleanonKeyPressed(IGameInstance game, int button) booleanonMouseAction(IGameInstance game, int button, float x, float y) voidonOpened(IGameInstance game) voidrender(IGameInstance game, IAssetManager manager, IRenderer g) voidrenderOverlay(IGameInstance game, IAssetManager manager, IRenderer g) booleanvoidtoString()protected booleantryEscape(IGameInstance game) voidupdate(IGameInstance game) protected void
-
Field Details
-
GRADIENT_COLOR
public static final int GRADIENT_COLOR -
HOVER_INFO_BACKGROUND
public static final int HOVER_INFO_BACKGROUND -
parent
-
hasUnspecifiedBounds
protected final boolean hasUnspecifiedBounds -
width
protected int width -
height
protected int height -
x
protected int x -
y
protected int y -
components
-
-
Constructor Details
-
Gui
public Gui() -
Gui
-
Gui
public Gui(int width, int height) -
Gui
-
-
Method Details
-
onOpened
-
onClosed
-
init
-
updateDimensions
-
update
-
onMouseAction
-
onKeyPressed
-
onCharInput
-
canCloseWithInvKey
public boolean canCloseWithInvKey() -
render
-
renderOverlay
-
tryEscape
-
doesPauseGame
public boolean doesPauseGame() -
isMouseOverComponent
-
isMouseOver
-
hasGradient
public boolean hasGradient() -
sortComponents
public void sortComponents() -
isMouseOverPrioritized
-
getComponents
-
toString
-
getName
-
getX
public int getX() -
getY
public int getY() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
shouldDoFingerCursor
-