class_touchscreenbutton.rst 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the TouchScreenButton.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_TouchScreenButton:
  5. TouchScreenButton
  6. =================
  7. **Inherits:** :ref:`Node2D<class_node2d>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Member Functions
  12. ----------------
  13. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`String<class_string>` | :ref:`get_action<class_TouchScreenButton_get_action>` **(** **)** const |
  15. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`BitMap<class_bitmap>` | :ref:`get_bitmask<class_TouchScreenButton_get_bitmask>` **(** **)** const |
  17. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`Shape2D<class_shape2d>` | :ref:`get_shape<class_TouchScreenButton_get_shape>` **(** **)** const |
  19. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`Texture<class_texture>` | :ref:`get_texture<class_TouchScreenButton_get_texture>` **(** **)** const |
  21. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`Texture<class_texture>` | :ref:`get_texture_pressed<class_TouchScreenButton_get_texture_pressed>` **(** **)** const |
  23. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`int<class_int>` | :ref:`get_visibility_mode<class_TouchScreenButton_get_visibility_mode>` **(** **)** const |
  25. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`bool<class_bool>` | :ref:`is_passby_press_enabled<class_TouchScreenButton_is_passby_press_enabled>` **(** **)** const |
  27. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`bool<class_bool>` | :ref:`is_pressed<class_TouchScreenButton_is_pressed>` **(** **)** const |
  29. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`bool<class_bool>` | :ref:`is_shape_centered<class_TouchScreenButton_is_shape_centered>` **(** **)** const |
  31. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`bool<class_bool>` | :ref:`is_shape_visible<class_TouchScreenButton_is_shape_visible>` **(** **)** const |
  33. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  34. | void | :ref:`set_action<class_TouchScreenButton_set_action>` **(** :ref:`String<class_string>` action **)** |
  35. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  36. | void | :ref:`set_bitmask<class_TouchScreenButton_set_bitmask>` **(** :ref:`BitMap<class_bitmap>` bitmask **)** |
  37. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  38. | void | :ref:`set_passby_press<class_TouchScreenButton_set_passby_press>` **(** :ref:`bool<class_bool>` enabled **)** |
  39. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  40. | void | :ref:`set_shape<class_TouchScreenButton_set_shape>` **(** :ref:`Shape2D<class_shape2d>` shape **)** |
  41. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  42. | void | :ref:`set_shape_centered<class_TouchScreenButton_set_shape_centered>` **(** :ref:`bool<class_bool>` bool **)** |
  43. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  44. | void | :ref:`set_shape_visible<class_TouchScreenButton_set_shape_visible>` **(** :ref:`bool<class_bool>` bool **)** |
  45. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  46. | void | :ref:`set_texture<class_TouchScreenButton_set_texture>` **(** :ref:`Texture<class_texture>` texture **)** |
  47. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  48. | void | :ref:`set_texture_pressed<class_TouchScreenButton_set_texture_pressed>` **(** :ref:`Texture<class_texture>` texture_pressed **)** |
  49. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  50. | void | :ref:`set_visibility_mode<class_TouchScreenButton_set_visibility_mode>` **(** :ref:`int<class_int>` mode **)** |
  51. +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
  52. Signals
  53. -------
  54. - **pressed** **(** **)**
  55. - **released** **(** **)**
  56. Member Variables
  57. ----------------
  58. - :ref:`String<class_string>` **action**
  59. - :ref:`BitMap<class_bitmap>` **bitmask**
  60. - :ref:`Texture<class_texture>` **normal**
  61. - :ref:`bool<class_bool>` **passby_press**
  62. - :ref:`Texture<class_texture>` **pressed**
  63. - :ref:`Shape2D<class_shape2d>` **shape**
  64. - :ref:`bool<class_bool>` **shape_centered**
  65. - :ref:`bool<class_bool>` **shape_visible**
  66. - :ref:`int<class_int>` **visibility_mode**
  67. Numeric Constants
  68. -----------------
  69. - **VISIBILITY_ALWAYS** = **0**
  70. - **VISIBILITY_TOUCHSCREEN_ONLY** = **1**
  71. Member Function Description
  72. ---------------------------
  73. .. _class_TouchScreenButton_get_action:
  74. - :ref:`String<class_string>` **get_action** **(** **)** const
  75. .. _class_TouchScreenButton_get_bitmask:
  76. - :ref:`BitMap<class_bitmap>` **get_bitmask** **(** **)** const
  77. .. _class_TouchScreenButton_get_shape:
  78. - :ref:`Shape2D<class_shape2d>` **get_shape** **(** **)** const
  79. .. _class_TouchScreenButton_get_texture:
  80. - :ref:`Texture<class_texture>` **get_texture** **(** **)** const
  81. .. _class_TouchScreenButton_get_texture_pressed:
  82. - :ref:`Texture<class_texture>` **get_texture_pressed** **(** **)** const
  83. .. _class_TouchScreenButton_get_visibility_mode:
  84. - :ref:`int<class_int>` **get_visibility_mode** **(** **)** const
  85. .. _class_TouchScreenButton_is_passby_press_enabled:
  86. - :ref:`bool<class_bool>` **is_passby_press_enabled** **(** **)** const
  87. .. _class_TouchScreenButton_is_pressed:
  88. - :ref:`bool<class_bool>` **is_pressed** **(** **)** const
  89. .. _class_TouchScreenButton_is_shape_centered:
  90. - :ref:`bool<class_bool>` **is_shape_centered** **(** **)** const
  91. .. _class_TouchScreenButton_is_shape_visible:
  92. - :ref:`bool<class_bool>` **is_shape_visible** **(** **)** const
  93. .. _class_TouchScreenButton_set_action:
  94. - void **set_action** **(** :ref:`String<class_string>` action **)**
  95. .. _class_TouchScreenButton_set_bitmask:
  96. - void **set_bitmask** **(** :ref:`BitMap<class_bitmap>` bitmask **)**
  97. .. _class_TouchScreenButton_set_passby_press:
  98. - void **set_passby_press** **(** :ref:`bool<class_bool>` enabled **)**
  99. .. _class_TouchScreenButton_set_shape:
  100. - void **set_shape** **(** :ref:`Shape2D<class_shape2d>` shape **)**
  101. .. _class_TouchScreenButton_set_shape_centered:
  102. - void **set_shape_centered** **(** :ref:`bool<class_bool>` bool **)**
  103. .. _class_TouchScreenButton_set_shape_visible:
  104. - void **set_shape_visible** **(** :ref:`bool<class_bool>` bool **)**
  105. .. _class_TouchScreenButton_set_texture:
  106. - void **set_texture** **(** :ref:`Texture<class_texture>` texture **)**
  107. .. _class_TouchScreenButton_set_texture_pressed:
  108. - void **set_texture_pressed** **(** :ref:`Texture<class_texture>` texture_pressed **)**
  109. .. _class_TouchScreenButton_set_visibility_mode:
  110. - void **set_visibility_mode** **(** :ref:`int<class_int>` mode **)**