public abstract class Button extends Widget
| Modifier and Type | Field and Description |
|---|---|
Image |
icon |
java.lang.String |
label |
int |
state
0x4 = state flag, as opposed to 1 click
0 = normal
1 = on
2 = disabled
|
| Modifier and Type | Method and Description |
|---|---|
int |
contentWidth() |
void |
draw(int mousex,
int mousey) |
java.lang.String |
getButtonTip() |
Image |
getRenderIcon() |
java.lang.String |
getRenderLabel() |
boolean |
handleClick(int mx,
int my,
int button) |
java.util.List<java.lang.String> |
handleTooltip(int mx,
int my,
java.util.List<java.lang.String> tooltip) |
abstract boolean |
onButtonPress(boolean rightclick) |
bounds, contains, gainFocus, getStackMouseOver, handleClickExt, handleKeyPress, lastKeyTyped, loseFocus, mouseDragged, mouseUp, onGuiClick, onMouseWheel, postDraw, updatepublic java.lang.String label
public Image icon
public int state
public int contentWidth()
public boolean handleClick(int mx,
int my,
int button)
handleClick in class Widgetpublic abstract boolean onButtonPress(boolean rightclick)
public Image getRenderIcon()
public java.util.List<java.lang.String> handleTooltip(int mx,
int my,
java.util.List<java.lang.String> tooltip)
handleTooltip in class Widgetpublic java.lang.String getButtonTip()
public java.lang.String getRenderLabel()