Modifier and Type | Class and Description |
---|---|
static class |
Component.Alignment |
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled |
protected float |
height |
protected boolean |
highlighted |
protected java.lang.String |
id |
protected float |
width |
protected float |
x |
protected float |
y |
Constructor and Description |
---|
Component(float x,
float y,
float width,
float height,
Component.Alignment align) |
Component(java.lang.String id,
float x,
float y,
float width,
float height) |
Modifier and Type | Method and Description |
---|---|
Component.Alignment |
getAlign() |
float |
getHeight() |
java.lang.String |
getID() |
float |
getWidth() |
float |
getX() |
float |
getY() |
abstract boolean |
isActivated(Input in)
Should return true the tick when the component is activated by the user (ie when a button is clicked).
|
void |
render(Graphics g,
Input in) |
void |
render(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
protected abstract void |
renderI(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
void |
renderOverlay(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
protected abstract void |
renderOverlayI(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
Component |
setAlign(Component.Alignment align)
Component must be added to a valid com.thepattybeastlabs.core.gui.Container to work
|
Component |
setDim(float width,
float height) |
Component |
setHeight(float height) |
Component |
setID(java.lang.String id) |
Component |
setPos(float x,
float y) |
Component |
setWidth(float width) |
Component |
setX(float x) |
Component |
setY(float y) |
void |
tick(Input in,
AudioEngine ae,
float delta) |
void |
tick(Input in,
AudioEngine ae,
float delta,
float x,
float y,
float width,
float height) |
protected abstract void |
tickI(Input in,
AudioEngine ae,
float delta,
float x,
float y,
float width,
float height) |
protected float x
protected float y
protected float width
protected float height
protected boolean highlighted
protected java.lang.String id
protected boolean enabled
public Component(float x, float y, float width, float height, Component.Alignment align)
public Component(java.lang.String id, float x, float y, float width, float height)
protected abstract void renderI(Graphics g, Input in, float x, float y, float width, float height)
protected abstract void renderOverlayI(Graphics g, Input in, float x, float y, float width, float height)
public void renderOverlay(Graphics g, Input in, float x, float y, float width, float height)
public void tick(Input in, AudioEngine ae, float delta)
public void tick(Input in, AudioEngine ae, float delta, float x, float y, float width, float height)
protected abstract void tickI(Input in, AudioEngine ae, float delta, float x, float y, float width, float height)
public float getX()
public Component setX(float x)
public float getY()
public Component setY(float y)
public float getWidth()
public Component setWidth(float width)
public float getHeight()
public Component setHeight(float height)
public Component setDim(float width, float height)
public Component setPos(float x, float y)
public Component setAlign(Component.Alignment align)
public Component.Alignment getAlign()
public abstract boolean isActivated(Input in)
public Component setID(java.lang.String id)
public java.lang.String getID()