class_linkbutton.rst 3.2 KB

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