TouchScreenButton

Button for touch screen devices.

You can set it to be visible on all screens, or only on touch devices.

@GodotBaseClass
struct TouchScreenButton {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
VisibilityMode
enum VisibilityMode

Functions

_input
void _input(InputEvent arg0)
getAction
String getAction()
getBitmask
Ref!BitMap getBitmask()
getShape
Ref!Shape2D getShape()
getTexture
Ref!Texture getTexture()
getTexturePressed
Ref!Texture getTexturePressed()
getVisibilityMode
TouchScreenButton.VisibilityMode getVisibilityMode()
isPassbyPressEnabled
bool isPassbyPressEnabled()
isPressed
bool isPressed()

Returns true if this button is currently pressed.

isShapeCentered
bool isShapeCentered()
isShapeVisible
bool isShapeVisible()
opAssign
TouchScreenButton opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(TouchScreenButton other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setAction
void setAction(StringArg0 action)
setBitmask
void setBitmask(BitMap bitmask)
setPassbyPress
void setPassbyPress(bool enabled)
setShape
void setShape(Shape2D shape)
setShapeCentered
void setShapeCentered(bool _bool)
setShapeVisible
void setShapeVisible(bool _bool)
setTexture
void setTexture(Texture texture)
setTexturePressed
void setTexturePressed(Texture texture_pressed)
setVisibilityMode
void setVisibilityMode(long mode)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

action
String action [@property getter]
String action [@property setter]

The button's action. Actions can be handled with InputEventAction.

bitmask
BitMap bitmask [@property getter]
BitMap bitmask [@property setter]

The button's bitmask.

normal
Texture normal [@property getter]
Texture normal [@property setter]

The button's texture for the normal state.

passbyPress
bool passbyPress [@property getter]
bool passbyPress [@property setter]

If true passby presses are enabled.

pressed
Texture pressed [@property getter]
Texture pressed [@property setter]

The button's texture for the pressed state.

shape
Shape2D shape [@property getter]
Shape2D shape [@property setter]

The button's shape.

shapeCentered
bool shapeCentered [@property getter]
bool shapeCentered [@property setter]

If true the button's shape is centered.

shapeVisible
bool shapeVisible [@property getter]
bool shapeVisible [@property setter]

If true the button's shape is visible.

visibilityMode
TouchScreenButton.VisibilityMode visibilityMode [@property getter]
long visibilityMode [@property setter]

The button's visibility mode. See VISIBILITY_* constants.

Static functions

_new
TouchScreenButton _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta