2
0

class_openxrfutureresult.rst 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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:`Variant<class_Variant>` | :ref:`get_result_value<class_OpenXRFutureResult_method_get_result_value>`\ (\ ) |const| |
  26. +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`ResultStatus<enum_OpenXRFutureResult_ResultStatus>` | :ref:`get_status<class_OpenXRFutureResult_method_get_status>`\ (\ ) |const| |
  28. +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  29. | |void| | :ref:`set_result_value<class_OpenXRFutureResult_method_set_result_value>`\ (\ result_value\: :ref:`Variant<class_Variant>`\ ) |
  30. +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
  31. .. rst-class:: classref-section-separator
  32. ----
  33. .. rst-class:: classref-descriptions-group
  34. Signals
  35. -------
  36. .. _class_OpenXRFutureResult_signal_completed:
  37. .. rst-class:: classref-signal
  38. **completed**\ (\ result\: :ref:`OpenXRFutureResult<class_OpenXRFutureResult>`\ ) :ref:`🔗<class_OpenXRFutureResult_signal_completed>`
  39. Emitted when the asynchronous function is finished or has been cancelled.
  40. .. rst-class:: classref-section-separator
  41. ----
  42. .. rst-class:: classref-descriptions-group
  43. Enumerations
  44. ------------
  45. .. _enum_OpenXRFutureResult_ResultStatus:
  46. .. rst-class:: classref-enumeration
  47. enum **ResultStatus**: :ref:`🔗<enum_OpenXRFutureResult_ResultStatus>`
  48. .. _class_OpenXRFutureResult_constant_RESULT_RUNNING:
  49. .. rst-class:: classref-enumeration-constant
  50. :ref:`ResultStatus<enum_OpenXRFutureResult_ResultStatus>` **RESULT_RUNNING** = ``0``
  51. The asynchronous function is running.
  52. .. _class_OpenXRFutureResult_constant_RESULT_FINISHED:
  53. .. rst-class:: classref-enumeration-constant
  54. :ref:`ResultStatus<enum_OpenXRFutureResult_ResultStatus>` **RESULT_FINISHED** = ``1``
  55. The asynchronous function has finished.
  56. .. _class_OpenXRFutureResult_constant_RESULT_CANCELLED:
  57. .. rst-class:: classref-enumeration-constant
  58. :ref:`ResultStatus<enum_OpenXRFutureResult_ResultStatus>` **RESULT_CANCELLED** = ``2``
  59. The asynchronous function has been cancelled.
  60. .. rst-class:: classref-section-separator
  61. ----
  62. .. rst-class:: classref-descriptions-group
  63. Method Descriptions
  64. -------------------
  65. .. _class_OpenXRFutureResult_method_cancel_future:
  66. .. rst-class:: classref-method
  67. |void| **cancel_future**\ (\ ) :ref:`🔗<class_OpenXRFutureResult_method_cancel_future>`
  68. Cancel this future, this will interrupt and stop the asynchronous function.
  69. .. rst-class:: classref-item-separator
  70. ----
  71. .. _class_OpenXRFutureResult_method_get_future:
  72. .. rst-class:: classref-method
  73. :ref:`int<class_int>` **get_future**\ (\ ) |const| :ref:`🔗<class_OpenXRFutureResult_method_get_future>`
  74. Return the ``XrFutureEXT`` value this result relates to.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_OpenXRFutureResult_method_get_result_value:
  78. .. rst-class:: classref-method
  79. :ref:`Variant<class_Variant>` **get_result_value**\ (\ ) |const| :ref:`🔗<class_OpenXRFutureResult_method_get_result_value>`
  80. Returns the result value of our asynchronous function (if set by the extension). The type of this result value depends on the function being called. Consult the documentation of the relevant function.
  81. .. rst-class:: classref-item-separator
  82. ----
  83. .. _class_OpenXRFutureResult_method_get_status:
  84. .. rst-class:: classref-method
  85. :ref:`ResultStatus<enum_OpenXRFutureResult_ResultStatus>` **get_status**\ (\ ) |const| :ref:`🔗<class_OpenXRFutureResult_method_get_status>`
  86. Returns the status of this result.
  87. .. rst-class:: classref-item-separator
  88. ----
  89. .. _class_OpenXRFutureResult_method_set_result_value:
  90. .. rst-class:: classref-method
  91. |void| **set_result_value**\ (\ result_value\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_OpenXRFutureResult_method_set_result_value>`
  92. Stores the result value we expose to the user.
  93. \ **Note:** This method should only be called by an OpenXR extension that implements an asynchronous function.
  94. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  95. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  96. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  97. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  98. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  99. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  100. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  101. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  102. .. |void| replace:: :abbr:`void (No return value.)`