public abstract class GuiComponent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
colorButton |
protected int |
colorButtonUnselected |
protected int |
colorOutline |
Gui |
gui |
protected int |
guiColor |
protected int |
height |
boolean |
isActive |
protected int |
width |
protected int |
x |
protected int |
y |
| Constructor and Description |
|---|
GuiComponent(Gui gui,
int x,
int y,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
abstract IResourceName |
getName() |
int |
getPriority() |
int |
getRenderX() |
int |
getRenderY() |
int |
getX() |
int |
getY() |
boolean |
isMouseOver(IGameInstance game) |
boolean |
isMouseOverPrioritized(IGameInstance game) |
boolean |
onKeyboardAction(IGameInstance game,
int button,
char character) |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
render(IGameInstance game,
IAssetManager manager,
IGraphics g,
int x,
int y) |
void |
renderOverlay(IGameInstance game,
IAssetManager manager,
IGraphics g,
int x,
int y) |
java.lang.String |
toString() |
void |
update(IGameInstance game) |
public final Gui gui
protected final int guiColor
protected final int colorButton
protected final int colorOutline
protected final int colorButtonUnselected
public boolean isActive
protected int width
protected int height
protected int x
protected int y
public GuiComponent(Gui gui, int x, int y, int width, int height)
public void update(IGameInstance game)
public void render(IGameInstance game, IAssetManager manager, IGraphics g, int x, int y)
public void renderOverlay(IGameInstance game, IAssetManager manager, IGraphics g, int x, int y)
public boolean isMouseOverPrioritized(IGameInstance game)
public boolean isMouseOver(IGameInstance game)
public boolean onMouseAction(IGameInstance game, int button, float x, float y)
public boolean onKeyboardAction(IGameInstance game, int button, char character)
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract IResourceName getName()
public int getX()
public int getY()
public int getRenderX()
public int getRenderY()
public int getPriority()