.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_LinkButton: LinkButton ========== **Inherits:** :ref:`BaseButton` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Simple button used to represent a link to some resource Member Functions ---------------- +------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_text` **(** **)** const | +------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_underline_mode` **(** **)** const | +------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_text` **(** :ref:`String` text **)** | +------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_underline_mode` **(** :ref:`int` underline_mode **)** | +------------------------------+-------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`String` **text** - :ref:`int` **underline** Numeric Constants ----------------- - **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 ----------- This kind of buttons are primarily used when the interaction with the button causes a context change (like linking to a web page). Member Function Description --------------------------- .. _class_LinkButton_get_text: - :ref:`String` **get_text** **(** **)** const Returns the text of the button. .. _class_LinkButton_get_underline_mode: - :ref:`int` **get_underline_mode** **(** **)** const Returns the underline mode for this button. .. _class_LinkButton_set_text: - void **set_text** **(** :ref:`String` text **)** Sets the text of the button. .. _class_LinkButton_set_underline_mode: - void **set_underline_mode** **(** :ref:`int` underline_mode **)** Sets the underline mode for this button, the argument must be one of the :ref:`LinkButton` constants (see constants section).