2
0

class_nativescript.rst 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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/modules/gdnative/doc_classes/NativeScript.xml.
  6. .. _class_NativeScript:
  7. NativeScript
  8. ============
  9. **Inherits:** :ref:`Script<class_Script>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. .. container:: contribute
  11. There is currently no description for this class. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  12. .. rst-class:: classref-reftable-group
  13. Properties
  14. ----------
  15. .. table::
  16. :widths: auto
  17. +-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
  18. | :ref:`String<class_String>` | :ref:`class_name<class_NativeScript_property_class_name>` | ``""`` |
  19. +-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
  20. | :ref:`GDNativeLibrary<class_GDNativeLibrary>` | :ref:`library<class_NativeScript_property_library>` | |
  21. +-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
  22. | :ref:`String<class_String>` | :ref:`script_class_icon_path<class_NativeScript_property_script_class_icon_path>` | ``""`` |
  23. +-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
  24. | :ref:`String<class_String>` | :ref:`script_class_name<class_NativeScript_property_script_class_name>` | ``""`` |
  25. +-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
  26. .. rst-class:: classref-reftable-group
  27. Methods
  28. -------
  29. .. table::
  30. :widths: auto
  31. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`String<class_String>` | :ref:`get_class_documentation<class_NativeScript_method_get_class_documentation>` **(** **)** |const| |
  33. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`String<class_String>` | :ref:`get_method_documentation<class_NativeScript_method_get_method_documentation>` **(** :ref:`String<class_String>` method **)** |const| |
  35. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`String<class_String>` | :ref:`get_property_documentation<class_NativeScript_method_get_property_documentation>` **(** :ref:`String<class_String>` path **)** |const| |
  37. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`String<class_String>` | :ref:`get_signal_documentation<class_NativeScript_method_get_signal_documentation>` **(** :ref:`String<class_String>` signal_name **)** |const| |
  39. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`Variant<class_Variant>` | :ref:`new<class_NativeScript_method_new>` **(** ... **)** |vararg| |
  41. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  42. .. rst-class:: classref-section-separator
  43. ----
  44. .. rst-class:: classref-descriptions-group
  45. Property Descriptions
  46. ---------------------
  47. .. _class_NativeScript_property_class_name:
  48. .. rst-class:: classref-property
  49. :ref:`String<class_String>` **class_name** = ``""``
  50. .. rst-class:: classref-property-setget
  51. - void **set_class_name** **(** :ref:`String<class_String>` value **)**
  52. - :ref:`String<class_String>` **get_class_name** **(** **)**
  53. .. container:: contribute
  54. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  55. .. rst-class:: classref-item-separator
  56. ----
  57. .. _class_NativeScript_property_library:
  58. .. rst-class:: classref-property
  59. :ref:`GDNativeLibrary<class_GDNativeLibrary>` **library**
  60. .. rst-class:: classref-property-setget
  61. - void **set_library** **(** :ref:`GDNativeLibrary<class_GDNativeLibrary>` value **)**
  62. - :ref:`GDNativeLibrary<class_GDNativeLibrary>` **get_library** **(** **)**
  63. .. container:: contribute
  64. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  65. .. rst-class:: classref-item-separator
  66. ----
  67. .. _class_NativeScript_property_script_class_icon_path:
  68. .. rst-class:: classref-property
  69. :ref:`String<class_String>` **script_class_icon_path** = ``""``
  70. .. rst-class:: classref-property-setget
  71. - void **set_script_class_icon_path** **(** :ref:`String<class_String>` value **)**
  72. - :ref:`String<class_String>` **get_script_class_icon_path** **(** **)**
  73. .. container:: contribute
  74. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_NativeScript_property_script_class_name:
  78. .. rst-class:: classref-property
  79. :ref:`String<class_String>` **script_class_name** = ``""``
  80. .. rst-class:: classref-property-setget
  81. - void **set_script_class_name** **(** :ref:`String<class_String>` value **)**
  82. - :ref:`String<class_String>` **get_script_class_name** **(** **)**
  83. .. container:: contribute
  84. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  85. .. rst-class:: classref-section-separator
  86. ----
  87. .. rst-class:: classref-descriptions-group
  88. Method Descriptions
  89. -------------------
  90. .. _class_NativeScript_method_get_class_documentation:
  91. .. rst-class:: classref-method
  92. :ref:`String<class_String>` **get_class_documentation** **(** **)** |const|
  93. Returns the documentation string that was previously set with ``godot_nativescript_set_class_documentation``.
  94. .. rst-class:: classref-item-separator
  95. ----
  96. .. _class_NativeScript_method_get_method_documentation:
  97. .. rst-class:: classref-method
  98. :ref:`String<class_String>` **get_method_documentation** **(** :ref:`String<class_String>` method **)** |const|
  99. Returns the documentation string that was previously set with ``godot_nativescript_set_method_documentation``.
  100. .. rst-class:: classref-item-separator
  101. ----
  102. .. _class_NativeScript_method_get_property_documentation:
  103. .. rst-class:: classref-method
  104. :ref:`String<class_String>` **get_property_documentation** **(** :ref:`String<class_String>` path **)** |const|
  105. Returns the documentation string that was previously set with ``godot_nativescript_set_property_documentation``.
  106. .. rst-class:: classref-item-separator
  107. ----
  108. .. _class_NativeScript_method_get_signal_documentation:
  109. .. rst-class:: classref-method
  110. :ref:`String<class_String>` **get_signal_documentation** **(** :ref:`String<class_String>` signal_name **)** |const|
  111. Returns the documentation string that was previously set with ``godot_nativescript_set_signal_documentation``.
  112. .. rst-class:: classref-item-separator
  113. ----
  114. .. _class_NativeScript_method_new:
  115. .. rst-class:: classref-method
  116. :ref:`Variant<class_Variant>` **new** **(** ... **)** |vararg|
  117. Constructs a new object of the base type with a script of this type already attached.
  118. \ **Note:** Any arguments passed to this function will be ignored and not passed to the native constructor function. This will change with in a future API extension.
  119. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  120. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  121. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  122. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`