class_openxrfutureresult.rst 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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/modules/openxr/doc_classes/OpenXRFutureResult.xml.
  6. .. _class_OpenXRFutureResult:
  7. OpenXRFutureResult
  8. ==================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Result object tracking the asynchronous result of an OpenXR Future object.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Result object tracking the asynchronous result of an OpenXR Future object, you can use this object to track the result status.
  15. .. rst-class:: classref-reftable-group
  16. Methods
  17. -------
  18. .. table::
  19. :widths: auto
  20. +-----------------------------------------------------------+-----------------------------------------------------------------------------+
  21. | |void| | :ref:`cancel_future<class_OpenXRFutureResult_method_cancel_future>`\ (\ ) |
  22. +-----------------------------------------------------------+-----------------------------------------------------------------------------+
  23. | :ref:`int<class_int>` | :ref:`get_future<class_OpenXRFutureResult_method_get_future>`\ (\ ) |const| |
  24. +-----------------------------------------------------------+-----------------------------------------------------------------------------+
  25. | :ref:`ResultStatus<enum_OpenXRFutureResult_ResultStatus>` | :ref:`get_status<class_OpenXRFutureResult_method_get_status>`\ (\ ) |const| |
  26. +-----------------------------------------------------------+-----------------------------------------------------------------------------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Signals
  31. -------
  32. .. _class_OpenXRFutureResult_signal_completed:
  33. .. rst-class:: classref-signal
  34. **completed**\ (\ result\: :ref:`OpenXRFutureResult<class_OpenXRFutureResult>`\ ) :ref:`🔗<class_OpenXRFutureResult_signal_completed>`
  35. Emitted when the asynchronous function is finished or has been cancelled.
  36. .. rst-class:: classref-section-separator
  37. ----
  38. .. rst-class:: classref-descriptions-group
  39. Enumerations
  40. ------------
  41. .. _enum_OpenXRFutureResult_ResultStatus:
  42. .. rst-class:: classref-enumeration
  43. enum **ResultStatus**: :ref:`🔗<enum_OpenXRFutureResult_ResultStatus>`
  44. .. _class_OpenXRFutureResult_constant_RESULT_RUNNING:
  45. .. rst-class:: classref-enumeration-constant
  46. :ref:`ResultStatus<enum_OpenXRFutureResult_ResultStatus>` **RESULT_RUNNING** = ``0``
  47. The asynchronous function is running.
  48. .. _class_OpenXRFutureResult_constant_RESULT_FINISHED:
  49. .. rst-class:: classref-enumeration-constant
  50. :ref:`ResultStatus<enum_OpenXRFutureResult_ResultStatus>` **RESULT_FINISHED** = ``1``
  51. The asynchronous function has finished.
  52. .. _class_OpenXRFutureResult_constant_RESULT_CANCELLED:
  53. .. rst-class:: classref-enumeration-constant
  54. :ref:`ResultStatus<enum_OpenXRFutureResult_ResultStatus>` **RESULT_CANCELLED** = ``2``
  55. The asynchronous function has been cancelled.
  56. .. rst-class:: classref-section-separator
  57. ----
  58. .. rst-class:: classref-descriptions-group
  59. Method Descriptions
  60. -------------------
  61. .. _class_OpenXRFutureResult_method_cancel_future:
  62. .. rst-class:: classref-method
  63. |void| **cancel_future**\ (\ ) :ref:`🔗<class_OpenXRFutureResult_method_cancel_future>`
  64. Cancel this future, this will interrupt and stop the asynchronous function.
  65. .. rst-class:: classref-item-separator
  66. ----
  67. .. _class_OpenXRFutureResult_method_get_future:
  68. .. rst-class:: classref-method
  69. :ref:`int<class_int>` **get_future**\ (\ ) |const| :ref:`🔗<class_OpenXRFutureResult_method_get_future>`
  70. Return the ``XrFutureEXT`` value this result relates to.
  71. .. rst-class:: classref-item-separator
  72. ----
  73. .. _class_OpenXRFutureResult_method_get_status:
  74. .. rst-class:: classref-method
  75. :ref:`ResultStatus<enum_OpenXRFutureResult_ResultStatus>` **get_status**\ (\ ) |const| :ref:`🔗<class_OpenXRFutureResult_method_get_status>`
  76. Returns the status of this result.
  77. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  78. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  79. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  80. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  81. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  82. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  83. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  84. .. |void| replace:: :abbr:`void (No return value.)`