class_inputeventscreendrag.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/InputEventScreenDrag.xml.
  6. .. _class_InputEventScreenDrag:
  7. InputEventScreenDrag
  8. ====================
  9. **Inherits:** :ref:`InputEventFromWindow<class_InputEventFromWindow>` **<** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Input event type for screen drag events. Only available on mobile devices.
  11. Description
  12. -----------
  13. Contains screen drag information. See :ref:`Node._input<class_Node_method__input>`.
  14. Tutorials
  15. ---------
  16. - :doc:`InputEvent <../tutorials/inputs/inputevent>`
  17. Properties
  18. ----------
  19. +-------------------------------+---------------------------------------------------------------+-------------------+
  20. | :ref:`int<class_int>` | :ref:`index<class_InputEventScreenDrag_property_index>` | ``0`` |
  21. +-------------------------------+---------------------------------------------------------------+-------------------+
  22. | :ref:`Vector2<class_Vector2>` | :ref:`position<class_InputEventScreenDrag_property_position>` | ``Vector2(0, 0)`` |
  23. +-------------------------------+---------------------------------------------------------------+-------------------+
  24. | :ref:`Vector2<class_Vector2>` | :ref:`relative<class_InputEventScreenDrag_property_relative>` | ``Vector2(0, 0)`` |
  25. +-------------------------------+---------------------------------------------------------------+-------------------+
  26. | :ref:`Vector2<class_Vector2>` | :ref:`velocity<class_InputEventScreenDrag_property_velocity>` | ``Vector2(0, 0)`` |
  27. +-------------------------------+---------------------------------------------------------------+-------------------+
  28. Property Descriptions
  29. ---------------------
  30. .. _class_InputEventScreenDrag_property_index:
  31. - :ref:`int<class_int>` **index**
  32. +-----------+------------------+
  33. | *Default* | ``0`` |
  34. +-----------+------------------+
  35. | *Setter* | set_index(value) |
  36. +-----------+------------------+
  37. | *Getter* | get_index() |
  38. +-----------+------------------+
  39. The drag event index in the case of a multi-drag event.
  40. ----
  41. .. _class_InputEventScreenDrag_property_position:
  42. - :ref:`Vector2<class_Vector2>` **position**
  43. +-----------+---------------------+
  44. | *Default* | ``Vector2(0, 0)`` |
  45. +-----------+---------------------+
  46. | *Setter* | set_position(value) |
  47. +-----------+---------------------+
  48. | *Getter* | get_position() |
  49. +-----------+---------------------+
  50. The drag position.
  51. ----
  52. .. _class_InputEventScreenDrag_property_relative:
  53. - :ref:`Vector2<class_Vector2>` **relative**
  54. +-----------+---------------------+
  55. | *Default* | ``Vector2(0, 0)`` |
  56. +-----------+---------------------+
  57. | *Setter* | set_relative(value) |
  58. +-----------+---------------------+
  59. | *Getter* | get_relative() |
  60. +-----------+---------------------+
  61. The drag position relative to the previous position (position at the last frame).
  62. ----
  63. .. _class_InputEventScreenDrag_property_velocity:
  64. - :ref:`Vector2<class_Vector2>` **velocity**
  65. +-----------+---------------------+
  66. | *Default* | ``Vector2(0, 0)`` |
  67. +-----------+---------------------+
  68. | *Setter* | set_velocity(value) |
  69. +-----------+---------------------+
  70. | *Getter* | get_velocity() |
  71. +-----------+---------------------+
  72. The drag velocity.
  73. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  74. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  75. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  76. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  77. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  78. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`