ClassDB.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ClassDB" inherits="Object" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Class information repository.
  5. </brief_description>
  6. <description>
  7. Provides access to metadata stored for every available class.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="can_instance" qualifiers="const">
  15. <return type="bool">
  16. </return>
  17. <argument index="0" name="class" type="String">
  18. </argument>
  19. <description>
  20. Returns true if you can instance objects from the specified 'class', false in other case.
  21. </description>
  22. </method>
  23. <method name="class_exists" qualifiers="const">
  24. <return type="bool">
  25. </return>
  26. <argument index="0" name="class" type="String">
  27. </argument>
  28. <description>
  29. Returns whether the specified 'class' is available or not.
  30. </description>
  31. </method>
  32. <method name="class_get_category" qualifiers="const">
  33. <return type="String">
  34. </return>
  35. <argument index="0" name="class" type="String">
  36. </argument>
  37. <description>
  38. </description>
  39. </method>
  40. <method name="class_get_integer_constant" qualifiers="const">
  41. <return type="int">
  42. </return>
  43. <argument index="0" name="class" type="String">
  44. </argument>
  45. <argument index="1" name="name" type="String">
  46. </argument>
  47. <description>
  48. Returns the value of the integer constant 'name' of 'class' or its ancestry. Always returns 0 when the constant could not be found.
  49. </description>
  50. </method>
  51. <method name="class_get_integer_constant_list" qualifiers="const">
  52. <return type="PoolStringArray">
  53. </return>
  54. <argument index="0" name="class" type="String">
  55. </argument>
  56. <argument index="1" name="no_inheritance" type="bool" default="false">
  57. </argument>
  58. <description>
  59. Returns an array with the names all the integer constants of 'class' or its ancestry.
  60. </description>
  61. </method>
  62. <method name="class_get_method_list" qualifiers="const">
  63. <return type="Array">
  64. </return>
  65. <argument index="0" name="class" type="String">
  66. </argument>
  67. <argument index="1" name="no_inheritance" type="bool" default="false">
  68. </argument>
  69. <description>
  70. Returns an array with all the methods of 'class' or its ancestry if 'no_inheritance' is false. Every element of the array is a [Dictionary] with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage).
  71. </description>
  72. </method>
  73. <method name="class_get_property" qualifiers="const">
  74. <return type="Variant">
  75. </return>
  76. <argument index="0" name="object" type="Object">
  77. </argument>
  78. <argument index="1" name="property" type="String">
  79. </argument>
  80. <description>
  81. Returns the value of 'property' of 'class' or its ancestry.
  82. </description>
  83. </method>
  84. <method name="class_get_property_list" qualifiers="const">
  85. <return type="Array">
  86. </return>
  87. <argument index="0" name="class" type="String">
  88. </argument>
  89. <argument index="1" name="no_inheritance" type="bool" default="false">
  90. </argument>
  91. <description>
  92. Returns an array with all the properties of 'class' or its ancestry if 'no_inheritance' is false.
  93. </description>
  94. </method>
  95. <method name="class_get_signal" qualifiers="const">
  96. <return type="Dictionary">
  97. </return>
  98. <argument index="0" name="class" type="String">
  99. </argument>
  100. <argument index="1" name="signal" type="String">
  101. </argument>
  102. <description>
  103. Returns the 'signal' data of 'class' or its ancestry. The returned value is a [Dictionary] with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage).
  104. </description>
  105. </method>
  106. <method name="class_get_signal_list" qualifiers="const">
  107. <return type="Array">
  108. </return>
  109. <argument index="0" name="class" type="String">
  110. </argument>
  111. <argument index="1" name="no_inheritance" type="bool" default="false">
  112. </argument>
  113. <description>
  114. Returns an array with all the signals of 'class' or its ancestry if 'no_inheritance' is false. Every element of the array is a [Dictionary] as described in [class_get_signal].
  115. </description>
  116. </method>
  117. <method name="class_has_integer_constant" qualifiers="const">
  118. <return type="bool">
  119. </return>
  120. <argument index="0" name="class" type="String">
  121. </argument>
  122. <argument index="1" name="name" type="String">
  123. </argument>
  124. <description>
  125. Return whether 'class' or its ancestry has an integer constant called 'name' or not.
  126. </description>
  127. </method>
  128. <method name="class_has_method" qualifiers="const">
  129. <return type="bool">
  130. </return>
  131. <argument index="0" name="class" type="String">
  132. </argument>
  133. <argument index="1" name="method" type="String">
  134. </argument>
  135. <argument index="2" name="no_inheritance" type="bool" default="false">
  136. </argument>
  137. <description>
  138. Return whether 'class' (or its ancestry if 'no_inheritance' is false) has a method called 'method' or not.
  139. </description>
  140. </method>
  141. <method name="class_has_signal" qualifiers="const">
  142. <return type="bool">
  143. </return>
  144. <argument index="0" name="class" type="String">
  145. </argument>
  146. <argument index="1" name="signal" type="String">
  147. </argument>
  148. <description>
  149. Return whether 'class' or its ancestry has a signal called 'signal' or not.
  150. </description>
  151. </method>
  152. <method name="class_set_property" qualifiers="const">
  153. <return type="int" enum="Error">
  154. </return>
  155. <argument index="0" name="object" type="Object">
  156. </argument>
  157. <argument index="1" name="property" type="String">
  158. </argument>
  159. <argument index="2" name="value" type="Variant">
  160. </argument>
  161. <description>
  162. Sets 'property' value of 'class' to 'value'.
  163. </description>
  164. </method>
  165. <method name="get_class_list" qualifiers="const">
  166. <return type="PoolStringArray">
  167. </return>
  168. <description>
  169. Returns the names of all the classes available.
  170. </description>
  171. </method>
  172. <method name="get_inheriters_from_class" qualifiers="const">
  173. <return type="PoolStringArray">
  174. </return>
  175. <argument index="0" name="class" type="String">
  176. </argument>
  177. <description>
  178. Returns the names of all the classes that directly or indirectly inherit from 'class'.
  179. </description>
  180. </method>
  181. <method name="get_parent_class" qualifiers="const">
  182. <return type="String">
  183. </return>
  184. <argument index="0" name="class" type="String">
  185. </argument>
  186. <description>
  187. Returns the parent class of 'class'.
  188. </description>
  189. </method>
  190. <method name="instance" qualifiers="const">
  191. <return type="Variant">
  192. </return>
  193. <argument index="0" name="class" type="String">
  194. </argument>
  195. <description>
  196. Creates an instance of 'class'.
  197. </description>
  198. </method>
  199. <method name="is_class_enabled" qualifiers="const">
  200. <return type="bool">
  201. </return>
  202. <argument index="0" name="class" type="String">
  203. </argument>
  204. <description>
  205. Returns whether this class is enabled or not.
  206. </description>
  207. </method>
  208. <method name="is_parent_class" qualifiers="const">
  209. <return type="bool">
  210. </return>
  211. <argument index="0" name="class" type="String">
  212. </argument>
  213. <argument index="1" name="inherits" type="String">
  214. </argument>
  215. <description>
  216. Returns whether 'inherits' is an ancestor of 'class' or not.
  217. </description>
  218. </method>
  219. </methods>
  220. <constants>
  221. </constants>
  222. </class>