class_nativescript.rst 6.3 KB

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