class_godotinstance.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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/GodotInstance.xml.
  6. .. _class_GodotInstance:
  7. GodotInstance
  8. =============
  9. **Inherits:** :ref:`Object<class_Object>`
  10. Provides access to an embedded Godot instance.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. GodotInstance represents a running Godot instance that is controlled from an outside codebase, without a perpetual main loop. It is created by the C API ``libgodot_create_godot_instance``. Only one may be created per process.
  15. .. rst-class:: classref-reftable-group
  16. Methods
  17. -------
  18. .. table::
  19. :widths: auto
  20. +-------------------------+----------------------------------------------------------------+
  21. | |void| | :ref:`focus_in<class_GodotInstance_method_focus_in>`\ (\ ) |
  22. +-------------------------+----------------------------------------------------------------+
  23. | |void| | :ref:`focus_out<class_GodotInstance_method_focus_out>`\ (\ ) |
  24. +-------------------------+----------------------------------------------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`is_started<class_GodotInstance_method_is_started>`\ (\ ) |
  26. +-------------------------+----------------------------------------------------------------+
  27. | :ref:`bool<class_bool>` | :ref:`iteration<class_GodotInstance_method_iteration>`\ (\ ) |
  28. +-------------------------+----------------------------------------------------------------+
  29. | |void| | :ref:`pause<class_GodotInstance_method_pause>`\ (\ ) |
  30. +-------------------------+----------------------------------------------------------------+
  31. | |void| | :ref:`resume<class_GodotInstance_method_resume>`\ (\ ) |
  32. +-------------------------+----------------------------------------------------------------+
  33. | :ref:`bool<class_bool>` | :ref:`start<class_GodotInstance_method_start>`\ (\ ) |
  34. +-------------------------+----------------------------------------------------------------+
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Method Descriptions
  39. -------------------
  40. .. _class_GodotInstance_method_focus_in:
  41. .. rst-class:: classref-method
  42. |void| **focus_in**\ (\ ) :ref:`🔗<class_GodotInstance_method_focus_in>`
  43. Notifies the instance that it is now in focus.
  44. .. rst-class:: classref-item-separator
  45. ----
  46. .. _class_GodotInstance_method_focus_out:
  47. .. rst-class:: classref-method
  48. |void| **focus_out**\ (\ ) :ref:`🔗<class_GodotInstance_method_focus_out>`
  49. Notifies the instance that it is now not in focus.
  50. .. rst-class:: classref-item-separator
  51. ----
  52. .. _class_GodotInstance_method_is_started:
  53. .. rst-class:: classref-method
  54. :ref:`bool<class_bool>` **is_started**\ (\ ) :ref:`🔗<class_GodotInstance_method_is_started>`
  55. Returns ``true`` if this instance has been fully started.
  56. .. rst-class:: classref-item-separator
  57. ----
  58. .. _class_GodotInstance_method_iteration:
  59. .. rst-class:: classref-method
  60. :ref:`bool<class_bool>` **iteration**\ (\ ) :ref:`🔗<class_GodotInstance_method_iteration>`
  61. Runs a single iteration of the main loop. Returns ``true`` if the engine is attempting to quit.
  62. .. rst-class:: classref-item-separator
  63. ----
  64. .. _class_GodotInstance_method_pause:
  65. .. rst-class:: classref-method
  66. |void| **pause**\ (\ ) :ref:`🔗<class_GodotInstance_method_pause>`
  67. Notifies the instance that it is going to be paused.
  68. .. rst-class:: classref-item-separator
  69. ----
  70. .. _class_GodotInstance_method_resume:
  71. .. rst-class:: classref-method
  72. |void| **resume**\ (\ ) :ref:`🔗<class_GodotInstance_method_resume>`
  73. Notifies the instance that it is being resumed.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_GodotInstance_method_start:
  77. .. rst-class:: classref-method
  78. :ref:`bool<class_bool>` **start**\ (\ ) :ref:`🔗<class_GodotInstance_method_start>`
  79. Finishes this instance's startup sequence. Returns ``true`` on success.
  80. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  81. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  82. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  83. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  84. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  85. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  86. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  87. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  88. .. |void| replace:: :abbr:`void (No return value.)`