public abstract class GuiComponent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Gui |
gui |
protected int |
height |
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 |
|---|---|
static int |
getElementColor() |
static int |
getElementOutlineColor() |
static int |
getGuiColor() |
int |
getHeight() |
abstract IResourceName |
getName() |
int |
getPriority() |
int |
getRenderX() |
int |
getRenderY() |
static int |
getUnselectedElementColor() |
int |
getWidth() |
int |
getX() |
int |
getY() |
boolean |
isActive() |
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) |
void |
setActive(boolean active) |
boolean |
shouldDoFingerCursor(IGameInstance game) |
java.lang.String |
toString() |
void |
update(IGameInstance game) |
public final Gui gui
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 static int getGuiColor()
public static int getElementColor()
public static int getUnselectedElementColor()
public static int getElementOutlineColor()
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 isActive()
public void setActive(boolean active)
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 getWidth()
public int getHeight()
public int getRenderX()
public int getRenderY()
public int getPriority()
public boolean shouldDoFingerCursor(IGameInstance game)