class_inputeventgesture.rst 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/InputEventGesture.xml.
  6. .. _class_InputEventGesture:
  7. InputEventGesture
  8. =================
  9. **Inherits:** :ref:`InputEventWithModifiers<class_InputEventWithModifiers>` **<** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`InputEventMagnifyGesture<class_InputEventMagnifyGesture>`, :ref:`InputEventPanGesture<class_InputEventPanGesture>`
  11. Base class for touch control gestures.
  12. .. rst-class:: classref-reftable-group
  13. Properties
  14. ----------
  15. .. table::
  16. :widths: auto
  17. +-------------------------------+------------------------------------------------------------+---------------------+
  18. | :ref:`Vector2<class_Vector2>` | :ref:`position<class_InputEventGesture_property_position>` | ``Vector2( 0, 0 )`` |
  19. +-------------------------------+------------------------------------------------------------+---------------------+
  20. .. rst-class:: classref-section-separator
  21. ----
  22. .. rst-class:: classref-descriptions-group
  23. Property Descriptions
  24. ---------------------
  25. .. _class_InputEventGesture_property_position:
  26. .. rst-class:: classref-property
  27. :ref:`Vector2<class_Vector2>` **position** = ``Vector2( 0, 0 )``
  28. .. rst-class:: classref-property-setget
  29. - void **set_position** **(** :ref:`Vector2<class_Vector2>` value **)**
  30. - :ref:`Vector2<class_Vector2>` **get_position** **(** **)**
  31. The local gesture position relative to the :ref:`Viewport<class_Viewport>`. If used in :ref:`Control._gui_input<class_Control_method__gui_input>`, the position is relative to the current :ref:`Control<class_Control>` that received this gesture.
  32. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  33. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  34. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  35. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`