2
0

class_node2d.rst 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/Node2D.xml.
  6. .. _class_Node2D:
  7. Node2D
  8. ======
  9. **Inherits:** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`AnimatedSprite2D<class_AnimatedSprite2D>`, :ref:`AudioListener2D<class_AudioListener2D>`, :ref:`AudioStreamPlayer2D<class_AudioStreamPlayer2D>`, :ref:`BackBufferCopy<class_BackBufferCopy>`, :ref:`Bone2D<class_Bone2D>`, :ref:`Camera2D<class_Camera2D>`, :ref:`CanvasGroup<class_CanvasGroup>`, :ref:`CanvasModulate<class_CanvasModulate>`, :ref:`CollisionObject2D<class_CollisionObject2D>`, :ref:`CollisionPolygon2D<class_CollisionPolygon2D>`, :ref:`CollisionShape2D<class_CollisionShape2D>`, :ref:`CPUParticles2D<class_CPUParticles2D>`, :ref:`GPUParticles2D<class_GPUParticles2D>`, :ref:`Joint2D<class_Joint2D>`, :ref:`Light2D<class_Light2D>`, :ref:`LightOccluder2D<class_LightOccluder2D>`, :ref:`Line2D<class_Line2D>`, :ref:`Marker2D<class_Marker2D>`, :ref:`MeshInstance2D<class_MeshInstance2D>`, :ref:`MultiMeshInstance2D<class_MultiMeshInstance2D>`, :ref:`NavigationLink2D<class_NavigationLink2D>`, :ref:`NavigationObstacle2D<class_NavigationObstacle2D>`, :ref:`NavigationRegion2D<class_NavigationRegion2D>`, :ref:`Parallax2D<class_Parallax2D>`, :ref:`ParallaxLayer<class_ParallaxLayer>`, :ref:`Path2D<class_Path2D>`, :ref:`PathFollow2D<class_PathFollow2D>`, :ref:`Polygon2D<class_Polygon2D>`, :ref:`RayCast2D<class_RayCast2D>`, :ref:`RemoteTransform2D<class_RemoteTransform2D>`, :ref:`ShapeCast2D<class_ShapeCast2D>`, :ref:`Skeleton2D<class_Skeleton2D>`, :ref:`Sprite2D<class_Sprite2D>`, :ref:`TileMap<class_TileMap>`, :ref:`TileMapLayer<class_TileMapLayer>`, :ref:`TouchScreenButton<class_TouchScreenButton>`, :ref:`VisibleOnScreenNotifier2D<class_VisibleOnScreenNotifier2D>`
  11. A 2D game object, inherited by all 2D-related nodes. Has a position, rotation, scale, and skew.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. A 2D game object, with a transform (position, rotation, and scale). All 2D nodes, including physics objects and sprites, inherit from Node2D. Use Node2D as a parent node to move, scale and rotate children in a 2D project. Also gives control of the node's render order.
  16. \ **Note:** Since both **Node2D** and :ref:`Control<class_Control>` inherit from :ref:`CanvasItem<class_CanvasItem>`, they share several concepts from the class such as the :ref:`CanvasItem.z_index<class_CanvasItem_property_z_index>` and :ref:`CanvasItem.visible<class_CanvasItem_property_visible>` properties.
  17. .. rst-class:: classref-introduction-group
  18. Tutorials
  19. ---------
  20. - :doc:`Custom drawing in 2D <../tutorials/2d/custom_drawing_in_2d>`
  21. - `All 2D Demos <https://github.com/godotengine/godot-demo-projects/tree/master/2d>`__
  22. .. rst-class:: classref-reftable-group
  23. Properties
  24. ----------
  25. .. table::
  26. :widths: auto
  27. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  28. | :ref:`Vector2<class_Vector2>` | :ref:`global_position<class_Node2D_property_global_position>` | |
  29. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  30. | :ref:`float<class_float>` | :ref:`global_rotation<class_Node2D_property_global_rotation>` | |
  31. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  32. | :ref:`float<class_float>` | :ref:`global_rotation_degrees<class_Node2D_property_global_rotation_degrees>` | |
  33. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  34. | :ref:`Vector2<class_Vector2>` | :ref:`global_scale<class_Node2D_property_global_scale>` | |
  35. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  36. | :ref:`float<class_float>` | :ref:`global_skew<class_Node2D_property_global_skew>` | |
  37. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  38. | :ref:`Transform2D<class_Transform2D>` | :ref:`global_transform<class_Node2D_property_global_transform>` | |
  39. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  40. | :ref:`Vector2<class_Vector2>` | :ref:`position<class_Node2D_property_position>` | ``Vector2(0, 0)`` |
  41. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  42. | :ref:`float<class_float>` | :ref:`rotation<class_Node2D_property_rotation>` | ``0.0`` |
  43. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  44. | :ref:`float<class_float>` | :ref:`rotation_degrees<class_Node2D_property_rotation_degrees>` | |
  45. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  46. | :ref:`Vector2<class_Vector2>` | :ref:`scale<class_Node2D_property_scale>` | ``Vector2(1, 1)`` |
  47. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  48. | :ref:`float<class_float>` | :ref:`skew<class_Node2D_property_skew>` | ``0.0`` |
  49. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  50. | :ref:`Transform2D<class_Transform2D>` | :ref:`transform<class_Node2D_property_transform>` | |
  51. +---------------------------------------+-------------------------------------------------------------------------------+-------------------+
  52. .. rst-class:: classref-reftable-group
  53. Methods
  54. -------
  55. .. table::
  56. :widths: auto
  57. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  58. | |void| | :ref:`apply_scale<class_Node2D_method_apply_scale>`\ (\ ratio\: :ref:`Vector2<class_Vector2>`\ ) |
  59. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  60. | :ref:`float<class_float>` | :ref:`get_angle_to<class_Node2D_method_get_angle_to>`\ (\ point\: :ref:`Vector2<class_Vector2>`\ ) |const| |
  61. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  62. | :ref:`Transform2D<class_Transform2D>` | :ref:`get_relative_transform_to_parent<class_Node2D_method_get_relative_transform_to_parent>`\ (\ parent\: :ref:`Node<class_Node>`\ ) |const| |
  63. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  64. | |void| | :ref:`global_translate<class_Node2D_method_global_translate>`\ (\ offset\: :ref:`Vector2<class_Vector2>`\ ) |
  65. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  66. | |void| | :ref:`look_at<class_Node2D_method_look_at>`\ (\ point\: :ref:`Vector2<class_Vector2>`\ ) |
  67. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  68. | |void| | :ref:`move_local_x<class_Node2D_method_move_local_x>`\ (\ delta\: :ref:`float<class_float>`, scaled\: :ref:`bool<class_bool>` = false\ ) |
  69. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  70. | |void| | :ref:`move_local_y<class_Node2D_method_move_local_y>`\ (\ delta\: :ref:`float<class_float>`, scaled\: :ref:`bool<class_bool>` = false\ ) |
  71. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  72. | |void| | :ref:`rotate<class_Node2D_method_rotate>`\ (\ radians\: :ref:`float<class_float>`\ ) |
  73. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  74. | :ref:`Vector2<class_Vector2>` | :ref:`to_global<class_Node2D_method_to_global>`\ (\ local_point\: :ref:`Vector2<class_Vector2>`\ ) |const| |
  75. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  76. | :ref:`Vector2<class_Vector2>` | :ref:`to_local<class_Node2D_method_to_local>`\ (\ global_point\: :ref:`Vector2<class_Vector2>`\ ) |const| |
  77. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  78. | |void| | :ref:`translate<class_Node2D_method_translate>`\ (\ offset\: :ref:`Vector2<class_Vector2>`\ ) |
  79. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  80. .. rst-class:: classref-section-separator
  81. ----
  82. .. rst-class:: classref-descriptions-group
  83. Property Descriptions
  84. ---------------------
  85. .. _class_Node2D_property_global_position:
  86. .. rst-class:: classref-property
  87. :ref:`Vector2<class_Vector2>` **global_position** :ref:`🔗<class_Node2D_property_global_position>`
  88. .. rst-class:: classref-property-setget
  89. - |void| **set_global_position**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
  90. - :ref:`Vector2<class_Vector2>` **get_global_position**\ (\ )
  91. Global position. See also :ref:`position<class_Node2D_property_position>`.
  92. .. rst-class:: classref-item-separator
  93. ----
  94. .. _class_Node2D_property_global_rotation:
  95. .. rst-class:: classref-property
  96. :ref:`float<class_float>` **global_rotation** :ref:`🔗<class_Node2D_property_global_rotation>`
  97. .. rst-class:: classref-property-setget
  98. - |void| **set_global_rotation**\ (\ value\: :ref:`float<class_float>`\ )
  99. - :ref:`float<class_float>` **get_global_rotation**\ (\ )
  100. Global rotation in radians. See also :ref:`rotation<class_Node2D_property_rotation>`.
  101. .. rst-class:: classref-item-separator
  102. ----
  103. .. _class_Node2D_property_global_rotation_degrees:
  104. .. rst-class:: classref-property
  105. :ref:`float<class_float>` **global_rotation_degrees** :ref:`🔗<class_Node2D_property_global_rotation_degrees>`
  106. .. rst-class:: classref-property-setget
  107. - |void| **set_global_rotation_degrees**\ (\ value\: :ref:`float<class_float>`\ )
  108. - :ref:`float<class_float>` **get_global_rotation_degrees**\ (\ )
  109. Helper property to access :ref:`global_rotation<class_Node2D_property_global_rotation>` in degrees instead of radians. See also :ref:`rotation_degrees<class_Node2D_property_rotation_degrees>`.
  110. .. rst-class:: classref-item-separator
  111. ----
  112. .. _class_Node2D_property_global_scale:
  113. .. rst-class:: classref-property
  114. :ref:`Vector2<class_Vector2>` **global_scale** :ref:`🔗<class_Node2D_property_global_scale>`
  115. .. rst-class:: classref-property-setget
  116. - |void| **set_global_scale**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
  117. - :ref:`Vector2<class_Vector2>` **get_global_scale**\ (\ )
  118. Global scale. See also :ref:`scale<class_Node2D_property_scale>`.
  119. .. rst-class:: classref-item-separator
  120. ----
  121. .. _class_Node2D_property_global_skew:
  122. .. rst-class:: classref-property
  123. :ref:`float<class_float>` **global_skew** :ref:`🔗<class_Node2D_property_global_skew>`
  124. .. rst-class:: classref-property-setget
  125. - |void| **set_global_skew**\ (\ value\: :ref:`float<class_float>`\ )
  126. - :ref:`float<class_float>` **get_global_skew**\ (\ )
  127. Global skew in radians. See also :ref:`skew<class_Node2D_property_skew>`.
  128. .. rst-class:: classref-item-separator
  129. ----
  130. .. _class_Node2D_property_global_transform:
  131. .. rst-class:: classref-property
  132. :ref:`Transform2D<class_Transform2D>` **global_transform** :ref:`🔗<class_Node2D_property_global_transform>`
  133. .. rst-class:: classref-property-setget
  134. - |void| **set_global_transform**\ (\ value\: :ref:`Transform2D<class_Transform2D>`\ )
  135. - :ref:`Transform2D<class_Transform2D>` **get_global_transform**\ (\ )
  136. Global :ref:`Transform2D<class_Transform2D>`. See also :ref:`transform<class_Node2D_property_transform>`.
  137. .. rst-class:: classref-item-separator
  138. ----
  139. .. _class_Node2D_property_position:
  140. .. rst-class:: classref-property
  141. :ref:`Vector2<class_Vector2>` **position** = ``Vector2(0, 0)`` :ref:`🔗<class_Node2D_property_position>`
  142. .. rst-class:: classref-property-setget
  143. - |void| **set_position**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
  144. - :ref:`Vector2<class_Vector2>` **get_position**\ (\ )
  145. Position, relative to the node's parent. See also :ref:`global_position<class_Node2D_property_global_position>`.
  146. .. rst-class:: classref-item-separator
  147. ----
  148. .. _class_Node2D_property_rotation:
  149. .. rst-class:: classref-property
  150. :ref:`float<class_float>` **rotation** = ``0.0`` :ref:`🔗<class_Node2D_property_rotation>`
  151. .. rst-class:: classref-property-setget
  152. - |void| **set_rotation**\ (\ value\: :ref:`float<class_float>`\ )
  153. - :ref:`float<class_float>` **get_rotation**\ (\ )
  154. Rotation in radians, relative to the node's parent. See also :ref:`global_rotation<class_Node2D_property_global_rotation>`.
  155. \ **Note:** This property is edited in the inspector in degrees. If you want to use degrees in a script, use :ref:`rotation_degrees<class_Node2D_property_rotation_degrees>`.
  156. .. rst-class:: classref-item-separator
  157. ----
  158. .. _class_Node2D_property_rotation_degrees:
  159. .. rst-class:: classref-property
  160. :ref:`float<class_float>` **rotation_degrees** :ref:`🔗<class_Node2D_property_rotation_degrees>`
  161. .. rst-class:: classref-property-setget
  162. - |void| **set_rotation_degrees**\ (\ value\: :ref:`float<class_float>`\ )
  163. - :ref:`float<class_float>` **get_rotation_degrees**\ (\ )
  164. Helper property to access :ref:`rotation<class_Node2D_property_rotation>` in degrees instead of radians. See also :ref:`global_rotation_degrees<class_Node2D_property_global_rotation_degrees>`.
  165. .. rst-class:: classref-item-separator
  166. ----
  167. .. _class_Node2D_property_scale:
  168. .. rst-class:: classref-property
  169. :ref:`Vector2<class_Vector2>` **scale** = ``Vector2(1, 1)`` :ref:`🔗<class_Node2D_property_scale>`
  170. .. rst-class:: classref-property-setget
  171. - |void| **set_scale**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
  172. - :ref:`Vector2<class_Vector2>` **get_scale**\ (\ )
  173. The node's scale, relative to the node's parent. Unscaled value: ``(1, 1)``. See also :ref:`global_scale<class_Node2D_property_global_scale>`.
  174. \ **Note:** Negative X scales in 2D are not decomposable from the transformation matrix. Due to the way scale is represented with transformation matrices in Godot, negative scales on the X axis will be changed to negative scales on the Y axis and a rotation of 180 degrees when decomposed.
  175. .. rst-class:: classref-item-separator
  176. ----
  177. .. _class_Node2D_property_skew:
  178. .. rst-class:: classref-property
  179. :ref:`float<class_float>` **skew** = ``0.0`` :ref:`🔗<class_Node2D_property_skew>`
  180. .. rst-class:: classref-property-setget
  181. - |void| **set_skew**\ (\ value\: :ref:`float<class_float>`\ )
  182. - :ref:`float<class_float>` **get_skew**\ (\ )
  183. If set to a non-zero value, slants the node in one direction or another. This can be used for pseudo-3D effects. See also :ref:`global_skew<class_Node2D_property_global_skew>`.
  184. \ **Note:** Skew is performed on the X axis only, and *between* rotation and scaling.
  185. \ **Note:** This property is edited in the inspector in degrees. If you want to use degrees in a script, use ``skew = deg_to_rad(value_in_degrees)``.
  186. .. rst-class:: classref-item-separator
  187. ----
  188. .. _class_Node2D_property_transform:
  189. .. rst-class:: classref-property
  190. :ref:`Transform2D<class_Transform2D>` **transform** :ref:`🔗<class_Node2D_property_transform>`
  191. .. rst-class:: classref-property-setget
  192. - |void| **set_transform**\ (\ value\: :ref:`Transform2D<class_Transform2D>`\ )
  193. - :ref:`Transform2D<class_Transform2D>` **get_transform**\ (\ )
  194. The node's :ref:`Transform2D<class_Transform2D>`, relative to the node's parent. See also :ref:`global_transform<class_Node2D_property_global_transform>`.
  195. .. rst-class:: classref-section-separator
  196. ----
  197. .. rst-class:: classref-descriptions-group
  198. Method Descriptions
  199. -------------------
  200. .. _class_Node2D_method_apply_scale:
  201. .. rst-class:: classref-method
  202. |void| **apply_scale**\ (\ ratio\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_Node2D_method_apply_scale>`
  203. Multiplies the current scale by the ``ratio`` vector.
  204. .. rst-class:: classref-item-separator
  205. ----
  206. .. _class_Node2D_method_get_angle_to:
  207. .. rst-class:: classref-method
  208. :ref:`float<class_float>` **get_angle_to**\ (\ point\: :ref:`Vector2<class_Vector2>`\ ) |const| :ref:`🔗<class_Node2D_method_get_angle_to>`
  209. Returns the angle between the node and the ``point`` in radians.
  210. \ `Illustration of the returned angle. <https://raw.githubusercontent.com/godotengine/godot-docs/master/img/node2d_get_angle_to.png>`__
  211. .. rst-class:: classref-item-separator
  212. ----
  213. .. _class_Node2D_method_get_relative_transform_to_parent:
  214. .. rst-class:: classref-method
  215. :ref:`Transform2D<class_Transform2D>` **get_relative_transform_to_parent**\ (\ parent\: :ref:`Node<class_Node>`\ ) |const| :ref:`🔗<class_Node2D_method_get_relative_transform_to_parent>`
  216. Returns the :ref:`Transform2D<class_Transform2D>` relative to this node's parent.
  217. .. rst-class:: classref-item-separator
  218. ----
  219. .. _class_Node2D_method_global_translate:
  220. .. rst-class:: classref-method
  221. |void| **global_translate**\ (\ offset\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_Node2D_method_global_translate>`
  222. Adds the ``offset`` vector to the node's global position.
  223. .. rst-class:: classref-item-separator
  224. ----
  225. .. _class_Node2D_method_look_at:
  226. .. rst-class:: classref-method
  227. |void| **look_at**\ (\ point\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_Node2D_method_look_at>`
  228. Rotates the node so that its local +X axis points towards the ``point``, which is expected to use global coordinates.
  229. \ ``point`` should not be the same as the node's position, otherwise the node always looks to the right.
  230. .. rst-class:: classref-item-separator
  231. ----
  232. .. _class_Node2D_method_move_local_x:
  233. .. rst-class:: classref-method
  234. |void| **move_local_x**\ (\ delta\: :ref:`float<class_float>`, scaled\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_Node2D_method_move_local_x>`
  235. Applies a local translation on the node's X axis based on the :ref:`Node._process()<class_Node_private_method__process>`'s ``delta``. If ``scaled`` is ``false``, normalizes the movement.
  236. .. rst-class:: classref-item-separator
  237. ----
  238. .. _class_Node2D_method_move_local_y:
  239. .. rst-class:: classref-method
  240. |void| **move_local_y**\ (\ delta\: :ref:`float<class_float>`, scaled\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_Node2D_method_move_local_y>`
  241. Applies a local translation on the node's Y axis based on the :ref:`Node._process()<class_Node_private_method__process>`'s ``delta``. If ``scaled`` is ``false``, normalizes the movement.
  242. .. rst-class:: classref-item-separator
  243. ----
  244. .. _class_Node2D_method_rotate:
  245. .. rst-class:: classref-method
  246. |void| **rotate**\ (\ radians\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Node2D_method_rotate>`
  247. Applies a rotation to the node, in radians, starting from its current rotation.
  248. .. rst-class:: classref-item-separator
  249. ----
  250. .. _class_Node2D_method_to_global:
  251. .. rst-class:: classref-method
  252. :ref:`Vector2<class_Vector2>` **to_global**\ (\ local_point\: :ref:`Vector2<class_Vector2>`\ ) |const| :ref:`🔗<class_Node2D_method_to_global>`
  253. Transforms the provided local position into a position in global coordinate space. The input is expected to be local relative to the **Node2D** it is called on. e.g. Applying this method to the positions of child nodes will correctly transform their positions into the global coordinate space, but applying it to a node's own position will give an incorrect result, as it will incorporate the node's own transformation into its global position.
  254. .. rst-class:: classref-item-separator
  255. ----
  256. .. _class_Node2D_method_to_local:
  257. .. rst-class:: classref-method
  258. :ref:`Vector2<class_Vector2>` **to_local**\ (\ global_point\: :ref:`Vector2<class_Vector2>`\ ) |const| :ref:`🔗<class_Node2D_method_to_local>`
  259. Transforms the provided global position into a position in local coordinate space. The output will be local relative to the **Node2D** it is called on. e.g. It is appropriate for determining the positions of child nodes, but it is not appropriate for determining its own position relative to its parent.
  260. .. rst-class:: classref-item-separator
  261. ----
  262. .. _class_Node2D_method_translate:
  263. .. rst-class:: classref-method
  264. |void| **translate**\ (\ offset\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_Node2D_method_translate>`
  265. Translates the node by the given ``offset`` in local coordinates.
  266. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  267. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  268. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  269. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  270. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  271. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  272. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  273. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  274. .. |void| replace:: :abbr:`void (No return value.)`