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
+39 -2
View File
@@ -8,6 +8,7 @@ LinkButton
==========
**Inherits:** :ref:`BaseButton<class_BaseButton>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
**Category:** Core
Brief Description
@@ -15,18 +16,43 @@ Brief Description
Simple button used to represent a link to some resource.
Properties
----------
+-----------------------------------------------------+----------------------------------------------+
| :ref:`String<class_String>` | :ref:`text<class_LinkButton_text>` |
+-----------------------------------------------------+----------------------------------------------+
| :ref:`UnderlineMode<enum_LinkButton_UnderlineMode>` | :ref:`underline<class_LinkButton_underline>` |
+-----------------------------------------------------+----------------------------------------------+
Theme Properties
----------------
+---------------------------------+----------------------------------------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`focus<class_LinkButton_focus>` |
+---------------------------------+----------------------------------------------------------------+
| :ref:`Font<class_Font>` | :ref:`font<class_LinkButton_font>` |
+---------------------------------+----------------------------------------------------------------+
| :ref:`Color<class_Color>` | :ref:`font_color<class_LinkButton_font_color>` |
+---------------------------------+----------------------------------------------------------------+
| :ref:`Color<class_Color>` | :ref:`font_color_hover<class_LinkButton_font_color_hover>` |
+---------------------------------+----------------------------------------------------------------+
| :ref:`Color<class_Color>` | :ref:`font_color_pressed<class_LinkButton_font_color_pressed>` |
+---------------------------------+----------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`underline_spacing<class_LinkButton_underline_spacing>` |
+---------------------------------+----------------------------------------------------------------+
Enumerations
------------
.. _enum_LinkButton_UnderlineMode:
enum **UnderlineMode**
enum **UnderlineMode**:
- **UNDERLINE_MODE_ALWAYS** = **0** --- The LinkButton will always show an underline at the bottom of its text
- **UNDERLINE_MODE_ON_HOVER** = **1** --- The LinkButton will show an underline at the bottom of its text when the mouse cursor is over it.
- **UNDERLINE_MODE_NEVER** = **2** --- The LinkButton will never show an underline at the bottom of its text.
Description
-----------
@@ -39,8 +65,19 @@ Property Descriptions
- :ref:`String<class_String>` **text**
+----------+-----------------+
| *Setter* | set_text(value) |
+----------+-----------------+
| *Getter* | get_text() |
+----------+-----------------+
.. _class_LinkButton_underline:
- :ref:`UnderlineMode<enum_LinkButton_UnderlineMode>` **underline**
+----------+---------------------------+
| *Setter* | set_underline_mode(value) |
+----------+---------------------------+
| *Getter* | get_underline_mode() |
+----------+---------------------------+