class_nativescript.rst 6.6 KB

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