virtualx-engine/doc/classes/TouchScreenButton.xml

72 lines
2.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
2018-01-13 11:43:06 +01:00
<class name="TouchScreenButton" inherits="Node2D" category="Core" version="3.0-rc1">
<brief_description>
2017-10-10 23:31:04 +02:00
Button for touch screen devices.
</brief_description>
<description>
2017-10-10 23:31:04 +02:00
Button for touch screen devices. You can set it to be visible on all screens, or only on touch devices.
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
<method name="is_pressed" qualifiers="const">
<return type="bool">
</return>
<description>
2017-10-10 23:31:04 +02:00
Returns [code]true[/code] if this button is currently pressed.
</description>
</method>
</methods>
<members>
<member name="action" type="String" setter="set_action" getter="get_action">
2017-10-10 23:31:04 +02:00
The button's action. Actions can be handled with [InputEventAction].
</member>
<member name="bitmask" type="BitMap" setter="set_bitmask" getter="get_bitmask">
2017-10-10 23:31:04 +02:00
The button's bitmask.
</member>
<member name="normal" type="Texture" setter="set_texture" getter="get_texture">
2017-10-10 23:31:04 +02:00
The button's texture for the normal state.
</member>
<member name="passby_press" type="bool" setter="set_passby_press" getter="is_passby_press_enabled">
2017-10-10 23:31:04 +02:00
If [code]true[/code] passby presses are enabled.
</member>
<member name="pressed" type="Texture" setter="set_texture_pressed" getter="get_texture_pressed">
2017-10-10 23:31:04 +02:00
The button's texture for the pressed state.
</member>
<member name="shape" type="Shape2D" setter="set_shape" getter="get_shape">
2017-10-10 23:31:04 +02:00
The button's shape.
</member>
<member name="shape_centered" type="bool" setter="set_shape_centered" getter="is_shape_centered">
2017-10-10 23:31:04 +02:00
If [code]true[/code] the button's shape is centered.
</member>
<member name="shape_visible" type="bool" setter="set_shape_visible" getter="is_shape_visible">
2017-10-10 23:31:04 +02:00
If [code]true[/code] the button's shape is visible.
</member>
<member name="visibility_mode" type="int" setter="set_visibility_mode" getter="get_visibility_mode" enum="TouchScreenButton.VisibilityMode">
2017-10-10 23:31:04 +02:00
The button's visibility mode. See [code]VISIBILITY_*[/code] constants.
</member>
</members>
<signals>
<signal name="pressed">
<description>
2017-10-10 23:31:04 +02:00
Emitted when the button is pressed (down).
</description>
</signal>
<signal name="released">
<description>
2017-10-10 23:31:04 +02:00
Emitted when the button is released (up).
</description>
</signal>
</signals>
<constants>
2017-11-24 23:16:30 +01:00
<constant name="VISIBILITY_ALWAYS" value="0" enum="VisibilityMode">
2017-10-10 23:31:04 +02:00
Always visible.
</constant>
2017-11-24 23:16:30 +01:00
<constant name="VISIBILITY_TOUCHSCREEN_ONLY" value="1" enum="VisibilityMode">
2017-10-10 23:31:04 +02:00
Visible on touch screens only.
</constant>
</constants>
</class>