2
0

class_nativescript.rst 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 NativeScript.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_NativeScript:
  6. NativeScript
  7. ============
  8. **Inherits:** :ref:`Script<class_Script>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Properties
  13. ----------
  14. +-----------------------------------------------+-----------------------------------------------------------------------------------+
  15. | :ref:`String<class_String>` | :ref:`class_name<class_NativeScript_property_class_name>` |
  16. +-----------------------------------------------+-----------------------------------------------------------------------------------+
  17. | :ref:`GDNativeLibrary<class_GDNativeLibrary>` | :ref:`library<class_NativeScript_property_library>` |
  18. +-----------------------------------------------+-----------------------------------------------------------------------------------+
  19. | :ref:`String<class_String>` | :ref:`script_class_icon_path<class_NativeScript_property_script_class_icon_path>` |
  20. +-----------------------------------------------+-----------------------------------------------------------------------------------+
  21. | :ref:`String<class_String>` | :ref:`script_class_name<class_NativeScript_property_script_class_name>` |
  22. +-----------------------------------------------+-----------------------------------------------------------------------------------+
  23. Methods
  24. -------
  25. +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`String<class_String>` | :ref:`get_class_documentation<class_NativeScript_method_get_class_documentation>` **(** **)** const |
  27. +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`String<class_String>` | :ref:`get_method_documentation<class_NativeScript_method_get_method_documentation>` **(** :ref:`String<class_String>` method **)** const |
  29. +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`String<class_String>` | :ref:`get_property_documentation<class_NativeScript_method_get_property_documentation>` **(** :ref:`String<class_String>` path **)** const |
  31. +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  32. | :ref:`String<class_String>` | :ref:`get_signal_documentation<class_NativeScript_method_get_signal_documentation>` **(** :ref:`String<class_String>` signal_name **)** const |
  33. +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`Object<class_Object>` | :ref:`new<class_NativeScript_method_new>` **(** ... **)** vararg |
  35. +-----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  36. Property Descriptions
  37. ---------------------
  38. .. _class_NativeScript_property_class_name:
  39. - :ref:`String<class_String>` **class_name**
  40. +----------+-----------------------+
  41. | *Setter* | set_class_name(value) |
  42. +----------+-----------------------+
  43. | *Getter* | get_class_name() |
  44. +----------+-----------------------+
  45. ----
  46. .. _class_NativeScript_property_library:
  47. - :ref:`GDNativeLibrary<class_GDNativeLibrary>` **library**
  48. +----------+--------------------+
  49. | *Setter* | set_library(value) |
  50. +----------+--------------------+
  51. | *Getter* | get_library() |
  52. +----------+--------------------+
  53. ----
  54. .. _class_NativeScript_property_script_class_icon_path:
  55. - :ref:`String<class_String>` **script_class_icon_path**
  56. +----------+-----------------------------------+
  57. | *Setter* | set_script_class_icon_path(value) |
  58. +----------+-----------------------------------+
  59. | *Getter* | get_script_class_icon_path() |
  60. +----------+-----------------------------------+
  61. ----
  62. .. _class_NativeScript_property_script_class_name:
  63. - :ref:`String<class_String>` **script_class_name**
  64. +----------+------------------------------+
  65. | *Setter* | set_script_class_name(value) |
  66. +----------+------------------------------+
  67. | *Getter* | get_script_class_name() |
  68. +----------+------------------------------+
  69. Method Descriptions
  70. -------------------
  71. .. _class_NativeScript_method_get_class_documentation:
  72. - :ref:`String<class_String>` **get_class_documentation** **(** **)** const
  73. Returns the documentation string that was previously set with ``godot_nativescript_set_class_documentation``.
  74. ----
  75. .. _class_NativeScript_method_get_method_documentation:
  76. - :ref:`String<class_String>` **get_method_documentation** **(** :ref:`String<class_String>` method **)** const
  77. Returns the documentation string that was previously set with ``godot_nativescript_set_method_documentation``.
  78. ----
  79. .. _class_NativeScript_method_get_property_documentation:
  80. - :ref:`String<class_String>` **get_property_documentation** **(** :ref:`String<class_String>` path **)** const
  81. Returns the documentation string that was previously set with ``godot_nativescript_set_property_documentation``.
  82. ----
  83. .. _class_NativeScript_method_get_signal_documentation:
  84. - :ref:`String<class_String>` **get_signal_documentation** **(** :ref:`String<class_String>` signal_name **)** const
  85. Returns the documentation string that was previously set with ``godot_nativescript_set_signal_documentation``.
  86. ----
  87. .. _class_NativeScript_method_new:
  88. - :ref:`Object<class_Object>` **new** **(** ... **)** vararg
  89. Constructs a new object of the base type with a script of this type already attached.
  90. *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.