classref: Add property overview and setter/getter like in editor docs

Output from godotengine/godot#22013.
Fixes #1729.
This commit is contained in:
Rémi Verschelde
2018-09-13 11:06:52 +02:00
parent f9caa4be29
commit ab3f908221
578 changed files with 33831 additions and 6706 deletions
+16 -1
View File
@@ -8,6 +8,7 @@ RectangleShape2D
================
**Inherits:** :ref:`Shape2D<class_Shape2D>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
**Category:** Core
Brief Description
@@ -15,6 +16,13 @@ Brief Description
Rectangle shape for 2D collisions.
Properties
----------
+-------------------------------+------------------------------------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`extents<class_RectangleShape2D_extents>` |
+-------------------------------+------------------------------------------------+
Description
-----------
@@ -25,6 +33,13 @@ Property Descriptions
.. _class_RectangleShape2D_extents:
- :ref:`Vector2<class_Vector2>` **extents** - The rectangle's half extents. The width and height of this shape is twice the half extents.
- :ref:`Vector2<class_Vector2>` **extents**
+----------+--------------------+
| *Setter* | set_extents(value) |
+----------+--------------------+
| *Getter* | get_extents() |
+----------+--------------------+
The rectangle's half extents. The width and height of this shape is twice the half extents.