class_inputeventscreendrag.rst 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the InputEventScreenDrag.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_InputEventScreenDrag:
  6. InputEventScreenDrag
  7. ====================
  8. **Inherits:** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Input event type for screen drag events. Only available on mobile devices.
  10. Description
  11. -----------
  12. Contains screen drag information. See :ref:`Node._input<class_Node_method__input>`.
  13. Tutorials
  14. ---------
  15. - :doc:`../tutorials/inputs/inputevent`
  16. Properties
  17. ----------
  18. +-------------------------------+---------------------------------------------------------------+---------------------+
  19. | :ref:`int<class_int>` | :ref:`index<class_InputEventScreenDrag_property_index>` | ``0`` |
  20. +-------------------------------+---------------------------------------------------------------+---------------------+
  21. | :ref:`Vector2<class_Vector2>` | :ref:`position<class_InputEventScreenDrag_property_position>` | ``Vector2( 0, 0 )`` |
  22. +-------------------------------+---------------------------------------------------------------+---------------------+
  23. | :ref:`Vector2<class_Vector2>` | :ref:`relative<class_InputEventScreenDrag_property_relative>` | ``Vector2( 0, 0 )`` |
  24. +-------------------------------+---------------------------------------------------------------+---------------------+
  25. | :ref:`Vector2<class_Vector2>` | :ref:`speed<class_InputEventScreenDrag_property_speed>` | ``Vector2( 0, 0 )`` |
  26. +-------------------------------+---------------------------------------------------------------+---------------------+
  27. Property Descriptions
  28. ---------------------
  29. .. _class_InputEventScreenDrag_property_index:
  30. - :ref:`int<class_int>` **index**
  31. +-----------+------------------+
  32. | *Default* | ``0`` |
  33. +-----------+------------------+
  34. | *Setter* | set_index(value) |
  35. +-----------+------------------+
  36. | *Getter* | get_index() |
  37. +-----------+------------------+
  38. The drag event index in the case of a multi-drag event.
  39. ----
  40. .. _class_InputEventScreenDrag_property_position:
  41. - :ref:`Vector2<class_Vector2>` **position**
  42. +-----------+---------------------+
  43. | *Default* | ``Vector2( 0, 0 )`` |
  44. +-----------+---------------------+
  45. | *Setter* | set_position(value) |
  46. +-----------+---------------------+
  47. | *Getter* | get_position() |
  48. +-----------+---------------------+
  49. The drag position.
  50. ----
  51. .. _class_InputEventScreenDrag_property_relative:
  52. - :ref:`Vector2<class_Vector2>` **relative**
  53. +-----------+---------------------+
  54. | *Default* | ``Vector2( 0, 0 )`` |
  55. +-----------+---------------------+
  56. | *Setter* | set_relative(value) |
  57. +-----------+---------------------+
  58. | *Getter* | get_relative() |
  59. +-----------+---------------------+
  60. The drag position relative to the previous position (position at the last frame).
  61. ----
  62. .. _class_InputEventScreenDrag_property_speed:
  63. - :ref:`Vector2<class_Vector2>` **speed**
  64. +-----------+---------------------+
  65. | *Default* | ``Vector2( 0, 0 )`` |
  66. +-----------+---------------------+
  67. | *Setter* | set_speed(value) |
  68. +-----------+---------------------+
  69. | *Getter* | get_speed() |
  70. +-----------+---------------------+
  71. The drag speed.
  72. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  73. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  74. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`