class_nativescript.rst 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. | *Default* | "" |
  42. +-----------+-----------------------+
  43. | *Setter* | set_class_name(value) |
  44. +-----------+-----------------------+
  45. | *Getter* | get_class_name() |
  46. +-----------+-----------------------+
  47. .. _class_NativeScript_property_library:
  48. - :ref:`GDNativeLibrary<class_GDNativeLibrary>` **library**
  49. +----------+--------------------+
  50. | *Setter* | set_library(value) |
  51. +----------+--------------------+
  52. | *Getter* | get_library() |
  53. +----------+--------------------+
  54. .. _class_NativeScript_property_script_class_icon_path:
  55. - :ref:`String<class_String>` **script_class_icon_path**
  56. +-----------+-----------------------------------+
  57. | *Default* | "" |
  58. +-----------+-----------------------------------+
  59. | *Setter* | set_script_class_icon_path(value) |
  60. +-----------+-----------------------------------+
  61. | *Getter* | get_script_class_icon_path() |
  62. +-----------+-----------------------------------+
  63. .. _class_NativeScript_property_script_class_name:
  64. - :ref:`String<class_String>` **script_class_name**
  65. +-----------+------------------------------+
  66. | *Default* | "" |
  67. +-----------+------------------------------+
  68. | *Setter* | set_script_class_name(value) |
  69. +-----------+------------------------------+
  70. | *Getter* | get_script_class_name() |
  71. +-----------+------------------------------+
  72. Method Descriptions
  73. -------------------
  74. .. _class_NativeScript_method_get_class_documentation:
  75. - :ref:`String<class_String>` **get_class_documentation** **(** **)** const
  76. Returns the documentation string that was previously set with ``godot_nativescript_set_class_documentation``.
  77. .. _class_NativeScript_method_get_method_documentation:
  78. - :ref:`String<class_String>` **get_method_documentation** **(** :ref:`String<class_String>` method **)** const
  79. Returns the documentation string that was previously set with ``godot_nativescript_set_method_documentation``.
  80. .. _class_NativeScript_method_get_property_documentation:
  81. - :ref:`String<class_String>` **get_property_documentation** **(** :ref:`String<class_String>` path **)** const
  82. Returns the documentation string that was previously set with ``godot_nativescript_set_property_documentation``.
  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. .. _class_NativeScript_method_new:
  87. - :ref:`Object<class_Object>` **new** **(** ... **)** vararg
  88. Constructs a new object of the base type with a script of this type already attached.
  89. *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.