.. 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_RichTextLabel: RichTextLabel ============= **Inherits:** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Label that displays rich text. Member Functions ---------------- +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_image` **(** :ref:`Texture` image **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_text` **(** :ref:`String` text **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`append_bbcode` **(** :ref:`String` bbcode **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear` **(** **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_bbcode` **(** **)** const | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_percent_visible` **(** **)** const | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_tab_size` **(** **)** const | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_text` **(** **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_total_character_count` **(** **)** const | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`VScrollBar` | :ref:`get_v_scroll` **(** **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_visible_characters` **(** **)** const | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_meta_underlined` **(** **)** const | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_scroll_active` **(** **)** const | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_scroll_following` **(** **)** const | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_selection_enabled` **(** **)** const | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_using_bbcode` **(** **)** const | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`newline` **(** **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`parse_bbcode` **(** :ref:`String` bbcode **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`pop` **(** **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_align` **(** :ref:`int` align **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_cell` **(** **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_color` **(** :ref:`Color` color **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_font` **(** :ref:`Font` font **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_indent` **(** :ref:`int` level **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_list` **(** :ref:`int` type **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_meta` **(** :ref:`Variant` data **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_table` **(** :ref:`int` columns **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`push_underline` **(** **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`remove_line` **(** :ref:`int` arg0 **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`scroll_to_line` **(** :ref:`int` line **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_bbcode` **(** :ref:`String` text **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_meta_underline` **(** :ref:`bool` enable **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_percent_visible` **(** :ref:`float` percent_visible **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_scroll_active` **(** :ref:`bool` active **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_scroll_follow` **(** :ref:`bool` follow **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_selection_enabled` **(** :ref:`bool` enabled **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_tab_size` **(** :ref:`int` spaces **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_table_column_expand` **(** :ref:`int` column, :ref:`bool` expand, :ref:`int` ratio **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_text` **(** :ref:`String` text **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_use_bbcode` **(** :ref:`bool` enable **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_visible_characters` **(** :ref:`int` amount **)** | +--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- - **meta_clicked** **(** :ref:`Nil` meta **)** Member Variables ---------------- - :ref:`bool` **bbcode_enabled** - :ref:`String` **bbcode_text** - :ref:`float` **percent_visible** - :ref:`int` **visible_characters** Numeric Constants ----------------- - **ALIGN_LEFT** = **0** - **ALIGN_CENTER** = **1** - **ALIGN_RIGHT** = **2** - **ALIGN_FILL** = **3** - **LIST_NUMBERS** = **0** - **LIST_LETTERS** = **1** - **LIST_DOTS** = **2** - **ITEM_FRAME** = **0** - **ITEM_TEXT** = **1** - **ITEM_IMAGE** = **2** - **ITEM_NEWLINE** = **3** - **ITEM_FONT** = **4** - **ITEM_COLOR** = **5** - **ITEM_UNDERLINE** = **6** - **ITEM_ALIGN** = **7** - **ITEM_INDENT** = **8** - **ITEM_LIST** = **9** - **ITEM_META** = **11** Description ----------- Label that displays rich text. Rich text can contain custom text, fonts, images and some basic formatting. It also adapts itself to given width/heights. Member Function Description --------------------------- .. _class_RichTextLabel_add_image: - void **add_image** **(** :ref:`Texture` image **)** .. _class_RichTextLabel_add_text: - void **add_text** **(** :ref:`String` text **)** .. _class_RichTextLabel_append_bbcode: - :ref:`int` **append_bbcode** **(** :ref:`String` bbcode **)** .. _class_RichTextLabel_clear: - void **clear** **(** **)** .. _class_RichTextLabel_get_bbcode: - :ref:`String` **get_bbcode** **(** **)** const .. _class_RichTextLabel_get_percent_visible: - :ref:`float` **get_percent_visible** **(** **)** const .. _class_RichTextLabel_get_tab_size: - :ref:`int` **get_tab_size** **(** **)** const .. _class_RichTextLabel_get_text: - :ref:`String` **get_text** **(** **)** Returns the raw text, stripping out the formatting information. .. _class_RichTextLabel_get_total_character_count: - :ref:`int` **get_total_character_count** **(** **)** const .. _class_RichTextLabel_get_v_scroll: - :ref:`VScrollBar` **get_v_scroll** **(** **)** .. _class_RichTextLabel_get_visible_characters: - :ref:`int` **get_visible_characters** **(** **)** const .. _class_RichTextLabel_is_meta_underlined: - :ref:`bool` **is_meta_underlined** **(** **)** const .. _class_RichTextLabel_is_scroll_active: - :ref:`bool` **is_scroll_active** **(** **)** const .. _class_RichTextLabel_is_scroll_following: - :ref:`bool` **is_scroll_following** **(** **)** const .. _class_RichTextLabel_is_selection_enabled: - :ref:`bool` **is_selection_enabled** **(** **)** const Return true if selecting the text inside this richtext is allowed. .. _class_RichTextLabel_is_using_bbcode: - :ref:`bool` **is_using_bbcode** **(** **)** const .. _class_RichTextLabel_newline: - void **newline** **(** **)** .. _class_RichTextLabel_parse_bbcode: - :ref:`int` **parse_bbcode** **(** :ref:`String` bbcode **)** .. _class_RichTextLabel_pop: - void **pop** **(** **)** .. _class_RichTextLabel_push_align: - void **push_align** **(** :ref:`int` align **)** .. _class_RichTextLabel_push_cell: - void **push_cell** **(** **)** .. _class_RichTextLabel_push_color: - void **push_color** **(** :ref:`Color` color **)** .. _class_RichTextLabel_push_font: - void **push_font** **(** :ref:`Font` font **)** .. _class_RichTextLabel_push_indent: - void **push_indent** **(** :ref:`int` level **)** .. _class_RichTextLabel_push_list: - void **push_list** **(** :ref:`int` type **)** .. _class_RichTextLabel_push_meta: - void **push_meta** **(** :ref:`Variant` data **)** .. _class_RichTextLabel_push_table: - void **push_table** **(** :ref:`int` columns **)** .. _class_RichTextLabel_push_underline: - void **push_underline** **(** **)** .. _class_RichTextLabel_remove_line: - :ref:`bool` **remove_line** **(** :ref:`int` arg0 **)** .. _class_RichTextLabel_scroll_to_line: - void **scroll_to_line** **(** :ref:`int` line **)** .. _class_RichTextLabel_set_bbcode: - void **set_bbcode** **(** :ref:`String` text **)** .. _class_RichTextLabel_set_meta_underline: - void **set_meta_underline** **(** :ref:`bool` enable **)** .. _class_RichTextLabel_set_percent_visible: - void **set_percent_visible** **(** :ref:`float` percent_visible **)** .. _class_RichTextLabel_set_scroll_active: - void **set_scroll_active** **(** :ref:`bool` active **)** .. _class_RichTextLabel_set_scroll_follow: - void **set_scroll_follow** **(** :ref:`bool` follow **)** .. _class_RichTextLabel_set_selection_enabled: - void **set_selection_enabled** **(** :ref:`bool` enabled **)** Set to true if selecting the text inside this richtext is allowed. .. _class_RichTextLabel_set_tab_size: - void **set_tab_size** **(** :ref:`int` spaces **)** .. _class_RichTextLabel_set_table_column_expand: - void **set_table_column_expand** **(** :ref:`int` column, :ref:`bool` expand, :ref:`int` ratio **)** .. _class_RichTextLabel_set_text: - void **set_text** **(** :ref:`String` text **)** .. _class_RichTextLabel_set_use_bbcode: - void **set_use_bbcode** **(** :ref:`bool` enable **)** .. _class_RichTextLabel_set_visible_characters: - void **set_visible_characters** **(** :ref:`int` amount **)**