Struct TouchScreenButton
Button for touch screen devices.
struct TouchScreenButton
;
You can set it to be visible on all screens, or only on touch devices.
Properties
Name | Type | Description |
---|---|---|
action [get, set]
|
String | The button's action. Actions can be handled with InputEventAction .
|
bitmask [get, set]
|
BitMap | The button's bitmask. |
normal [get, set]
|
Texture | The button's texture for the normal state. |
passbyPress [get, set]
|
bool | If true , pass-by presses are enabled.
|
pressed [get, set]
|
Texture | The button's texture for the pressed state. |
shape [get, set]
|
Shape2D | The button's shape. |
shapeCentered [get, set]
|
bool | If true , the button's shape is centered in the provided texture. If no texture is used, this property has no effect.
|
shapeVisible [get, set]
|
bool | If true , the button's shape is visible.
|
visibilityMode [get, set]
|
TouchScreenButton | The button's visibility mode. See visibilitymode for possible values.
|
Methods
Name | Description |
---|---|
_input
|
|
getAction
|
|
getBitmask
|
|
getShape
|
|
getTexture
|
|
getTexturePressed
|
|
getVisibilityMode
|
|
isPassbyPressEnabled
|
|
isPressed
|
Returns true if this button is currently pressed.
|
isShapeCentered
|
|
isShapeVisible
|
|
setAction
|
|
setBitmask
|
|
setPassbyPress
|
|
setShape
|
|
setShapeCentered
|
|
setShapeVisible
|
|
setTexture
|
|
setTexturePressed
|
|
setVisibilityMode
|
Enums
Name | Description |
---|---|
Constants
|
|
VisibilityMode
|