class_inputeventgesture.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the InputEventGesture.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_InputEventGesture:
  6. InputEventGesture
  7. =================
  8. **Inherits:** :ref:`InputEventWithModifiers<class_InputEventWithModifiers>` **<** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`InputEventMagnifyGesture<class_InputEventMagnifyGesture>`, :ref:`InputEventPanGesture<class_InputEventPanGesture>`
  10. Base class for touch control gestures.
  11. Properties
  12. ----------
  13. +-------------------------------+------------------------------------------------------------+---------------------+
  14. | :ref:`Vector2<class_Vector2>` | :ref:`position<class_InputEventGesture_property_position>` | ``Vector2( 0, 0 )`` |
  15. +-------------------------------+------------------------------------------------------------+---------------------+
  16. Property Descriptions
  17. ---------------------
  18. .. _class_InputEventGesture_property_position:
  19. - :ref:`Vector2<class_Vector2>` **position**
  20. +-----------+---------------------+
  21. | *Default* | ``Vector2( 0, 0 )`` |
  22. +-----------+---------------------+
  23. | *Setter* | set_position(value) |
  24. +-----------+---------------------+
  25. | *Getter* | get_position() |
  26. +-----------+---------------------+
  27. 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.
  28. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  29. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  30. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`