Свойство | Тип | Описание | |
---|---|---|---|
buttonBoundaryThreshold | float | ||
programmaticChangeEvents | bool |
Свойство | Тип | Описание | |
---|---|---|---|
_isChecked | bool | ||
_isDisabled | bool | ||
_mouseOver | bool |
Метод | Описание | |
---|---|---|
Button ( |
||
Button ( IDrawable up ) : System | ||
Button ( IDrawable up, IDrawable down ) : System | ||
Button ( IDrawable up, IDrawable down, IDrawable checked_ ) : System | ||
Button ( Skin skin, string styleName = null ) : System | ||
IGamepadFocusable ( ) : void | ||
IGamepadFocusable ( Direction direction ) : void | ||
IInputListener ( ) : void | ||
IInputListener ( Vector2 mousePos ) : void | ||
ToString ( ) : string | ||
draw ( Graphics graphics, float parentAlpha ) : void | ||
enableExplicitFocusableControl ( IGamepadFocusable upEle, IGamepadFocusable downEle, IGamepadFocusable leftEle, IGamepadFocusable rightEle ) : void | ||
getButtonGroup ( ) : |
May be null
|
|
getDisabled ( ) : bool | ||
getStyle ( ) : |
Returns the button's style. Modifying the returned style may not have an effect until {@link #setStyle(ButtonStyle)} is called.
|
|
setChecked ( bool isChecked, bool fireEvent ) : void | ||
setDisabled ( bool disabled ) : void | ||
setStyle ( |
||
toggle ( ) : void |
Toggles the checked state. This method changes the checked state, which fires a {@link onChangedEvent} (if programmatic change events are enabled), so can be used to simulate a button click.
|
Метод | Описание | |
---|---|---|
onActionButtonPressed ( ) : void | ||
onActionButtonReleased ( ) : void | ||
onFocused ( ) : void | ||
onUnfocused ( ) : void |
Метод | Описание | |
---|---|---|
IInputListener ( Vector2 mousePos ) : bool | ||
IInputListener ( int mouseWheelDelta ) : bool |
public Button ( |
||
style | ||
Результат | System |
public Button ( IDrawable up, IDrawable down ) : System | ||
up | IDrawable | |
down | IDrawable | |
Результат | System |
public Button ( IDrawable up, IDrawable down, IDrawable checked_ ) : System | ||
up | IDrawable | |
down | IDrawable | |
checked_ | IDrawable | |
Результат | System |
public Button ( Skin skin, string styleName = null ) : System | ||
skin | Skin | |
styleName | string | |
Результат | System |
public IGamepadFocusable ( Direction direction ) : void | ||
direction | Direction | |
Результат | void |
public IInputListener ( Vector2 mousePos ) : void | ||
mousePos | Vector2 | |
Результат | void |
public draw ( Graphics graphics, float parentAlpha ) : void | ||
graphics | Graphics | |
parentAlpha | float | |
Результат | void |
public enableExplicitFocusableControl ( IGamepadFocusable upEle, IGamepadFocusable downEle, IGamepadFocusable leftEle, IGamepadFocusable rightEle ) : void | ||
upEle | IGamepadFocusable | |
downEle | IGamepadFocusable | |
leftEle | IGamepadFocusable | |
rightEle | IGamepadFocusable | |
Результат | void |
protected onActionButtonReleased ( ) : void | ||
Результат | void |
public setChecked ( bool isChecked, bool fireEvent ) : void | ||
isChecked | bool | |
fireEvent | bool | |
Результат | void |
public setDisabled ( bool disabled ) : void | ||
disabled | bool | |
Результат | void |
public setStyle ( |
||
style | ||
Результат | void |