class_linkbutton.rst 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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>` |
  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 |
  28. +---------------------------------+--------------------+
  29. | :ref:`Color<class_Color>` | font_color_hover |
  30. +---------------------------------+--------------------+
  31. | :ref:`Color<class_Color>` | font_color_pressed |
  32. +---------------------------------+--------------------+
  33. | :ref:`int<class_int>` | underline_spacing |
  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 buttons are 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. | *Setter* | set_text(value) |
  54. +----------+-----------------+
  55. | *Getter* | get_text() |
  56. +----------+-----------------+
  57. ----
  58. .. _class_LinkButton_property_underline:
  59. - :ref:`UnderlineMode<enum_LinkButton_UnderlineMode>` **underline**
  60. +----------+---------------------------+
  61. | *Setter* | set_underline_mode(value) |
  62. +----------+---------------------------+
  63. | *Getter* | get_underline_mode() |
  64. +----------+---------------------------+