Class GuiComponent
java.lang.Object
de.ellpeck.rockbottom.api.gui.component.GuiComponent
- Direct Known Subclasses:
ButtonComponent,ClickableTextComponent,ColorPickerComponent,ConfirmationPopupComponent,ConstructComponent,IngredientComponent,InputFieldComponent,MessageBoxComponent,PolaroidComponent,ProgressBarComponent,ScrollBarComponent,SlotComponent,StatisticComponent,TextComponent
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic intstatic intstatic intintabstract ResourceNamegetName()intintintstatic intintgetWidth()intgetX()intgetY()booleanisActive()booleanisMouseOver(IGameInstance game) booleanbooleanonCharInput(IGameInstance game, int codePoint, char[] characters) booleanonKeyPressed(IGameInstance game, int button) booleanonMouseAction(IGameInstance game, int button, float x, float y) voidrender(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y) voidrenderOverlay(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y) voidsetActive(boolean active) voidsetPos(int x, int y) booleantoString()voidupdate(IGameInstance game) voidupdateInactive(IGameInstance game)
-
Field Details
-
gui
-
width
protected int width -
height
protected int height -
x
protected int x -
y
protected int y
-
-
Constructor Details
-
GuiComponent
-
-
Method Details
-
getGuiColor
public static int getGuiColor() -
getElementColor
public static int getElementColor() -
getUnselectedElementColor
public static int getUnselectedElementColor() -
getElementOutlineColor
public static int getElementOutlineColor() -
setPos
public void setPos(int x, int y) -
update
-
updateInactive
-
render
-
renderOverlay
-
isMouseOverPrioritized
-
isMouseOver
-
isActive
public boolean isActive() -
setActive
public void setActive(boolean active) -
onMouseAction
-
onKeyPressed
-
onCharInput
-
toString
-
getName
-
getX
public int getX() -
getY
public int getY() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getRenderX
public int getRenderX() -
getRenderY
public int getRenderY() -
getPriority
public int getPriority() -
shouldDoFingerCursor
-
canCloseWithInvKey
public boolean canCloseWithInvKey()
-