public class Button extends Component
Component.Alignment
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
text |
Constructor and Description |
---|
Button(java.lang.String text,
java.lang.String id,
float x,
float y,
float width,
float height) |
Modifier and Type | Method and Description |
---|---|
boolean |
isActivated(Input in)
Should return true the tick when the component is activated by the user (ie when a button is clicked).
|
void |
renderI(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
protected void |
renderOverlayI(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
protected void |
tickI(Input in,
AudioEngine ae,
float delta,
float x,
float y,
float width,
float height) |
public Button(java.lang.String text, java.lang.String id, float x, float y, float width, float height)
protected void tickI(Input in, AudioEngine ae, float delta, float x, float y, float width, float height)
public boolean isActivated(Input in)
Component
isActivated
in class Component
protected void renderOverlayI(Graphics g, Input in, float x, float y, float width, float height)
renderOverlayI
in class Component