class_linkbutton.rst 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the LinkButton.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_LinkButton:
  6. LinkButton
  7. ==========
  8. **Inherits:** :ref:`BaseButton<class_BaseButton>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Simple button used to represent a link to some resource.
  13. Properties
  14. ----------
  15. +-----------------------------------------------------+-------------------------------------------------------+----+
  16. | :ref:`String<class_String>` | :ref:`text<class_LinkButton_property_text>` | "" |
  17. +-----------------------------------------------------+-------------------------------------------------------+----+
  18. | :ref:`UnderlineMode<enum_LinkButton_UnderlineMode>` | :ref:`underline<class_LinkButton_property_underline>` | 0 |
  19. +-----------------------------------------------------+-------------------------------------------------------+----+
  20. Theme Properties
  21. ----------------
  22. +---------------------------------+--------------------+------------------------------+
  23. | :ref:`StyleBox<class_StyleBox>` | focus | |
  24. +---------------------------------+--------------------+------------------------------+
  25. | :ref:`Font<class_Font>` | font | |
  26. +---------------------------------+--------------------+------------------------------+
  27. | :ref:`Color<class_Color>` | font_color | Color( 0.88, 0.88, 0.88, 1 ) |
  28. +---------------------------------+--------------------+------------------------------+
  29. | :ref:`Color<class_Color>` | font_color_hover | Color( 0.94, 0.94, 0.94, 1 ) |
  30. +---------------------------------+--------------------+------------------------------+
  31. | :ref:`Color<class_Color>` | font_color_pressed | Color( 1, 1, 1, 1 ) |
  32. +---------------------------------+--------------------+------------------------------+
  33. | :ref:`int<class_int>` | underline_spacing | 2 |
  34. +---------------------------------+--------------------+------------------------------+
  35. Enumerations
  36. ------------
  37. .. _enum_LinkButton_UnderlineMode:
  38. .. _class_LinkButton_constant_UNDERLINE_MODE_ALWAYS:
  39. .. _class_LinkButton_constant_UNDERLINE_MODE_ON_HOVER:
  40. .. _class_LinkButton_constant_UNDERLINE_MODE_NEVER:
  41. enum **UnderlineMode**:
  42. - **UNDERLINE_MODE_ALWAYS** = **0** --- The LinkButton will always show an underline at the bottom of its text.
  43. - **UNDERLINE_MODE_ON_HOVER** = **1** --- The LinkButton will show an underline at the bottom of its text when the mouse cursor is over it.
  44. - **UNDERLINE_MODE_NEVER** = **2** --- The LinkButton will never show an underline at the bottom of its text.
  45. Description
  46. -----------
  47. This kind of button is primarily used when the interaction with the button causes a context change (like linking to a web page).
  48. Property Descriptions
  49. ---------------------
  50. .. _class_LinkButton_property_text:
  51. - :ref:`String<class_String>` **text**
  52. +-----------+-----------------+
  53. | *Default* | "" |
  54. +-----------+-----------------+
  55. | *Setter* | set_text(value) |
  56. +-----------+-----------------+
  57. | *Getter* | get_text() |
  58. +-----------+-----------------+
  59. .. _class_LinkButton_property_underline:
  60. - :ref:`UnderlineMode<enum_LinkButton_UnderlineMode>` **underline**
  61. +-----------+---------------------------+
  62. | *Default* | 0 |
  63. +-----------+---------------------------+
  64. | *Setter* | set_underline_mode(value) |
  65. +-----------+---------------------------+
  66. | *Getter* | get_underline_mode() |
  67. +-----------+---------------------------+