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 |
boolean |
isActive |
int |
sizeX |
int |
sizeY |
int |
x |
int |
y |
| Constructor and Description |
|---|
GuiComponent(Gui gui,
int x,
int y,
int sizeX,
int sizeY) |
| Modifier and Type | Method and Description |
|---|---|
abstract IResourceName |
getName() |
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) |
void |
renderOverlay(IGameInstance game,
IAssetManager manager,
IGraphics g) |
java.lang.String |
toString() |
void |
update(IGameInstance game) |
protected final int guiColor
protected final int colorButton
protected final int colorOutline
protected final int colorButtonUnselected
public int sizeX
public int sizeY
public Gui gui
public int x
public int y
public boolean isActive
public GuiComponent(Gui gui, int x, int y, int sizeX, int sizeY)
public void update(IGameInstance game)
public void render(IGameInstance game, IAssetManager manager, IGraphics g)
public void renderOverlay(IGameInstance game, IAssetManager manager, IGraphics g)
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()