class_richtextlabel.rst 206 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/RichTextLabel.xml.
  6. .. _class_RichTextLabel:
  7. RichTextLabel
  8. =============
  9. **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A control for displaying text that can contain different font styles, images, and basic formatting.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A control for displaying text that can contain custom fonts, images, and basic formatting. **RichTextLabel** manages these as an internal tag stack. It also adapts itself to given width/heights.
  15. \ **Note:** :ref:`newline()<class_RichTextLabel_method_newline>`, :ref:`push_paragraph()<class_RichTextLabel_method_push_paragraph>`, ``"\n"``, ``"\r\n"``, ``p`` tag, and alignment tags start a new paragraph. Each paragraph is processed independently, in its own BiDi context. If you want to force line wrapping within paragraph, any other line breaking character can be used, for example, Form Feed (U+000C), Next Line (U+0085), Line Separator (U+2028).
  16. \ **Note:** Assignments to :ref:`text<class_RichTextLabel_property_text>` clear the tag stack and reconstruct it from the property's contents. Any edits made to :ref:`text<class_RichTextLabel_property_text>` will erase previous edits made from other manual sources such as :ref:`append_text()<class_RichTextLabel_method_append_text>` and the ``push_*`` / :ref:`pop()<class_RichTextLabel_method_pop>` methods.
  17. \ **Note:** RichTextLabel doesn't support entangled BBCode tags. For example, instead of using ``[b]bold[i]bold italic[/b]italic[/i]``, use ``[b]bold[i]bold italic[/i][/b][i]italic[/i]``.
  18. \ **Note:** ``push_*/pop_*`` functions won't affect BBCode.
  19. \ **Note:** While :ref:`bbcode_enabled<class_RichTextLabel_property_bbcode_enabled>` is enabled, alignment tags such as ``[center]`` will take priority over the :ref:`horizontal_alignment<class_RichTextLabel_property_horizontal_alignment>` setting which determines the default text alignment.
  20. .. rst-class:: classref-introduction-group
  21. Tutorials
  22. ---------
  23. - :doc:`BBCode in RichTextLabel <../tutorials/ui/bbcode_in_richtextlabel>`
  24. - `Rich Text Label with BBCode Demo <https://godotengine.org/asset-library/asset/2774>`__
  25. - `Operating System Testing Demo <https://godotengine.org/asset-library/asset/2789>`__
  26. .. rst-class:: classref-reftable-group
  27. Properties
  28. ----------
  29. .. table::
  30. :widths: auto
  31. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  32. | :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` | :ref:`autowrap_mode<class_RichTextLabel_property_autowrap_mode>` | ``3`` |
  33. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  34. | |bitfield|\[:ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>`\] | :ref:`autowrap_trim_flags<class_RichTextLabel_property_autowrap_trim_flags>` | ``192`` |
  35. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  36. | :ref:`bool<class_bool>` | :ref:`bbcode_enabled<class_RichTextLabel_property_bbcode_enabled>` | ``false`` |
  37. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  38. | :ref:`bool<class_bool>` | clip_contents | ``true`` (overrides :ref:`Control<class_Control_property_clip_contents>`) |
  39. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  40. | :ref:`bool<class_bool>` | :ref:`context_menu_enabled<class_RichTextLabel_property_context_menu_enabled>` | ``false`` |
  41. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  42. | :ref:`Array<class_Array>` | :ref:`custom_effects<class_RichTextLabel_property_custom_effects>` | ``[]`` |
  43. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  44. | :ref:`bool<class_bool>` | :ref:`deselect_on_focus_loss_enabled<class_RichTextLabel_property_deselect_on_focus_loss_enabled>` | ``true`` |
  45. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  46. | :ref:`bool<class_bool>` | :ref:`drag_and_drop_selection_enabled<class_RichTextLabel_property_drag_and_drop_selection_enabled>` | ``true`` |
  47. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  48. | :ref:`bool<class_bool>` | :ref:`fit_content<class_RichTextLabel_property_fit_content>` | ``false`` |
  49. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  50. | :ref:`FocusMode<enum_Control_FocusMode>` | focus_mode | ``3`` (overrides :ref:`Control<class_Control_property_focus_mode>`) |
  51. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  52. | :ref:`bool<class_bool>` | :ref:`hint_underlined<class_RichTextLabel_property_hint_underlined>` | ``true`` |
  53. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  54. | :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` | :ref:`horizontal_alignment<class_RichTextLabel_property_horizontal_alignment>` | ``0`` |
  55. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  56. | |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] | :ref:`justification_flags<class_RichTextLabel_property_justification_flags>` | ``163`` |
  57. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  58. | :ref:`String<class_String>` | :ref:`language<class_RichTextLabel_property_language>` | ``""`` |
  59. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  60. | :ref:`bool<class_bool>` | :ref:`meta_underlined<class_RichTextLabel_property_meta_underlined>` | ``true`` |
  61. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  62. | :ref:`int<class_int>` | :ref:`progress_bar_delay<class_RichTextLabel_property_progress_bar_delay>` | ``1000`` |
  63. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  64. | :ref:`bool<class_bool>` | :ref:`scroll_active<class_RichTextLabel_property_scroll_active>` | ``true`` |
  65. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  66. | :ref:`bool<class_bool>` | :ref:`scroll_following<class_RichTextLabel_property_scroll_following>` | ``false`` |
  67. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  68. | :ref:`bool<class_bool>` | :ref:`selection_enabled<class_RichTextLabel_property_selection_enabled>` | ``false`` |
  69. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  70. | :ref:`bool<class_bool>` | :ref:`shortcut_keys_enabled<class_RichTextLabel_property_shortcut_keys_enabled>` | ``true`` |
  71. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  72. | :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` | :ref:`structured_text_bidi_override<class_RichTextLabel_property_structured_text_bidi_override>` | ``0`` |
  73. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  74. | :ref:`Array<class_Array>` | :ref:`structured_text_bidi_override_options<class_RichTextLabel_property_structured_text_bidi_override_options>` | ``[]`` |
  75. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  76. | :ref:`int<class_int>` | :ref:`tab_size<class_RichTextLabel_property_tab_size>` | ``4`` |
  77. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  78. | :ref:`PackedFloat32Array<class_PackedFloat32Array>` | :ref:`tab_stops<class_RichTextLabel_property_tab_stops>` | ``PackedFloat32Array()`` |
  79. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  80. | :ref:`String<class_String>` | :ref:`text<class_RichTextLabel_property_text>` | ``""`` |
  81. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  82. | :ref:`TextDirection<enum_Control_TextDirection>` | :ref:`text_direction<class_RichTextLabel_property_text_direction>` | ``0`` |
  83. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  84. | :ref:`bool<class_bool>` | :ref:`threaded<class_RichTextLabel_property_threaded>` | ``false`` |
  85. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  86. | :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` | :ref:`vertical_alignment<class_RichTextLabel_property_vertical_alignment>` | ``0`` |
  87. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  88. | :ref:`int<class_int>` | :ref:`visible_characters<class_RichTextLabel_property_visible_characters>` | ``-1`` |
  89. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  90. | :ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>` | :ref:`visible_characters_behavior<class_RichTextLabel_property_visible_characters_behavior>` | ``0`` |
  91. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  92. | :ref:`float<class_float>` | :ref:`visible_ratio<class_RichTextLabel_property_visible_ratio>` | ``1.0`` |
  93. +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------+
  94. .. rst-class:: classref-reftable-group
  95. Methods
  96. -------
  97. .. table::
  98. :widths: auto
  99. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  100. | |void| | :ref:`add_image<class_RichTextLabel_method_add_image>`\ (\ image\: :ref:`Texture2D<class_Texture2D>`, width\: :ref:`int<class_int>` = 0, height\: :ref:`int<class_int>` = 0, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), key\: :ref:`Variant<class_Variant>` = null, pad\: :ref:`bool<class_bool>` = false, tooltip\: :ref:`String<class_String>` = "", size_in_percent\: :ref:`bool<class_bool>` = false, alt_text\: :ref:`String<class_String>` = ""\ ) |
  101. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  102. | |void| | :ref:`add_text<class_RichTextLabel_method_add_text>`\ (\ text\: :ref:`String<class_String>`\ ) |
  103. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  104. | |void| | :ref:`append_text<class_RichTextLabel_method_append_text>`\ (\ bbcode\: :ref:`String<class_String>`\ ) |
  105. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  106. | |void| | :ref:`clear<class_RichTextLabel_method_clear>`\ (\ ) |
  107. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  108. | |void| | :ref:`deselect<class_RichTextLabel_method_deselect>`\ (\ ) |
  109. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  110. | :ref:`int<class_int>` | :ref:`get_character_line<class_RichTextLabel_method_get_character_line>`\ (\ character\: :ref:`int<class_int>`\ ) |
  111. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  112. | :ref:`int<class_int>` | :ref:`get_character_paragraph<class_RichTextLabel_method_get_character_paragraph>`\ (\ character\: :ref:`int<class_int>`\ ) |
  113. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  114. | :ref:`int<class_int>` | :ref:`get_content_height<class_RichTextLabel_method_get_content_height>`\ (\ ) |const| |
  115. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  116. | :ref:`int<class_int>` | :ref:`get_content_width<class_RichTextLabel_method_get_content_width>`\ (\ ) |const| |
  117. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  118. | :ref:`int<class_int>` | :ref:`get_line_count<class_RichTextLabel_method_get_line_count>`\ (\ ) |const| |
  119. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  120. | :ref:`int<class_int>` | :ref:`get_line_height<class_RichTextLabel_method_get_line_height>`\ (\ line\: :ref:`int<class_int>`\ ) |const| |
  121. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  122. | :ref:`float<class_float>` | :ref:`get_line_offset<class_RichTextLabel_method_get_line_offset>`\ (\ line\: :ref:`int<class_int>`\ ) |
  123. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  124. | :ref:`Vector2i<class_Vector2i>` | :ref:`get_line_range<class_RichTextLabel_method_get_line_range>`\ (\ line\: :ref:`int<class_int>`\ ) |
  125. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  126. | :ref:`int<class_int>` | :ref:`get_line_width<class_RichTextLabel_method_get_line_width>`\ (\ line\: :ref:`int<class_int>`\ ) |const| |
  127. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  128. | :ref:`PopupMenu<class_PopupMenu>` | :ref:`get_menu<class_RichTextLabel_method_get_menu>`\ (\ ) |const| |
  129. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  130. | :ref:`int<class_int>` | :ref:`get_paragraph_count<class_RichTextLabel_method_get_paragraph_count>`\ (\ ) |const| |
  131. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  132. | :ref:`float<class_float>` | :ref:`get_paragraph_offset<class_RichTextLabel_method_get_paragraph_offset>`\ (\ paragraph\: :ref:`int<class_int>`\ ) |
  133. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  134. | :ref:`String<class_String>` | :ref:`get_parsed_text<class_RichTextLabel_method_get_parsed_text>`\ (\ ) |const| |
  135. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  136. | :ref:`String<class_String>` | :ref:`get_selected_text<class_RichTextLabel_method_get_selected_text>`\ (\ ) |const| |
  137. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  138. | :ref:`int<class_int>` | :ref:`get_selection_from<class_RichTextLabel_method_get_selection_from>`\ (\ ) |const| |
  139. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  140. | :ref:`float<class_float>` | :ref:`get_selection_line_offset<class_RichTextLabel_method_get_selection_line_offset>`\ (\ ) |const| |
  141. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  142. | :ref:`int<class_int>` | :ref:`get_selection_to<class_RichTextLabel_method_get_selection_to>`\ (\ ) |const| |
  143. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  144. | :ref:`int<class_int>` | :ref:`get_total_character_count<class_RichTextLabel_method_get_total_character_count>`\ (\ ) |const| |
  145. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  146. | :ref:`VScrollBar<class_VScrollBar>` | :ref:`get_v_scroll_bar<class_RichTextLabel_method_get_v_scroll_bar>`\ (\ ) |
  147. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  148. | :ref:`int<class_int>` | :ref:`get_visible_line_count<class_RichTextLabel_method_get_visible_line_count>`\ (\ ) |const| |
  149. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  150. | :ref:`int<class_int>` | :ref:`get_visible_paragraph_count<class_RichTextLabel_method_get_visible_paragraph_count>`\ (\ ) |const| |
  151. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  152. | |void| | :ref:`install_effect<class_RichTextLabel_method_install_effect>`\ (\ effect\: :ref:`Variant<class_Variant>`\ ) |
  153. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  154. | :ref:`bool<class_bool>` | :ref:`invalidate_paragraph<class_RichTextLabel_method_invalidate_paragraph>`\ (\ paragraph\: :ref:`int<class_int>`\ ) |
  155. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  156. | :ref:`bool<class_bool>` | :ref:`is_finished<class_RichTextLabel_method_is_finished>`\ (\ ) |const| |
  157. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  158. | :ref:`bool<class_bool>` | :ref:`is_menu_visible<class_RichTextLabel_method_is_menu_visible>`\ (\ ) |const| |
  159. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  160. | :ref:`bool<class_bool>` | :ref:`is_ready<class_RichTextLabel_method_is_ready>`\ (\ ) |const| |
  161. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  162. | |void| | :ref:`menu_option<class_RichTextLabel_method_menu_option>`\ (\ option\: :ref:`int<class_int>`\ ) |
  163. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  164. | |void| | :ref:`newline<class_RichTextLabel_method_newline>`\ (\ ) |
  165. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  166. | |void| | :ref:`parse_bbcode<class_RichTextLabel_method_parse_bbcode>`\ (\ bbcode\: :ref:`String<class_String>`\ ) |
  167. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  168. | :ref:`Dictionary<class_Dictionary>` | :ref:`parse_expressions_for_values<class_RichTextLabel_method_parse_expressions_for_values>`\ (\ expressions\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) |
  169. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  170. | |void| | :ref:`pop<class_RichTextLabel_method_pop>`\ (\ ) |
  171. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  172. | |void| | :ref:`pop_all<class_RichTextLabel_method_pop_all>`\ (\ ) |
  173. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  174. | |void| | :ref:`pop_context<class_RichTextLabel_method_pop_context>`\ (\ ) |
  175. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  176. | |void| | :ref:`push_bgcolor<class_RichTextLabel_method_push_bgcolor>`\ (\ bgcolor\: :ref:`Color<class_Color>`\ ) |
  177. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  178. | |void| | :ref:`push_bold<class_RichTextLabel_method_push_bold>`\ (\ ) |
  179. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  180. | |void| | :ref:`push_bold_italics<class_RichTextLabel_method_push_bold_italics>`\ (\ ) |
  181. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  182. | |void| | :ref:`push_cell<class_RichTextLabel_method_push_cell>`\ (\ ) |
  183. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  184. | |void| | :ref:`push_color<class_RichTextLabel_method_push_color>`\ (\ color\: :ref:`Color<class_Color>`\ ) |
  185. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  186. | |void| | :ref:`push_context<class_RichTextLabel_method_push_context>`\ (\ ) |
  187. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  188. | |void| | :ref:`push_customfx<class_RichTextLabel_method_push_customfx>`\ (\ effect\: :ref:`RichTextEffect<class_RichTextEffect>`, env\: :ref:`Dictionary<class_Dictionary>`\ ) |
  189. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  190. | |void| | :ref:`push_dropcap<class_RichTextLabel_method_push_dropcap>`\ (\ string\: :ref:`String<class_String>`, font\: :ref:`Font<class_Font>`, size\: :ref:`int<class_int>`, dropcap_margins\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), outline_size\: :ref:`int<class_int>` = 0, outline_color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) |
  191. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  192. | |void| | :ref:`push_fgcolor<class_RichTextLabel_method_push_fgcolor>`\ (\ fgcolor\: :ref:`Color<class_Color>`\ ) |
  193. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  194. | |void| | :ref:`push_font<class_RichTextLabel_method_push_font>`\ (\ font\: :ref:`Font<class_Font>`, font_size\: :ref:`int<class_int>` = 0\ ) |
  195. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  196. | |void| | :ref:`push_font_size<class_RichTextLabel_method_push_font_size>`\ (\ font_size\: :ref:`int<class_int>`\ ) |
  197. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  198. | |void| | :ref:`push_hint<class_RichTextLabel_method_push_hint>`\ (\ description\: :ref:`String<class_String>`\ ) |
  199. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  200. | |void| | :ref:`push_indent<class_RichTextLabel_method_push_indent>`\ (\ level\: :ref:`int<class_int>`\ ) |
  201. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  202. | |void| | :ref:`push_italics<class_RichTextLabel_method_push_italics>`\ (\ ) |
  203. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  204. | |void| | :ref:`push_language<class_RichTextLabel_method_push_language>`\ (\ language\: :ref:`String<class_String>`\ ) |
  205. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  206. | |void| | :ref:`push_list<class_RichTextLabel_method_push_list>`\ (\ level\: :ref:`int<class_int>`, type\: :ref:`ListType<enum_RichTextLabel_ListType>`, capitalize\: :ref:`bool<class_bool>`, bullet\: :ref:`String<class_String>` = "•"\ ) |
  207. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  208. | |void| | :ref:`push_meta<class_RichTextLabel_method_push_meta>`\ (\ data\: :ref:`Variant<class_Variant>`, underline_mode\: :ref:`MetaUnderline<enum_RichTextLabel_MetaUnderline>` = 1, tooltip\: :ref:`String<class_String>` = ""\ ) |
  209. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  210. | |void| | :ref:`push_mono<class_RichTextLabel_method_push_mono>`\ (\ ) |
  211. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  212. | |void| | :ref:`push_normal<class_RichTextLabel_method_push_normal>`\ (\ ) |
  213. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  214. | |void| | :ref:`push_outline_color<class_RichTextLabel_method_push_outline_color>`\ (\ color\: :ref:`Color<class_Color>`\ ) |
  215. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  216. | |void| | :ref:`push_outline_size<class_RichTextLabel_method_push_outline_size>`\ (\ outline_size\: :ref:`int<class_int>`\ ) |
  217. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  218. | |void| | :ref:`push_paragraph<class_RichTextLabel_method_push_paragraph>`\ (\ alignment\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`, base_direction\: :ref:`TextDirection<enum_Control_TextDirection>` = 0, language\: :ref:`String<class_String>` = "", st_parser\: :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` = 0, justification_flags\: |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] = 163, tab_stops\: :ref:`PackedFloat32Array<class_PackedFloat32Array>` = PackedFloat32Array()\ ) |
  219. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  220. | |void| | :ref:`push_strikethrough<class_RichTextLabel_method_push_strikethrough>`\ (\ color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) |
  221. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  222. | |void| | :ref:`push_table<class_RichTextLabel_method_push_table>`\ (\ columns\: :ref:`int<class_int>`, inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 0, align_to_row\: :ref:`int<class_int>` = -1, name\: :ref:`String<class_String>` = ""\ ) |
  223. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  224. | |void| | :ref:`push_underline<class_RichTextLabel_method_push_underline>`\ (\ color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) |
  225. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  226. | |void| | :ref:`reload_effects<class_RichTextLabel_method_reload_effects>`\ (\ ) |
  227. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  228. | :ref:`bool<class_bool>` | :ref:`remove_paragraph<class_RichTextLabel_method_remove_paragraph>`\ (\ paragraph\: :ref:`int<class_int>`, no_invalidate\: :ref:`bool<class_bool>` = false\ ) |
  229. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  230. | |void| | :ref:`scroll_to_line<class_RichTextLabel_method_scroll_to_line>`\ (\ line\: :ref:`int<class_int>`\ ) |
  231. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  232. | |void| | :ref:`scroll_to_paragraph<class_RichTextLabel_method_scroll_to_paragraph>`\ (\ paragraph\: :ref:`int<class_int>`\ ) |
  233. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  234. | |void| | :ref:`scroll_to_selection<class_RichTextLabel_method_scroll_to_selection>`\ (\ ) |
  235. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  236. | |void| | :ref:`select_all<class_RichTextLabel_method_select_all>`\ (\ ) |
  237. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  238. | |void| | :ref:`set_cell_border_color<class_RichTextLabel_method_set_cell_border_color>`\ (\ color\: :ref:`Color<class_Color>`\ ) |
  239. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  240. | |void| | :ref:`set_cell_padding<class_RichTextLabel_method_set_cell_padding>`\ (\ padding\: :ref:`Rect2<class_Rect2>`\ ) |
  241. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  242. | |void| | :ref:`set_cell_row_background_color<class_RichTextLabel_method_set_cell_row_background_color>`\ (\ odd_row_bg\: :ref:`Color<class_Color>`, even_row_bg\: :ref:`Color<class_Color>`\ ) |
  243. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  244. | |void| | :ref:`set_cell_size_override<class_RichTextLabel_method_set_cell_size_override>`\ (\ min_size\: :ref:`Vector2<class_Vector2>`, max_size\: :ref:`Vector2<class_Vector2>`\ ) |
  245. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  246. | |void| | :ref:`set_table_column_expand<class_RichTextLabel_method_set_table_column_expand>`\ (\ column\: :ref:`int<class_int>`, expand\: :ref:`bool<class_bool>`, ratio\: :ref:`int<class_int>` = 1, shrink\: :ref:`bool<class_bool>` = true\ ) |
  247. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  248. | |void| | :ref:`set_table_column_name<class_RichTextLabel_method_set_table_column_name>`\ (\ column\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) |
  249. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  250. | |void| | :ref:`update_image<class_RichTextLabel_method_update_image>`\ (\ key\: :ref:`Variant<class_Variant>`, mask\: |bitfield|\[:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>`\], image\: :ref:`Texture2D<class_Texture2D>`, width\: :ref:`int<class_int>` = 0, height\: :ref:`int<class_int>` = 0, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), pad\: :ref:`bool<class_bool>` = false, tooltip\: :ref:`String<class_String>` = "", size_in_percent\: :ref:`bool<class_bool>` = false\ ) |
  251. +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  252. .. rst-class:: classref-reftable-group
  253. Theme Properties
  254. ----------------
  255. .. table::
  256. :widths: auto
  257. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  258. | :ref:`Color<class_Color>` | :ref:`default_color<class_RichTextLabel_theme_color_default_color>` | ``Color(1, 1, 1, 1)`` |
  259. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  260. | :ref:`Color<class_Color>` | :ref:`font_outline_color<class_RichTextLabel_theme_color_font_outline_color>` | ``Color(0, 0, 0, 1)`` |
  261. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  262. | :ref:`Color<class_Color>` | :ref:`font_selected_color<class_RichTextLabel_theme_color_font_selected_color>` | ``Color(0, 0, 0, 0)`` |
  263. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  264. | :ref:`Color<class_Color>` | :ref:`font_shadow_color<class_RichTextLabel_theme_color_font_shadow_color>` | ``Color(0, 0, 0, 0)`` |
  265. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  266. | :ref:`Color<class_Color>` | :ref:`selection_color<class_RichTextLabel_theme_color_selection_color>` | ``Color(0.1, 0.1, 1, 0.8)`` |
  267. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  268. | :ref:`Color<class_Color>` | :ref:`table_border<class_RichTextLabel_theme_color_table_border>` | ``Color(0, 0, 0, 0)`` |
  269. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  270. | :ref:`Color<class_Color>` | :ref:`table_even_row_bg<class_RichTextLabel_theme_color_table_even_row_bg>` | ``Color(0, 0, 0, 0)`` |
  271. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  272. | :ref:`Color<class_Color>` | :ref:`table_odd_row_bg<class_RichTextLabel_theme_color_table_odd_row_bg>` | ``Color(0, 0, 0, 0)`` |
  273. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  274. | :ref:`int<class_int>` | :ref:`line_separation<class_RichTextLabel_theme_constant_line_separation>` | ``0`` |
  275. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  276. | :ref:`int<class_int>` | :ref:`outline_size<class_RichTextLabel_theme_constant_outline_size>` | ``0`` |
  277. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  278. | :ref:`int<class_int>` | :ref:`shadow_offset_x<class_RichTextLabel_theme_constant_shadow_offset_x>` | ``1`` |
  279. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  280. | :ref:`int<class_int>` | :ref:`shadow_offset_y<class_RichTextLabel_theme_constant_shadow_offset_y>` | ``1`` |
  281. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  282. | :ref:`int<class_int>` | :ref:`shadow_outline_size<class_RichTextLabel_theme_constant_shadow_outline_size>` | ``1`` |
  283. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  284. | :ref:`int<class_int>` | :ref:`strikethrough_alpha<class_RichTextLabel_theme_constant_strikethrough_alpha>` | ``50`` |
  285. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  286. | :ref:`int<class_int>` | :ref:`table_h_separation<class_RichTextLabel_theme_constant_table_h_separation>` | ``3`` |
  287. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  288. | :ref:`int<class_int>` | :ref:`table_v_separation<class_RichTextLabel_theme_constant_table_v_separation>` | ``3`` |
  289. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  290. | :ref:`int<class_int>` | :ref:`text_highlight_h_padding<class_RichTextLabel_theme_constant_text_highlight_h_padding>` | ``3`` |
  291. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  292. | :ref:`int<class_int>` | :ref:`text_highlight_v_padding<class_RichTextLabel_theme_constant_text_highlight_v_padding>` | ``3`` |
  293. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  294. | :ref:`int<class_int>` | :ref:`underline_alpha<class_RichTextLabel_theme_constant_underline_alpha>` | ``50`` |
  295. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  296. | :ref:`Font<class_Font>` | :ref:`bold_font<class_RichTextLabel_theme_font_bold_font>` | |
  297. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  298. | :ref:`Font<class_Font>` | :ref:`bold_italics_font<class_RichTextLabel_theme_font_bold_italics_font>` | |
  299. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  300. | :ref:`Font<class_Font>` | :ref:`italics_font<class_RichTextLabel_theme_font_italics_font>` | |
  301. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  302. | :ref:`Font<class_Font>` | :ref:`mono_font<class_RichTextLabel_theme_font_mono_font>` | |
  303. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  304. | :ref:`Font<class_Font>` | :ref:`normal_font<class_RichTextLabel_theme_font_normal_font>` | |
  305. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  306. | :ref:`int<class_int>` | :ref:`bold_font_size<class_RichTextLabel_theme_font_size_bold_font_size>` | |
  307. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  308. | :ref:`int<class_int>` | :ref:`bold_italics_font_size<class_RichTextLabel_theme_font_size_bold_italics_font_size>` | |
  309. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  310. | :ref:`int<class_int>` | :ref:`italics_font_size<class_RichTextLabel_theme_font_size_italics_font_size>` | |
  311. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  312. | :ref:`int<class_int>` | :ref:`mono_font_size<class_RichTextLabel_theme_font_size_mono_font_size>` | |
  313. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  314. | :ref:`int<class_int>` | :ref:`normal_font_size<class_RichTextLabel_theme_font_size_normal_font_size>` | |
  315. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  316. | :ref:`StyleBox<class_StyleBox>` | :ref:`focus<class_RichTextLabel_theme_style_focus>` | |
  317. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  318. | :ref:`StyleBox<class_StyleBox>` | :ref:`normal<class_RichTextLabel_theme_style_normal>` | |
  319. +---------------------------------+----------------------------------------------------------------------------------------------+-----------------------------+
  320. .. rst-class:: classref-section-separator
  321. ----
  322. .. rst-class:: classref-descriptions-group
  323. Signals
  324. -------
  325. .. _class_RichTextLabel_signal_finished:
  326. .. rst-class:: classref-signal
  327. **finished**\ (\ ) :ref:`🔗<class_RichTextLabel_signal_finished>`
  328. Triggered when the document is fully loaded.
  329. \ **Note:** This can happen before the text is processed for drawing. Scrolling values may not be valid until the document is drawn for the first time after this signal.
  330. .. rst-class:: classref-item-separator
  331. ----
  332. .. _class_RichTextLabel_signal_meta_clicked:
  333. .. rst-class:: classref-signal
  334. **meta_clicked**\ (\ meta\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_RichTextLabel_signal_meta_clicked>`
  335. Triggered when the user clicks on content between meta (URL) tags. If the meta is defined in BBCode, e.g. ``[url={"key": "value"}]Text[/url]``, then the parameter for this signal will always be a :ref:`String<class_String>` type. If a particular type or an object is desired, the :ref:`push_meta()<class_RichTextLabel_method_push_meta>` method must be used to manually insert the data into the tag stack. Alternatively, you can convert the :ref:`String<class_String>` input to the desired type based on its contents (such as calling :ref:`JSON.parse()<class_JSON_method_parse>` on it).
  336. For example, the following method can be connected to :ref:`meta_clicked<class_RichTextLabel_signal_meta_clicked>` to open clicked URLs using the user's default web browser:
  337. .. tabs::
  338. .. code-tab:: gdscript
  339. # This assumes RichTextLabel's `meta_clicked` signal was connected to
  340. # the function below using the signal connection dialog.
  341. func _richtextlabel_on_meta_clicked(meta):
  342. # `meta` is of Variant type, so convert it to a String to avoid script errors at run-time.
  343. OS.shell_open(str(meta))
  344. .. rst-class:: classref-item-separator
  345. ----
  346. .. _class_RichTextLabel_signal_meta_hover_ended:
  347. .. rst-class:: classref-signal
  348. **meta_hover_ended**\ (\ meta\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_RichTextLabel_signal_meta_hover_ended>`
  349. Triggers when the mouse exits a meta tag.
  350. .. rst-class:: classref-item-separator
  351. ----
  352. .. _class_RichTextLabel_signal_meta_hover_started:
  353. .. rst-class:: classref-signal
  354. **meta_hover_started**\ (\ meta\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_RichTextLabel_signal_meta_hover_started>`
  355. Triggers when the mouse enters a meta tag.
  356. .. rst-class:: classref-section-separator
  357. ----
  358. .. rst-class:: classref-descriptions-group
  359. Enumerations
  360. ------------
  361. .. _enum_RichTextLabel_ListType:
  362. .. rst-class:: classref-enumeration
  363. enum **ListType**: :ref:`🔗<enum_RichTextLabel_ListType>`
  364. .. _class_RichTextLabel_constant_LIST_NUMBERS:
  365. .. rst-class:: classref-enumeration-constant
  366. :ref:`ListType<enum_RichTextLabel_ListType>` **LIST_NUMBERS** = ``0``
  367. Each list item has a number marker.
  368. .. _class_RichTextLabel_constant_LIST_LETTERS:
  369. .. rst-class:: classref-enumeration-constant
  370. :ref:`ListType<enum_RichTextLabel_ListType>` **LIST_LETTERS** = ``1``
  371. Each list item has a letter marker.
  372. .. _class_RichTextLabel_constant_LIST_ROMAN:
  373. .. rst-class:: classref-enumeration-constant
  374. :ref:`ListType<enum_RichTextLabel_ListType>` **LIST_ROMAN** = ``2``
  375. Each list item has a roman number marker.
  376. .. _class_RichTextLabel_constant_LIST_DOTS:
  377. .. rst-class:: classref-enumeration-constant
  378. :ref:`ListType<enum_RichTextLabel_ListType>` **LIST_DOTS** = ``3``
  379. Each list item has a filled circle marker.
  380. .. rst-class:: classref-item-separator
  381. ----
  382. .. _enum_RichTextLabel_MenuItems:
  383. .. rst-class:: classref-enumeration
  384. enum **MenuItems**: :ref:`🔗<enum_RichTextLabel_MenuItems>`
  385. .. _class_RichTextLabel_constant_MENU_COPY:
  386. .. rst-class:: classref-enumeration-constant
  387. :ref:`MenuItems<enum_RichTextLabel_MenuItems>` **MENU_COPY** = ``0``
  388. Copies the selected text.
  389. .. _class_RichTextLabel_constant_MENU_SELECT_ALL:
  390. .. rst-class:: classref-enumeration-constant
  391. :ref:`MenuItems<enum_RichTextLabel_MenuItems>` **MENU_SELECT_ALL** = ``1``
  392. Selects the whole **RichTextLabel** text.
  393. .. _class_RichTextLabel_constant_MENU_MAX:
  394. .. rst-class:: classref-enumeration-constant
  395. :ref:`MenuItems<enum_RichTextLabel_MenuItems>` **MENU_MAX** = ``2``
  396. Represents the size of the :ref:`MenuItems<enum_RichTextLabel_MenuItems>` enum.
  397. .. rst-class:: classref-item-separator
  398. ----
  399. .. _enum_RichTextLabel_MetaUnderline:
  400. .. rst-class:: classref-enumeration
  401. enum **MetaUnderline**: :ref:`🔗<enum_RichTextLabel_MetaUnderline>`
  402. .. _class_RichTextLabel_constant_META_UNDERLINE_NEVER:
  403. .. rst-class:: classref-enumeration-constant
  404. :ref:`MetaUnderline<enum_RichTextLabel_MetaUnderline>` **META_UNDERLINE_NEVER** = ``0``
  405. Meta tag does not display an underline, even if :ref:`meta_underlined<class_RichTextLabel_property_meta_underlined>` is ``true``.
  406. .. _class_RichTextLabel_constant_META_UNDERLINE_ALWAYS:
  407. .. rst-class:: classref-enumeration-constant
  408. :ref:`MetaUnderline<enum_RichTextLabel_MetaUnderline>` **META_UNDERLINE_ALWAYS** = ``1``
  409. If :ref:`meta_underlined<class_RichTextLabel_property_meta_underlined>` is ``true``, meta tag always display an underline.
  410. .. _class_RichTextLabel_constant_META_UNDERLINE_ON_HOVER:
  411. .. rst-class:: classref-enumeration-constant
  412. :ref:`MetaUnderline<enum_RichTextLabel_MetaUnderline>` **META_UNDERLINE_ON_HOVER** = ``2``
  413. If :ref:`meta_underlined<class_RichTextLabel_property_meta_underlined>` is ``true``, meta tag display an underline when the mouse cursor is over it.
  414. .. rst-class:: classref-item-separator
  415. ----
  416. .. _enum_RichTextLabel_ImageUpdateMask:
  417. .. rst-class:: classref-enumeration
  418. flags **ImageUpdateMask**: :ref:`🔗<enum_RichTextLabel_ImageUpdateMask>`
  419. .. _class_RichTextLabel_constant_UPDATE_TEXTURE:
  420. .. rst-class:: classref-enumeration-constant
  421. :ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_TEXTURE** = ``1``
  422. If this bit is set, :ref:`update_image()<class_RichTextLabel_method_update_image>` changes image texture.
  423. .. _class_RichTextLabel_constant_UPDATE_SIZE:
  424. .. rst-class:: classref-enumeration-constant
  425. :ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_SIZE** = ``2``
  426. If this bit is set, :ref:`update_image()<class_RichTextLabel_method_update_image>` changes image size.
  427. .. _class_RichTextLabel_constant_UPDATE_COLOR:
  428. .. rst-class:: classref-enumeration-constant
  429. :ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_COLOR** = ``4``
  430. If this bit is set, :ref:`update_image()<class_RichTextLabel_method_update_image>` changes image color.
  431. .. _class_RichTextLabel_constant_UPDATE_ALIGNMENT:
  432. .. rst-class:: classref-enumeration-constant
  433. :ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_ALIGNMENT** = ``8``
  434. If this bit is set, :ref:`update_image()<class_RichTextLabel_method_update_image>` changes image inline alignment.
  435. .. _class_RichTextLabel_constant_UPDATE_REGION:
  436. .. rst-class:: classref-enumeration-constant
  437. :ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_REGION** = ``16``
  438. If this bit is set, :ref:`update_image()<class_RichTextLabel_method_update_image>` changes image texture region.
  439. .. _class_RichTextLabel_constant_UPDATE_PAD:
  440. .. rst-class:: classref-enumeration-constant
  441. :ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_PAD** = ``32``
  442. If this bit is set, :ref:`update_image()<class_RichTextLabel_method_update_image>` changes image padding.
  443. .. _class_RichTextLabel_constant_UPDATE_TOOLTIP:
  444. .. rst-class:: classref-enumeration-constant
  445. :ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_TOOLTIP** = ``64``
  446. If this bit is set, :ref:`update_image()<class_RichTextLabel_method_update_image>` changes image tooltip.
  447. .. _class_RichTextLabel_constant_UPDATE_WIDTH_IN_PERCENT:
  448. .. rst-class:: classref-enumeration-constant
  449. :ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>` **UPDATE_WIDTH_IN_PERCENT** = ``128``
  450. If this bit is set, :ref:`update_image()<class_RichTextLabel_method_update_image>` changes image width from/to percents.
  451. .. rst-class:: classref-section-separator
  452. ----
  453. .. rst-class:: classref-descriptions-group
  454. Property Descriptions
  455. ---------------------
  456. .. _class_RichTextLabel_property_autowrap_mode:
  457. .. rst-class:: classref-property
  458. :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` **autowrap_mode** = ``3`` :ref:`🔗<class_RichTextLabel_property_autowrap_mode>`
  459. .. rst-class:: classref-property-setget
  460. - |void| **set_autowrap_mode**\ (\ value\: :ref:`AutowrapMode<enum_TextServer_AutowrapMode>`\ )
  461. - :ref:`AutowrapMode<enum_TextServer_AutowrapMode>` **get_autowrap_mode**\ (\ )
  462. If set to something other than :ref:`TextServer.AUTOWRAP_OFF<class_TextServer_constant_AUTOWRAP_OFF>`, the text gets wrapped inside the node's bounding rectangle.
  463. .. rst-class:: classref-item-separator
  464. ----
  465. .. _class_RichTextLabel_property_autowrap_trim_flags:
  466. .. rst-class:: classref-property
  467. |bitfield|\[:ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>`\] **autowrap_trim_flags** = ``192`` :ref:`🔗<class_RichTextLabel_property_autowrap_trim_flags>`
  468. .. rst-class:: classref-property-setget
  469. - |void| **set_autowrap_trim_flags**\ (\ value\: |bitfield|\[:ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>`\]\ )
  470. - |bitfield|\[:ref:`LineBreakFlag<enum_TextServer_LineBreakFlag>`\] **get_autowrap_trim_flags**\ (\ )
  471. Autowrap space trimming flags. See :ref:`TextServer.BREAK_TRIM_START_EDGE_SPACES<class_TextServer_constant_BREAK_TRIM_START_EDGE_SPACES>` and :ref:`TextServer.BREAK_TRIM_END_EDGE_SPACES<class_TextServer_constant_BREAK_TRIM_END_EDGE_SPACES>` for more info.
  472. .. rst-class:: classref-item-separator
  473. ----
  474. .. _class_RichTextLabel_property_bbcode_enabled:
  475. .. rst-class:: classref-property
  476. :ref:`bool<class_bool>` **bbcode_enabled** = ``false`` :ref:`🔗<class_RichTextLabel_property_bbcode_enabled>`
  477. .. rst-class:: classref-property-setget
  478. - |void| **set_use_bbcode**\ (\ value\: :ref:`bool<class_bool>`\ )
  479. - :ref:`bool<class_bool>` **is_using_bbcode**\ (\ )
  480. If ``true``, the label uses BBCode formatting.
  481. \ **Note:** This only affects the contents of :ref:`text<class_RichTextLabel_property_text>`, not the tag stack.
  482. .. rst-class:: classref-item-separator
  483. ----
  484. .. _class_RichTextLabel_property_context_menu_enabled:
  485. .. rst-class:: classref-property
  486. :ref:`bool<class_bool>` **context_menu_enabled** = ``false`` :ref:`🔗<class_RichTextLabel_property_context_menu_enabled>`
  487. .. rst-class:: classref-property-setget
  488. - |void| **set_context_menu_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  489. - :ref:`bool<class_bool>` **is_context_menu_enabled**\ (\ )
  490. If ``true``, a right-click displays the context menu.
  491. .. rst-class:: classref-item-separator
  492. ----
  493. .. _class_RichTextLabel_property_custom_effects:
  494. .. rst-class:: classref-property
  495. :ref:`Array<class_Array>` **custom_effects** = ``[]`` :ref:`🔗<class_RichTextLabel_property_custom_effects>`
  496. .. rst-class:: classref-property-setget
  497. - |void| **set_effects**\ (\ value\: :ref:`Array<class_Array>`\ )
  498. - :ref:`Array<class_Array>` **get_effects**\ (\ )
  499. The currently installed custom effects. This is an array of :ref:`RichTextEffect<class_RichTextEffect>`\ s.
  500. To add a custom effect, it's more convenient to use :ref:`install_effect()<class_RichTextLabel_method_install_effect>`.
  501. .. rst-class:: classref-item-separator
  502. ----
  503. .. _class_RichTextLabel_property_deselect_on_focus_loss_enabled:
  504. .. rst-class:: classref-property
  505. :ref:`bool<class_bool>` **deselect_on_focus_loss_enabled** = ``true`` :ref:`🔗<class_RichTextLabel_property_deselect_on_focus_loss_enabled>`
  506. .. rst-class:: classref-property-setget
  507. - |void| **set_deselect_on_focus_loss_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  508. - :ref:`bool<class_bool>` **is_deselect_on_focus_loss_enabled**\ (\ )
  509. If ``true``, the selected text will be deselected when focus is lost.
  510. .. rst-class:: classref-item-separator
  511. ----
  512. .. _class_RichTextLabel_property_drag_and_drop_selection_enabled:
  513. .. rst-class:: classref-property
  514. :ref:`bool<class_bool>` **drag_and_drop_selection_enabled** = ``true`` :ref:`🔗<class_RichTextLabel_property_drag_and_drop_selection_enabled>`
  515. .. rst-class:: classref-property-setget
  516. - |void| **set_drag_and_drop_selection_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  517. - :ref:`bool<class_bool>` **is_drag_and_drop_selection_enabled**\ (\ )
  518. If ``true``, allow drag and drop of selected text.
  519. .. rst-class:: classref-item-separator
  520. ----
  521. .. _class_RichTextLabel_property_fit_content:
  522. .. rst-class:: classref-property
  523. :ref:`bool<class_bool>` **fit_content** = ``false`` :ref:`🔗<class_RichTextLabel_property_fit_content>`
  524. .. rst-class:: classref-property-setget
  525. - |void| **set_fit_content**\ (\ value\: :ref:`bool<class_bool>`\ )
  526. - :ref:`bool<class_bool>` **is_fit_content_enabled**\ (\ )
  527. If ``true``, the label's minimum size will be automatically updated to fit its content, matching the behavior of :ref:`Label<class_Label>`.
  528. .. rst-class:: classref-item-separator
  529. ----
  530. .. _class_RichTextLabel_property_hint_underlined:
  531. .. rst-class:: classref-property
  532. :ref:`bool<class_bool>` **hint_underlined** = ``true`` :ref:`🔗<class_RichTextLabel_property_hint_underlined>`
  533. .. rst-class:: classref-property-setget
  534. - |void| **set_hint_underline**\ (\ value\: :ref:`bool<class_bool>`\ )
  535. - :ref:`bool<class_bool>` **is_hint_underlined**\ (\ )
  536. If ``true``, the label underlines hint tags such as ``[hint=description]{text}[/hint]``.
  537. .. rst-class:: classref-item-separator
  538. ----
  539. .. _class_RichTextLabel_property_horizontal_alignment:
  540. .. rst-class:: classref-property
  541. :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **horizontal_alignment** = ``0`` :ref:`🔗<class_RichTextLabel_property_horizontal_alignment>`
  542. .. rst-class:: classref-property-setget
  543. - |void| **set_horizontal_alignment**\ (\ value\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`\ )
  544. - :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **get_horizontal_alignment**\ (\ )
  545. Controls the text's horizontal alignment. Supports left, center, right, and fill, or justify.
  546. .. rst-class:: classref-item-separator
  547. ----
  548. .. _class_RichTextLabel_property_justification_flags:
  549. .. rst-class:: classref-property
  550. |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] **justification_flags** = ``163`` :ref:`🔗<class_RichTextLabel_property_justification_flags>`
  551. .. rst-class:: classref-property-setget
  552. - |void| **set_justification_flags**\ (\ value\: |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\]\ )
  553. - |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] **get_justification_flags**\ (\ )
  554. Line fill alignment rules.
  555. .. rst-class:: classref-item-separator
  556. ----
  557. .. _class_RichTextLabel_property_language:
  558. .. rst-class:: classref-property
  559. :ref:`String<class_String>` **language** = ``""`` :ref:`🔗<class_RichTextLabel_property_language>`
  560. .. rst-class:: classref-property-setget
  561. - |void| **set_language**\ (\ value\: :ref:`String<class_String>`\ )
  562. - :ref:`String<class_String>` **get_language**\ (\ )
  563. Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
  564. .. rst-class:: classref-item-separator
  565. ----
  566. .. _class_RichTextLabel_property_meta_underlined:
  567. .. rst-class:: classref-property
  568. :ref:`bool<class_bool>` **meta_underlined** = ``true`` :ref:`🔗<class_RichTextLabel_property_meta_underlined>`
  569. .. rst-class:: classref-property-setget
  570. - |void| **set_meta_underline**\ (\ value\: :ref:`bool<class_bool>`\ )
  571. - :ref:`bool<class_bool>` **is_meta_underlined**\ (\ )
  572. If ``true``, the label underlines meta tags such as ``[url]{text}[/url]``. These tags can call a function when clicked if :ref:`meta_clicked<class_RichTextLabel_signal_meta_clicked>` is connected to a function.
  573. .. rst-class:: classref-item-separator
  574. ----
  575. .. _class_RichTextLabel_property_progress_bar_delay:
  576. .. rst-class:: classref-property
  577. :ref:`int<class_int>` **progress_bar_delay** = ``1000`` :ref:`🔗<class_RichTextLabel_property_progress_bar_delay>`
  578. .. rst-class:: classref-property-setget
  579. - |void| **set_progress_bar_delay**\ (\ value\: :ref:`int<class_int>`\ )
  580. - :ref:`int<class_int>` **get_progress_bar_delay**\ (\ )
  581. The delay after which the loading progress bar is displayed, in milliseconds. Set to ``-1`` to disable progress bar entirely.
  582. \ **Note:** Progress bar is displayed only if :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled.
  583. .. rst-class:: classref-item-separator
  584. ----
  585. .. _class_RichTextLabel_property_scroll_active:
  586. .. rst-class:: classref-property
  587. :ref:`bool<class_bool>` **scroll_active** = ``true`` :ref:`🔗<class_RichTextLabel_property_scroll_active>`
  588. .. rst-class:: classref-property-setget
  589. - |void| **set_scroll_active**\ (\ value\: :ref:`bool<class_bool>`\ )
  590. - :ref:`bool<class_bool>` **is_scroll_active**\ (\ )
  591. If ``true``, the scrollbar is visible. Setting this to ``false`` does not block scrolling completely. See :ref:`scroll_to_line()<class_RichTextLabel_method_scroll_to_line>`.
  592. .. rst-class:: classref-item-separator
  593. ----
  594. .. _class_RichTextLabel_property_scroll_following:
  595. .. rst-class:: classref-property
  596. :ref:`bool<class_bool>` **scroll_following** = ``false`` :ref:`🔗<class_RichTextLabel_property_scroll_following>`
  597. .. rst-class:: classref-property-setget
  598. - |void| **set_scroll_follow**\ (\ value\: :ref:`bool<class_bool>`\ )
  599. - :ref:`bool<class_bool>` **is_scroll_following**\ (\ )
  600. If ``true``, the window scrolls down to display new content automatically.
  601. .. rst-class:: classref-item-separator
  602. ----
  603. .. _class_RichTextLabel_property_selection_enabled:
  604. .. rst-class:: classref-property
  605. :ref:`bool<class_bool>` **selection_enabled** = ``false`` :ref:`🔗<class_RichTextLabel_property_selection_enabled>`
  606. .. rst-class:: classref-property-setget
  607. - |void| **set_selection_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  608. - :ref:`bool<class_bool>` **is_selection_enabled**\ (\ )
  609. If ``true``, the label allows text selection.
  610. .. rst-class:: classref-item-separator
  611. ----
  612. .. _class_RichTextLabel_property_shortcut_keys_enabled:
  613. .. rst-class:: classref-property
  614. :ref:`bool<class_bool>` **shortcut_keys_enabled** = ``true`` :ref:`🔗<class_RichTextLabel_property_shortcut_keys_enabled>`
  615. .. rst-class:: classref-property-setget
  616. - |void| **set_shortcut_keys_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  617. - :ref:`bool<class_bool>` **is_shortcut_keys_enabled**\ (\ )
  618. If ``true``, shortcut keys for context menu items are enabled, even if the context menu is disabled.
  619. .. rst-class:: classref-item-separator
  620. ----
  621. .. _class_RichTextLabel_property_structured_text_bidi_override:
  622. .. rst-class:: classref-property
  623. :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` **structured_text_bidi_override** = ``0`` :ref:`🔗<class_RichTextLabel_property_structured_text_bidi_override>`
  624. .. rst-class:: classref-property-setget
  625. - |void| **set_structured_text_bidi_override**\ (\ value\: :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>`\ )
  626. - :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` **get_structured_text_bidi_override**\ (\ )
  627. Set BiDi algorithm override for the structured text.
  628. .. rst-class:: classref-item-separator
  629. ----
  630. .. _class_RichTextLabel_property_structured_text_bidi_override_options:
  631. .. rst-class:: classref-property
  632. :ref:`Array<class_Array>` **structured_text_bidi_override_options** = ``[]`` :ref:`🔗<class_RichTextLabel_property_structured_text_bidi_override_options>`
  633. .. rst-class:: classref-property-setget
  634. - |void| **set_structured_text_bidi_override_options**\ (\ value\: :ref:`Array<class_Array>`\ )
  635. - :ref:`Array<class_Array>` **get_structured_text_bidi_override_options**\ (\ )
  636. Set additional options for BiDi override.
  637. .. rst-class:: classref-item-separator
  638. ----
  639. .. _class_RichTextLabel_property_tab_size:
  640. .. rst-class:: classref-property
  641. :ref:`int<class_int>` **tab_size** = ``4`` :ref:`🔗<class_RichTextLabel_property_tab_size>`
  642. .. rst-class:: classref-property-setget
  643. - |void| **set_tab_size**\ (\ value\: :ref:`int<class_int>`\ )
  644. - :ref:`int<class_int>` **get_tab_size**\ (\ )
  645. The number of spaces associated with a single tab length. Does not affect ``\t`` in text tags, only indent tags.
  646. .. rst-class:: classref-item-separator
  647. ----
  648. .. _class_RichTextLabel_property_tab_stops:
  649. .. rst-class:: classref-property
  650. :ref:`PackedFloat32Array<class_PackedFloat32Array>` **tab_stops** = ``PackedFloat32Array()`` :ref:`🔗<class_RichTextLabel_property_tab_stops>`
  651. .. rst-class:: classref-property-setget
  652. - |void| **set_tab_stops**\ (\ value\: :ref:`PackedFloat32Array<class_PackedFloat32Array>`\ )
  653. - :ref:`PackedFloat32Array<class_PackedFloat32Array>` **get_tab_stops**\ (\ )
  654. Aligns text to the given tab-stops.
  655. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedFloat32Array<class_PackedFloat32Array>` for more details.
  656. .. rst-class:: classref-item-separator
  657. ----
  658. .. _class_RichTextLabel_property_text:
  659. .. rst-class:: classref-property
  660. :ref:`String<class_String>` **text** = ``""`` :ref:`🔗<class_RichTextLabel_property_text>`
  661. .. rst-class:: classref-property-setget
  662. - |void| **set_text**\ (\ value\: :ref:`String<class_String>`\ )
  663. - :ref:`String<class_String>` **get_text**\ (\ )
  664. The label's text in BBCode format. Is not representative of manual modifications to the internal tag stack. Erases changes made by other methods when edited.
  665. \ **Note:** If :ref:`bbcode_enabled<class_RichTextLabel_property_bbcode_enabled>` is ``true``, it is unadvised to use the ``+=`` operator with :ref:`text<class_RichTextLabel_property_text>` (e.g. ``text += "some string"``) as it replaces the whole text and can cause slowdowns. It will also erase all BBCode that was added to stack using ``push_*`` methods. Use :ref:`append_text()<class_RichTextLabel_method_append_text>` for adding text instead, unless you absolutely need to close a tag that was opened in an earlier method call.
  666. .. rst-class:: classref-item-separator
  667. ----
  668. .. _class_RichTextLabel_property_text_direction:
  669. .. rst-class:: classref-property
  670. :ref:`TextDirection<enum_Control_TextDirection>` **text_direction** = ``0`` :ref:`🔗<class_RichTextLabel_property_text_direction>`
  671. .. rst-class:: classref-property-setget
  672. - |void| **set_text_direction**\ (\ value\: :ref:`TextDirection<enum_Control_TextDirection>`\ )
  673. - :ref:`TextDirection<enum_Control_TextDirection>` **get_text_direction**\ (\ )
  674. Base text writing direction.
  675. .. rst-class:: classref-item-separator
  676. ----
  677. .. _class_RichTextLabel_property_threaded:
  678. .. rst-class:: classref-property
  679. :ref:`bool<class_bool>` **threaded** = ``false`` :ref:`🔗<class_RichTextLabel_property_threaded>`
  680. .. rst-class:: classref-property-setget
  681. - |void| **set_threaded**\ (\ value\: :ref:`bool<class_bool>`\ )
  682. - :ref:`bool<class_bool>` **is_threaded**\ (\ )
  683. If ``true``, text processing is done in a background thread.
  684. .. rst-class:: classref-item-separator
  685. ----
  686. .. _class_RichTextLabel_property_vertical_alignment:
  687. .. rst-class:: classref-property
  688. :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` **vertical_alignment** = ``0`` :ref:`🔗<class_RichTextLabel_property_vertical_alignment>`
  689. .. rst-class:: classref-property-setget
  690. - |void| **set_vertical_alignment**\ (\ value\: :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>`\ )
  691. - :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` **get_vertical_alignment**\ (\ )
  692. Controls the text's vertical alignment. Supports top, center, bottom, and fill.
  693. .. rst-class:: classref-item-separator
  694. ----
  695. .. _class_RichTextLabel_property_visible_characters:
  696. .. rst-class:: classref-property
  697. :ref:`int<class_int>` **visible_characters** = ``-1`` :ref:`🔗<class_RichTextLabel_property_visible_characters>`
  698. .. rst-class:: classref-property-setget
  699. - |void| **set_visible_characters**\ (\ value\: :ref:`int<class_int>`\ )
  700. - :ref:`int<class_int>` **get_visible_characters**\ (\ )
  701. The number of characters to display. If set to ``-1``, all characters are displayed. This can be useful when animating the text appearing in a dialog box.
  702. \ **Note:** Setting this property updates :ref:`visible_ratio<class_RichTextLabel_property_visible_ratio>` accordingly.
  703. .. rst-class:: classref-item-separator
  704. ----
  705. .. _class_RichTextLabel_property_visible_characters_behavior:
  706. .. rst-class:: classref-property
  707. :ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>` **visible_characters_behavior** = ``0`` :ref:`🔗<class_RichTextLabel_property_visible_characters_behavior>`
  708. .. rst-class:: classref-property-setget
  709. - |void| **set_visible_characters_behavior**\ (\ value\: :ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>`\ )
  710. - :ref:`VisibleCharactersBehavior<enum_TextServer_VisibleCharactersBehavior>` **get_visible_characters_behavior**\ (\ )
  711. The clipping behavior when :ref:`visible_characters<class_RichTextLabel_property_visible_characters>` or :ref:`visible_ratio<class_RichTextLabel_property_visible_ratio>` is set.
  712. .. rst-class:: classref-item-separator
  713. ----
  714. .. _class_RichTextLabel_property_visible_ratio:
  715. .. rst-class:: classref-property
  716. :ref:`float<class_float>` **visible_ratio** = ``1.0`` :ref:`🔗<class_RichTextLabel_property_visible_ratio>`
  717. .. rst-class:: classref-property-setget
  718. - |void| **set_visible_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  719. - :ref:`float<class_float>` **get_visible_ratio**\ (\ )
  720. The fraction of characters to display, relative to the total number of characters (see :ref:`get_total_character_count()<class_RichTextLabel_method_get_total_character_count>`). If set to ``1.0``, all characters are displayed. If set to ``0.5``, only half of the characters will be displayed. This can be useful when animating the text appearing in a dialog box.
  721. \ **Note:** Setting this property updates :ref:`visible_characters<class_RichTextLabel_property_visible_characters>` accordingly.
  722. .. rst-class:: classref-section-separator
  723. ----
  724. .. rst-class:: classref-descriptions-group
  725. Method Descriptions
  726. -------------------
  727. .. _class_RichTextLabel_method_add_image:
  728. .. rst-class:: classref-method
  729. |void| **add_image**\ (\ image\: :ref:`Texture2D<class_Texture2D>`, width\: :ref:`int<class_int>` = 0, height\: :ref:`int<class_int>` = 0, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), key\: :ref:`Variant<class_Variant>` = null, pad\: :ref:`bool<class_bool>` = false, tooltip\: :ref:`String<class_String>` = "", size_in_percent\: :ref:`bool<class_bool>` = false, alt_text\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_RichTextLabel_method_add_image>`
  730. Adds an image's opening and closing tags to the tag stack, optionally providing a ``width`` and ``height`` to resize the image, a ``color`` to tint the image and a ``region`` to only use parts of the image.
  731. If ``width`` or ``height`` is set to 0, the image size will be adjusted in order to keep the original aspect ratio.
  732. If ``width`` and ``height`` are not set, but ``region`` is, the region's rect will be used.
  733. \ ``key`` is an optional identifier, that can be used to modify the image via :ref:`update_image()<class_RichTextLabel_method_update_image>`.
  734. If ``pad`` is set, and the image is smaller than the size specified by ``width`` and ``height``, the image padding is added to match the size instead of upscaling.
  735. If ``size_in_percent`` is set, ``width`` and ``height`` values are percentages of the control width instead of pixels.
  736. \ ``alt_text`` is used as the image description for assistive apps.
  737. .. rst-class:: classref-item-separator
  738. ----
  739. .. _class_RichTextLabel_method_add_text:
  740. .. rst-class:: classref-method
  741. |void| **add_text**\ (\ text\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_add_text>`
  742. Adds raw non-BBCode-parsed text to the tag stack.
  743. .. rst-class:: classref-item-separator
  744. ----
  745. .. _class_RichTextLabel_method_append_text:
  746. .. rst-class:: classref-method
  747. |void| **append_text**\ (\ bbcode\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_append_text>`
  748. Parses ``bbcode`` and adds tags to the tag stack as needed.
  749. \ **Note:** Using this method, you can't close a tag that was opened in a previous :ref:`append_text()<class_RichTextLabel_method_append_text>` call. This is done to improve performance, especially when updating large RichTextLabels since rebuilding the whole BBCode every time would be slower. If you absolutely need to close a tag in a future method call, append the :ref:`text<class_RichTextLabel_property_text>` instead of using :ref:`append_text()<class_RichTextLabel_method_append_text>`.
  750. .. rst-class:: classref-item-separator
  751. ----
  752. .. _class_RichTextLabel_method_clear:
  753. .. rst-class:: classref-method
  754. |void| **clear**\ (\ ) :ref:`🔗<class_RichTextLabel_method_clear>`
  755. Clears the tag stack, causing the label to display nothing.
  756. \ **Note:** This method does not affect :ref:`text<class_RichTextLabel_property_text>`, and its contents will show again if the label is redrawn. However, setting :ref:`text<class_RichTextLabel_property_text>` to an empty :ref:`String<class_String>` also clears the stack.
  757. .. rst-class:: classref-item-separator
  758. ----
  759. .. _class_RichTextLabel_method_deselect:
  760. .. rst-class:: classref-method
  761. |void| **deselect**\ (\ ) :ref:`🔗<class_RichTextLabel_method_deselect>`
  762. Clears the current selection.
  763. .. rst-class:: classref-item-separator
  764. ----
  765. .. _class_RichTextLabel_method_get_character_line:
  766. .. rst-class:: classref-method
  767. :ref:`int<class_int>` **get_character_line**\ (\ character\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_get_character_line>`
  768. Returns the line number of the character position provided. Line and character numbers are both zero-indexed.
  769. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether document is fully loaded.
  770. .. rst-class:: classref-item-separator
  771. ----
  772. .. _class_RichTextLabel_method_get_character_paragraph:
  773. .. rst-class:: classref-method
  774. :ref:`int<class_int>` **get_character_paragraph**\ (\ character\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_get_character_paragraph>`
  775. Returns the paragraph number of the character position provided. Paragraph and character numbers are both zero-indexed.
  776. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether document is fully loaded.
  777. .. rst-class:: classref-item-separator
  778. ----
  779. .. _class_RichTextLabel_method_get_content_height:
  780. .. rst-class:: classref-method
  781. :ref:`int<class_int>` **get_content_height**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_content_height>`
  782. Returns the height of the content.
  783. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether document is fully loaded.
  784. .. rst-class:: classref-item-separator
  785. ----
  786. .. _class_RichTextLabel_method_get_content_width:
  787. .. rst-class:: classref-method
  788. :ref:`int<class_int>` **get_content_width**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_content_width>`
  789. Returns the width of the content.
  790. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether document is fully loaded.
  791. .. rst-class:: classref-item-separator
  792. ----
  793. .. _class_RichTextLabel_method_get_line_count:
  794. .. rst-class:: classref-method
  795. :ref:`int<class_int>` **get_line_count**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_line_count>`
  796. Returns the total number of lines in the text. Wrapped text is counted as multiple lines.
  797. \ **Note:** If :ref:`visible_characters_behavior<class_RichTextLabel_property_visible_characters_behavior>` is set to :ref:`TextServer.VC_CHARS_BEFORE_SHAPING<class_TextServer_constant_VC_CHARS_BEFORE_SHAPING>` only visible wrapped lines are counted.
  798. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether document is fully loaded.
  799. .. rst-class:: classref-item-separator
  800. ----
  801. .. _class_RichTextLabel_method_get_line_height:
  802. .. rst-class:: classref-method
  803. :ref:`int<class_int>` **get_line_height**\ (\ line\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_line_height>`
  804. Returns the height of the line found at the provided index.
  805. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether the document is fully loaded.
  806. .. rst-class:: classref-item-separator
  807. ----
  808. .. _class_RichTextLabel_method_get_line_offset:
  809. .. rst-class:: classref-method
  810. :ref:`float<class_float>` **get_line_offset**\ (\ line\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_get_line_offset>`
  811. Returns the vertical offset of the line found at the provided index.
  812. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether document is fully loaded.
  813. .. rst-class:: classref-item-separator
  814. ----
  815. .. _class_RichTextLabel_method_get_line_range:
  816. .. rst-class:: classref-method
  817. :ref:`Vector2i<class_Vector2i>` **get_line_range**\ (\ line\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_get_line_range>`
  818. Returns the indexes of the first and last visible characters for the given ``line``, as a :ref:`Vector2i<class_Vector2i>`.
  819. \ **Note:** If :ref:`visible_characters_behavior<class_RichTextLabel_property_visible_characters_behavior>` is set to :ref:`TextServer.VC_CHARS_BEFORE_SHAPING<class_TextServer_constant_VC_CHARS_BEFORE_SHAPING>` only visible wrapped lines are counted.
  820. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether document is fully loaded.
  821. .. rst-class:: classref-item-separator
  822. ----
  823. .. _class_RichTextLabel_method_get_line_width:
  824. .. rst-class:: classref-method
  825. :ref:`int<class_int>` **get_line_width**\ (\ line\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_line_width>`
  826. Returns the width of the line found at the provided index.
  827. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether the document is fully loaded.
  828. .. rst-class:: classref-item-separator
  829. ----
  830. .. _class_RichTextLabel_method_get_menu:
  831. .. rst-class:: classref-method
  832. :ref:`PopupMenu<class_PopupMenu>` **get_menu**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_menu>`
  833. Returns the :ref:`PopupMenu<class_PopupMenu>` of this **RichTextLabel**. By default, this menu is displayed when right-clicking on the **RichTextLabel**.
  834. You can add custom menu items or remove standard ones. Make sure your IDs don't conflict with the standard ones (see :ref:`MenuItems<enum_RichTextLabel_MenuItems>`). For example:
  835. .. tabs::
  836. .. code-tab:: gdscript
  837. func _ready():
  838. var menu = get_menu()
  839. # Remove "Select All" item.
  840. menu.remove_item(MENU_SELECT_ALL)
  841. # Add custom items.
  842. menu.add_separator()
  843. menu.add_item("Duplicate Text", MENU_MAX + 1)
  844. # Connect callback.
  845. menu.id_pressed.connect(_on_item_pressed)
  846. func _on_item_pressed(id):
  847. if id == MENU_MAX + 1:
  848. add_text("\n" + get_parsed_text())
  849. .. code-tab:: csharp
  850. public override void _Ready()
  851. {
  852. var menu = GetMenu();
  853. // Remove "Select All" item.
  854. menu.RemoveItem(RichTextLabel.MenuItems.SelectAll);
  855. // Add custom items.
  856. menu.AddSeparator();
  857. menu.AddItem("Duplicate Text", RichTextLabel.MenuItems.Max + 1);
  858. // Add event handler.
  859. menu.IdPressed += OnItemPressed;
  860. }
  861. public void OnItemPressed(int id)
  862. {
  863. if (id == TextEdit.MenuItems.Max + 1)
  864. {
  865. AddText("\n" + GetParsedText());
  866. }
  867. }
  868. \ **Warning:** This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their :ref:`Window.visible<class_Window_property_visible>` property.
  869. .. rst-class:: classref-item-separator
  870. ----
  871. .. _class_RichTextLabel_method_get_paragraph_count:
  872. .. rst-class:: classref-method
  873. :ref:`int<class_int>` **get_paragraph_count**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_paragraph_count>`
  874. Returns the total number of paragraphs (newlines or ``p`` tags in the tag stack's text tags). Considers wrapped text as one paragraph.
  875. .. rst-class:: classref-item-separator
  876. ----
  877. .. _class_RichTextLabel_method_get_paragraph_offset:
  878. .. rst-class:: classref-method
  879. :ref:`float<class_float>` **get_paragraph_offset**\ (\ paragraph\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_get_paragraph_offset>`
  880. Returns the vertical offset of the paragraph found at the provided index.
  881. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether document is fully loaded.
  882. .. rst-class:: classref-item-separator
  883. ----
  884. .. _class_RichTextLabel_method_get_parsed_text:
  885. .. rst-class:: classref-method
  886. :ref:`String<class_String>` **get_parsed_text**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_parsed_text>`
  887. Returns the text without BBCode mark-up.
  888. .. rst-class:: classref-item-separator
  889. ----
  890. .. _class_RichTextLabel_method_get_selected_text:
  891. .. rst-class:: classref-method
  892. :ref:`String<class_String>` **get_selected_text**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_selected_text>`
  893. Returns the current selection text. Does not include BBCodes.
  894. .. rst-class:: classref-item-separator
  895. ----
  896. .. _class_RichTextLabel_method_get_selection_from:
  897. .. rst-class:: classref-method
  898. :ref:`int<class_int>` **get_selection_from**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_selection_from>`
  899. Returns the current selection first character index if a selection is active, ``-1`` otherwise. Does not include BBCodes.
  900. .. rst-class:: classref-item-separator
  901. ----
  902. .. _class_RichTextLabel_method_get_selection_line_offset:
  903. .. rst-class:: classref-method
  904. :ref:`float<class_float>` **get_selection_line_offset**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_selection_line_offset>`
  905. Returns the current selection vertical line offset if a selection is active, ``-1.0`` otherwise.
  906. .. rst-class:: classref-item-separator
  907. ----
  908. .. _class_RichTextLabel_method_get_selection_to:
  909. .. rst-class:: classref-method
  910. :ref:`int<class_int>` **get_selection_to**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_selection_to>`
  911. Returns the current selection last character index if a selection is active, ``-1`` otherwise. Does not include BBCodes.
  912. .. rst-class:: classref-item-separator
  913. ----
  914. .. _class_RichTextLabel_method_get_total_character_count:
  915. .. rst-class:: classref-method
  916. :ref:`int<class_int>` **get_total_character_count**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_total_character_count>`
  917. Returns the total number of characters from text tags. Does not include BBCodes.
  918. .. rst-class:: classref-item-separator
  919. ----
  920. .. _class_RichTextLabel_method_get_v_scroll_bar:
  921. .. rst-class:: classref-method
  922. :ref:`VScrollBar<class_VScrollBar>` **get_v_scroll_bar**\ (\ ) :ref:`🔗<class_RichTextLabel_method_get_v_scroll_bar>`
  923. Returns the vertical scrollbar.
  924. \ **Warning:** This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their :ref:`CanvasItem.visible<class_CanvasItem_property_visible>` property.
  925. .. rst-class:: classref-item-separator
  926. ----
  927. .. _class_RichTextLabel_method_get_visible_line_count:
  928. .. rst-class:: classref-method
  929. :ref:`int<class_int>` **get_visible_line_count**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_visible_line_count>`
  930. Returns the number of visible lines.
  931. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether document is fully loaded.
  932. .. rst-class:: classref-item-separator
  933. ----
  934. .. _class_RichTextLabel_method_get_visible_paragraph_count:
  935. .. rst-class:: classref-method
  936. :ref:`int<class_int>` **get_visible_paragraph_count**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_get_visible_paragraph_count>`
  937. Returns the number of visible paragraphs. A paragraph is considered visible if at least one of its lines is visible.
  938. \ **Note:** If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, this method returns a value for the loaded part of the document. Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` or :ref:`finished<class_RichTextLabel_signal_finished>` to determine whether document is fully loaded.
  939. .. rst-class:: classref-item-separator
  940. ----
  941. .. _class_RichTextLabel_method_install_effect:
  942. .. rst-class:: classref-method
  943. |void| **install_effect**\ (\ effect\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_RichTextLabel_method_install_effect>`
  944. Installs a custom effect. This can also be done in the Inspector through the :ref:`custom_effects<class_RichTextLabel_property_custom_effects>` property. ``effect`` should be a valid :ref:`RichTextEffect<class_RichTextEffect>`.
  945. \ **Example:** With the following script extending from :ref:`RichTextEffect<class_RichTextEffect>`:
  946. ::
  947. # effect.gd
  948. class_name MyCustomEffect
  949. extends RichTextEffect
  950. var bbcode = "my_custom_effect"
  951. # ...
  952. The above effect can be installed in **RichTextLabel** from a script:
  953. ::
  954. # rich_text_label.gd
  955. extends RichTextLabel
  956. func _ready():
  957. install_effect(MyCustomEffect.new())
  958. # Alternatively, if not using `class_name` in the script that extends RichTextEffect:
  959. install_effect(preload("res://effect.gd").new())
  960. .. rst-class:: classref-item-separator
  961. ----
  962. .. _class_RichTextLabel_method_invalidate_paragraph:
  963. .. rst-class:: classref-method
  964. :ref:`bool<class_bool>` **invalidate_paragraph**\ (\ paragraph\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_invalidate_paragraph>`
  965. Invalidates ``paragraph`` and all subsequent paragraphs cache.
  966. .. rst-class:: classref-item-separator
  967. ----
  968. .. _class_RichTextLabel_method_is_finished:
  969. .. rst-class:: classref-method
  970. :ref:`bool<class_bool>` **is_finished**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_is_finished>`
  971. If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, returns ``true`` if the background thread has finished text processing, otherwise always return ``true``.
  972. .. rst-class:: classref-item-separator
  973. ----
  974. .. _class_RichTextLabel_method_is_menu_visible:
  975. .. rst-class:: classref-method
  976. :ref:`bool<class_bool>` **is_menu_visible**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_is_menu_visible>`
  977. Returns whether the menu is visible. Use this instead of ``get_menu().visible`` to improve performance (so the creation of the menu is avoided).
  978. .. rst-class:: classref-item-separator
  979. ----
  980. .. _class_RichTextLabel_method_is_ready:
  981. .. rst-class:: classref-method
  982. :ref:`bool<class_bool>` **is_ready**\ (\ ) |const| :ref:`🔗<class_RichTextLabel_method_is_ready>`
  983. **Deprecated:** Use :ref:`is_finished()<class_RichTextLabel_method_is_finished>` instead.
  984. If :ref:`threaded<class_RichTextLabel_property_threaded>` is enabled, returns ``true`` if the background thread has finished text processing, otherwise always return ``true``.
  985. .. rst-class:: classref-item-separator
  986. ----
  987. .. _class_RichTextLabel_method_menu_option:
  988. .. rst-class:: classref-method
  989. |void| **menu_option**\ (\ option\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_menu_option>`
  990. Executes a given action as defined in the :ref:`MenuItems<enum_RichTextLabel_MenuItems>` enum.
  991. .. rst-class:: classref-item-separator
  992. ----
  993. .. _class_RichTextLabel_method_newline:
  994. .. rst-class:: classref-method
  995. |void| **newline**\ (\ ) :ref:`🔗<class_RichTextLabel_method_newline>`
  996. Adds a newline tag to the tag stack.
  997. .. rst-class:: classref-item-separator
  998. ----
  999. .. _class_RichTextLabel_method_parse_bbcode:
  1000. .. rst-class:: classref-method
  1001. |void| **parse_bbcode**\ (\ bbcode\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_parse_bbcode>`
  1002. The assignment version of :ref:`append_text()<class_RichTextLabel_method_append_text>`. Clears the tag stack and inserts the new content.
  1003. .. rst-class:: classref-item-separator
  1004. ----
  1005. .. _class_RichTextLabel_method_parse_expressions_for_values:
  1006. .. rst-class:: classref-method
  1007. :ref:`Dictionary<class_Dictionary>` **parse_expressions_for_values**\ (\ expressions\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) :ref:`🔗<class_RichTextLabel_method_parse_expressions_for_values>`
  1008. Parses BBCode parameter ``expressions`` into a dictionary.
  1009. .. rst-class:: classref-item-separator
  1010. ----
  1011. .. _class_RichTextLabel_method_pop:
  1012. .. rst-class:: classref-method
  1013. |void| **pop**\ (\ ) :ref:`🔗<class_RichTextLabel_method_pop>`
  1014. Terminates the current tag. Use after ``push_*`` methods to close BBCodes manually. Does not need to follow ``add_*`` methods.
  1015. .. rst-class:: classref-item-separator
  1016. ----
  1017. .. _class_RichTextLabel_method_pop_all:
  1018. .. rst-class:: classref-method
  1019. |void| **pop_all**\ (\ ) :ref:`🔗<class_RichTextLabel_method_pop_all>`
  1020. Terminates all tags opened by ``push_*`` methods.
  1021. .. rst-class:: classref-item-separator
  1022. ----
  1023. .. _class_RichTextLabel_method_pop_context:
  1024. .. rst-class:: classref-method
  1025. |void| **pop_context**\ (\ ) :ref:`🔗<class_RichTextLabel_method_pop_context>`
  1026. Terminates tags opened after the last :ref:`push_context()<class_RichTextLabel_method_push_context>` call (including context marker), or all tags if there's no context marker on the stack.
  1027. .. rst-class:: classref-item-separator
  1028. ----
  1029. .. _class_RichTextLabel_method_push_bgcolor:
  1030. .. rst-class:: classref-method
  1031. |void| **push_bgcolor**\ (\ bgcolor\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_push_bgcolor>`
  1032. Adds a ``[bgcolor]`` tag to the tag stack.
  1033. \ **Note:** The background color has padding applied by default, which is controlled using :ref:`text_highlight_h_padding<class_RichTextLabel_theme_constant_text_highlight_h_padding>` and :ref:`text_highlight_v_padding<class_RichTextLabel_theme_constant_text_highlight_v_padding>`. This can lead to overlapping highlights if background colors are placed on neighboring lines/columns, so consider setting those theme items to ``0`` if you want to avoid this.
  1034. .. rst-class:: classref-item-separator
  1035. ----
  1036. .. _class_RichTextLabel_method_push_bold:
  1037. .. rst-class:: classref-method
  1038. |void| **push_bold**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_bold>`
  1039. Adds a ``[font]`` tag with a bold font to the tag stack. This is the same as adding a ``[b]`` tag if not currently in a ``[i]`` tag.
  1040. .. rst-class:: classref-item-separator
  1041. ----
  1042. .. _class_RichTextLabel_method_push_bold_italics:
  1043. .. rst-class:: classref-method
  1044. |void| **push_bold_italics**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_bold_italics>`
  1045. Adds a ``[font]`` tag with a bold italics font to the tag stack.
  1046. .. rst-class:: classref-item-separator
  1047. ----
  1048. .. _class_RichTextLabel_method_push_cell:
  1049. .. rst-class:: classref-method
  1050. |void| **push_cell**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_cell>`
  1051. Adds a ``[cell]`` tag to the tag stack. Must be inside a ``[table]`` tag. See :ref:`push_table()<class_RichTextLabel_method_push_table>` for details. Use :ref:`set_table_column_expand()<class_RichTextLabel_method_set_table_column_expand>` to set column expansion ratio, :ref:`set_cell_border_color()<class_RichTextLabel_method_set_cell_border_color>` to set cell border, :ref:`set_cell_row_background_color()<class_RichTextLabel_method_set_cell_row_background_color>` to set cell background, :ref:`set_cell_size_override()<class_RichTextLabel_method_set_cell_size_override>` to override cell size, and :ref:`set_cell_padding()<class_RichTextLabel_method_set_cell_padding>` to set padding.
  1052. .. rst-class:: classref-item-separator
  1053. ----
  1054. .. _class_RichTextLabel_method_push_color:
  1055. .. rst-class:: classref-method
  1056. |void| **push_color**\ (\ color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_push_color>`
  1057. Adds a ``[color]`` tag to the tag stack.
  1058. .. rst-class:: classref-item-separator
  1059. ----
  1060. .. _class_RichTextLabel_method_push_context:
  1061. .. rst-class:: classref-method
  1062. |void| **push_context**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_context>`
  1063. Adds a context marker to the tag stack. See :ref:`pop_context()<class_RichTextLabel_method_pop_context>`.
  1064. .. rst-class:: classref-item-separator
  1065. ----
  1066. .. _class_RichTextLabel_method_push_customfx:
  1067. .. rst-class:: classref-method
  1068. |void| **push_customfx**\ (\ effect\: :ref:`RichTextEffect<class_RichTextEffect>`, env\: :ref:`Dictionary<class_Dictionary>`\ ) :ref:`🔗<class_RichTextLabel_method_push_customfx>`
  1069. Adds a custom effect tag to the tag stack. The effect does not need to be in :ref:`custom_effects<class_RichTextLabel_property_custom_effects>`. The environment is directly passed to the effect.
  1070. .. rst-class:: classref-item-separator
  1071. ----
  1072. .. _class_RichTextLabel_method_push_dropcap:
  1073. .. rst-class:: classref-method
  1074. |void| **push_dropcap**\ (\ string\: :ref:`String<class_String>`, font\: :ref:`Font<class_Font>`, size\: :ref:`int<class_int>`, dropcap_margins\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), outline_size\: :ref:`int<class_int>` = 0, outline_color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) :ref:`🔗<class_RichTextLabel_method_push_dropcap>`
  1075. Adds a ``[dropcap]`` tag to the tag stack. Drop cap (dropped capital) is a decorative element at the beginning of a paragraph that is larger than the rest of the text.
  1076. .. rst-class:: classref-item-separator
  1077. ----
  1078. .. _class_RichTextLabel_method_push_fgcolor:
  1079. .. rst-class:: classref-method
  1080. |void| **push_fgcolor**\ (\ fgcolor\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_push_fgcolor>`
  1081. Adds a ``[fgcolor]`` tag to the tag stack.
  1082. \ **Note:** The foreground color has padding applied by default, which is controlled using :ref:`text_highlight_h_padding<class_RichTextLabel_theme_constant_text_highlight_h_padding>` and :ref:`text_highlight_v_padding<class_RichTextLabel_theme_constant_text_highlight_v_padding>`. This can lead to overlapping highlights if foreground colors are placed on neighboring lines/columns, so consider setting those theme items to ``0`` if you want to avoid this.
  1083. .. rst-class:: classref-item-separator
  1084. ----
  1085. .. _class_RichTextLabel_method_push_font:
  1086. .. rst-class:: classref-method
  1087. |void| **push_font**\ (\ font\: :ref:`Font<class_Font>`, font_size\: :ref:`int<class_int>` = 0\ ) :ref:`🔗<class_RichTextLabel_method_push_font>`
  1088. Adds a ``[font]`` tag to the tag stack. Overrides default fonts for its duration.
  1089. Passing ``0`` to ``font_size`` will use the existing default font size.
  1090. .. rst-class:: classref-item-separator
  1091. ----
  1092. .. _class_RichTextLabel_method_push_font_size:
  1093. .. rst-class:: classref-method
  1094. |void| **push_font_size**\ (\ font_size\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_push_font_size>`
  1095. Adds a ``[font_size]`` tag to the tag stack. Overrides default font size for its duration.
  1096. .. rst-class:: classref-item-separator
  1097. ----
  1098. .. _class_RichTextLabel_method_push_hint:
  1099. .. rst-class:: classref-method
  1100. |void| **push_hint**\ (\ description\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_push_hint>`
  1101. Adds a ``[hint]`` tag to the tag stack. Same as BBCode ``[hint=something]{text}[/hint]``.
  1102. .. rst-class:: classref-item-separator
  1103. ----
  1104. .. _class_RichTextLabel_method_push_indent:
  1105. .. rst-class:: classref-method
  1106. |void| **push_indent**\ (\ level\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_push_indent>`
  1107. Adds an ``[indent]`` tag to the tag stack. Multiplies ``level`` by current :ref:`tab_size<class_RichTextLabel_property_tab_size>` to determine new margin length.
  1108. .. rst-class:: classref-item-separator
  1109. ----
  1110. .. _class_RichTextLabel_method_push_italics:
  1111. .. rst-class:: classref-method
  1112. |void| **push_italics**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_italics>`
  1113. Adds a ``[font]`` tag with an italics font to the tag stack. This is the same as adding an ``[i]`` tag if not currently in a ``[b]`` tag.
  1114. .. rst-class:: classref-item-separator
  1115. ----
  1116. .. _class_RichTextLabel_method_push_language:
  1117. .. rst-class:: classref-method
  1118. |void| **push_language**\ (\ language\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_push_language>`
  1119. Adds language code used for text shaping algorithm and Open-Type font features.
  1120. .. rst-class:: classref-item-separator
  1121. ----
  1122. .. _class_RichTextLabel_method_push_list:
  1123. .. rst-class:: classref-method
  1124. |void| **push_list**\ (\ level\: :ref:`int<class_int>`, type\: :ref:`ListType<enum_RichTextLabel_ListType>`, capitalize\: :ref:`bool<class_bool>`, bullet\: :ref:`String<class_String>` = "•"\ ) :ref:`🔗<class_RichTextLabel_method_push_list>`
  1125. Adds ``[ol]`` or ``[ul]`` tag to the tag stack. Multiplies ``level`` by current :ref:`tab_size<class_RichTextLabel_property_tab_size>` to determine new margin length.
  1126. .. rst-class:: classref-item-separator
  1127. ----
  1128. .. _class_RichTextLabel_method_push_meta:
  1129. .. rst-class:: classref-method
  1130. |void| **push_meta**\ (\ data\: :ref:`Variant<class_Variant>`, underline_mode\: :ref:`MetaUnderline<enum_RichTextLabel_MetaUnderline>` = 1, tooltip\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_RichTextLabel_method_push_meta>`
  1131. Adds a meta tag to the tag stack. Similar to the BBCode ``[url=something]{text}[/url]``, but supports non-:ref:`String<class_String>` metadata types.
  1132. If :ref:`meta_underlined<class_RichTextLabel_property_meta_underlined>` is ``true``, meta tags display an underline. This behavior can be customized with ``underline_mode``.
  1133. \ **Note:** Meta tags do nothing by default when clicked. To assign behavior when clicked, connect :ref:`meta_clicked<class_RichTextLabel_signal_meta_clicked>` to a function that is called when the meta tag is clicked.
  1134. .. rst-class:: classref-item-separator
  1135. ----
  1136. .. _class_RichTextLabel_method_push_mono:
  1137. .. rst-class:: classref-method
  1138. |void| **push_mono**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_mono>`
  1139. Adds a ``[font]`` tag with a monospace font to the tag stack.
  1140. .. rst-class:: classref-item-separator
  1141. ----
  1142. .. _class_RichTextLabel_method_push_normal:
  1143. .. rst-class:: classref-method
  1144. |void| **push_normal**\ (\ ) :ref:`🔗<class_RichTextLabel_method_push_normal>`
  1145. Adds a ``[font]`` tag with a normal font to the tag stack.
  1146. .. rst-class:: classref-item-separator
  1147. ----
  1148. .. _class_RichTextLabel_method_push_outline_color:
  1149. .. rst-class:: classref-method
  1150. |void| **push_outline_color**\ (\ color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_push_outline_color>`
  1151. Adds a ``[outline_color]`` tag to the tag stack. Adds text outline for its duration.
  1152. .. rst-class:: classref-item-separator
  1153. ----
  1154. .. _class_RichTextLabel_method_push_outline_size:
  1155. .. rst-class:: classref-method
  1156. |void| **push_outline_size**\ (\ outline_size\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_push_outline_size>`
  1157. Adds a ``[outline_size]`` tag to the tag stack. Overrides default text outline size for its duration.
  1158. .. rst-class:: classref-item-separator
  1159. ----
  1160. .. _class_RichTextLabel_method_push_paragraph:
  1161. .. rst-class:: classref-method
  1162. |void| **push_paragraph**\ (\ alignment\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`, base_direction\: :ref:`TextDirection<enum_Control_TextDirection>` = 0, language\: :ref:`String<class_String>` = "", st_parser\: :ref:`StructuredTextParser<enum_TextServer_StructuredTextParser>` = 0, justification_flags\: |bitfield|\[:ref:`JustificationFlag<enum_TextServer_JustificationFlag>`\] = 163, tab_stops\: :ref:`PackedFloat32Array<class_PackedFloat32Array>` = PackedFloat32Array()\ ) :ref:`🔗<class_RichTextLabel_method_push_paragraph>`
  1163. Adds a ``[p]`` tag to the tag stack.
  1164. .. rst-class:: classref-item-separator
  1165. ----
  1166. .. _class_RichTextLabel_method_push_strikethrough:
  1167. .. rst-class:: classref-method
  1168. |void| **push_strikethrough**\ (\ color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) :ref:`🔗<class_RichTextLabel_method_push_strikethrough>`
  1169. Adds a ``[s]`` tag to the tag stack. If ``color`` alpha value is zero, current font color with alpha multiplied by :ref:`strikethrough_alpha<class_RichTextLabel_theme_constant_strikethrough_alpha>` is used.
  1170. .. rst-class:: classref-item-separator
  1171. ----
  1172. .. _class_RichTextLabel_method_push_table:
  1173. .. rst-class:: classref-method
  1174. |void| **push_table**\ (\ columns\: :ref:`int<class_int>`, inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 0, align_to_row\: :ref:`int<class_int>` = -1, name\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_RichTextLabel_method_push_table>`
  1175. Adds a ``[table=columns,inline_align]`` tag to the tag stack. Use :ref:`set_table_column_expand()<class_RichTextLabel_method_set_table_column_expand>` to set column expansion ratio. Use :ref:`push_cell()<class_RichTextLabel_method_push_cell>` to add cells. ``name`` is used as the table name for assistive apps.
  1176. .. rst-class:: classref-item-separator
  1177. ----
  1178. .. _class_RichTextLabel_method_push_underline:
  1179. .. rst-class:: classref-method
  1180. |void| **push_underline**\ (\ color\: :ref:`Color<class_Color>` = Color(0, 0, 0, 0)\ ) :ref:`🔗<class_RichTextLabel_method_push_underline>`
  1181. Adds a ``[u]`` tag to the tag stack. If ``color`` alpha value is zero, current font color with alpha multiplied by :ref:`underline_alpha<class_RichTextLabel_theme_constant_underline_alpha>` is used.
  1182. .. rst-class:: classref-item-separator
  1183. ----
  1184. .. _class_RichTextLabel_method_reload_effects:
  1185. .. rst-class:: classref-method
  1186. |void| **reload_effects**\ (\ ) :ref:`🔗<class_RichTextLabel_method_reload_effects>`
  1187. Reloads custom effects. Useful when :ref:`custom_effects<class_RichTextLabel_property_custom_effects>` is modified manually.
  1188. .. rst-class:: classref-item-separator
  1189. ----
  1190. .. _class_RichTextLabel_method_remove_paragraph:
  1191. .. rst-class:: classref-method
  1192. :ref:`bool<class_bool>` **remove_paragraph**\ (\ paragraph\: :ref:`int<class_int>`, no_invalidate\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_RichTextLabel_method_remove_paragraph>`
  1193. Removes a paragraph of content from the label. Returns ``true`` if the paragraph exists.
  1194. The ``paragraph`` argument is the index of the paragraph to remove, it can take values in the interval ``[0, get_paragraph_count() - 1]``.
  1195. If ``no_invalidate`` is set to ``true``, cache for the subsequent paragraphs is not invalidated. Use it for faster updates if deleted paragraph is fully self-contained (have no unclosed tags), or this call is part of the complex edit operation and :ref:`invalidate_paragraph()<class_RichTextLabel_method_invalidate_paragraph>` will be called at the end of operation.
  1196. .. rst-class:: classref-item-separator
  1197. ----
  1198. .. _class_RichTextLabel_method_scroll_to_line:
  1199. .. rst-class:: classref-method
  1200. |void| **scroll_to_line**\ (\ line\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_scroll_to_line>`
  1201. Scrolls the window's top line to match ``line``.
  1202. .. rst-class:: classref-item-separator
  1203. ----
  1204. .. _class_RichTextLabel_method_scroll_to_paragraph:
  1205. .. rst-class:: classref-method
  1206. |void| **scroll_to_paragraph**\ (\ paragraph\: :ref:`int<class_int>`\ ) :ref:`🔗<class_RichTextLabel_method_scroll_to_paragraph>`
  1207. Scrolls the window's top line to match first line of the ``paragraph``.
  1208. .. rst-class:: classref-item-separator
  1209. ----
  1210. .. _class_RichTextLabel_method_scroll_to_selection:
  1211. .. rst-class:: classref-method
  1212. |void| **scroll_to_selection**\ (\ ) :ref:`🔗<class_RichTextLabel_method_scroll_to_selection>`
  1213. Scrolls to the beginning of the current selection.
  1214. .. rst-class:: classref-item-separator
  1215. ----
  1216. .. _class_RichTextLabel_method_select_all:
  1217. .. rst-class:: classref-method
  1218. |void| **select_all**\ (\ ) :ref:`🔗<class_RichTextLabel_method_select_all>`
  1219. Select all the text.
  1220. If :ref:`selection_enabled<class_RichTextLabel_property_selection_enabled>` is ``false``, no selection will occur.
  1221. .. rst-class:: classref-item-separator
  1222. ----
  1223. .. _class_RichTextLabel_method_set_cell_border_color:
  1224. .. rst-class:: classref-method
  1225. |void| **set_cell_border_color**\ (\ color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_set_cell_border_color>`
  1226. Sets color of a table cell border.
  1227. .. rst-class:: classref-item-separator
  1228. ----
  1229. .. _class_RichTextLabel_method_set_cell_padding:
  1230. .. rst-class:: classref-method
  1231. |void| **set_cell_padding**\ (\ padding\: :ref:`Rect2<class_Rect2>`\ ) :ref:`🔗<class_RichTextLabel_method_set_cell_padding>`
  1232. Sets inner padding of a table cell.
  1233. .. rst-class:: classref-item-separator
  1234. ----
  1235. .. _class_RichTextLabel_method_set_cell_row_background_color:
  1236. .. rst-class:: classref-method
  1237. |void| **set_cell_row_background_color**\ (\ odd_row_bg\: :ref:`Color<class_Color>`, even_row_bg\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_RichTextLabel_method_set_cell_row_background_color>`
  1238. Sets color of a table cell. Separate colors for alternating rows can be specified.
  1239. .. rst-class:: classref-item-separator
  1240. ----
  1241. .. _class_RichTextLabel_method_set_cell_size_override:
  1242. .. rst-class:: classref-method
  1243. |void| **set_cell_size_override**\ (\ min_size\: :ref:`Vector2<class_Vector2>`, max_size\: :ref:`Vector2<class_Vector2>`\ ) :ref:`🔗<class_RichTextLabel_method_set_cell_size_override>`
  1244. Sets minimum and maximum size overrides for a table cell.
  1245. .. rst-class:: classref-item-separator
  1246. ----
  1247. .. _class_RichTextLabel_method_set_table_column_expand:
  1248. .. rst-class:: classref-method
  1249. |void| **set_table_column_expand**\ (\ column\: :ref:`int<class_int>`, expand\: :ref:`bool<class_bool>`, ratio\: :ref:`int<class_int>` = 1, shrink\: :ref:`bool<class_bool>` = true\ ) :ref:`🔗<class_RichTextLabel_method_set_table_column_expand>`
  1250. Edits the selected column's expansion options. If ``expand`` is ``true``, the column expands in proportion to its expansion ratio versus the other columns' ratios.
  1251. For example, 2 columns with ratios 3 and 4 plus 70 pixels in available width would expand 30 and 40 pixels, respectively.
  1252. If ``expand`` is ``false``, the column will not contribute to the total ratio.
  1253. .. rst-class:: classref-item-separator
  1254. ----
  1255. .. _class_RichTextLabel_method_set_table_column_name:
  1256. .. rst-class:: classref-method
  1257. |void| **set_table_column_name**\ (\ column\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_RichTextLabel_method_set_table_column_name>`
  1258. Sets table column name for assistive apps.
  1259. .. rst-class:: classref-item-separator
  1260. ----
  1261. .. _class_RichTextLabel_method_update_image:
  1262. .. rst-class:: classref-method
  1263. |void| **update_image**\ (\ key\: :ref:`Variant<class_Variant>`, mask\: |bitfield|\[:ref:`ImageUpdateMask<enum_RichTextLabel_ImageUpdateMask>`\], image\: :ref:`Texture2D<class_Texture2D>`, width\: :ref:`int<class_int>` = 0, height\: :ref:`int<class_int>` = 0, color\: :ref:`Color<class_Color>` = Color(1, 1, 1, 1), inline_align\: :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` = 5, region\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), pad\: :ref:`bool<class_bool>` = false, tooltip\: :ref:`String<class_String>` = "", size_in_percent\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_RichTextLabel_method_update_image>`
  1264. Updates the existing images with the key ``key``. Only properties specified by ``mask`` bits are updated. See :ref:`add_image()<class_RichTextLabel_method_add_image>`.
  1265. .. rst-class:: classref-section-separator
  1266. ----
  1267. .. rst-class:: classref-descriptions-group
  1268. Theme Property Descriptions
  1269. ---------------------------
  1270. .. _class_RichTextLabel_theme_color_default_color:
  1271. .. rst-class:: classref-themeproperty
  1272. :ref:`Color<class_Color>` **default_color** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_RichTextLabel_theme_color_default_color>`
  1273. The default text color.
  1274. .. rst-class:: classref-item-separator
  1275. ----
  1276. .. _class_RichTextLabel_theme_color_font_outline_color:
  1277. .. rst-class:: classref-themeproperty
  1278. :ref:`Color<class_Color>` **font_outline_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗<class_RichTextLabel_theme_color_font_outline_color>`
  1279. The default tint of text outline.
  1280. .. rst-class:: classref-item-separator
  1281. ----
  1282. .. _class_RichTextLabel_theme_color_font_selected_color:
  1283. .. rst-class:: classref-themeproperty
  1284. :ref:`Color<class_Color>` **font_selected_color** = ``Color(0, 0, 0, 0)`` :ref:`🔗<class_RichTextLabel_theme_color_font_selected_color>`
  1285. The color of selected text, used when :ref:`selection_enabled<class_RichTextLabel_property_selection_enabled>` is ``true``. If equal to ``Color(0, 0, 0, 0)``, it will be ignored.
  1286. .. rst-class:: classref-item-separator
  1287. ----
  1288. .. _class_RichTextLabel_theme_color_font_shadow_color:
  1289. .. rst-class:: classref-themeproperty
  1290. :ref:`Color<class_Color>` **font_shadow_color** = ``Color(0, 0, 0, 0)`` :ref:`🔗<class_RichTextLabel_theme_color_font_shadow_color>`
  1291. The color of the font's shadow.
  1292. .. rst-class:: classref-item-separator
  1293. ----
  1294. .. _class_RichTextLabel_theme_color_selection_color:
  1295. .. rst-class:: classref-themeproperty
  1296. :ref:`Color<class_Color>` **selection_color** = ``Color(0.1, 0.1, 1, 0.8)`` :ref:`🔗<class_RichTextLabel_theme_color_selection_color>`
  1297. The color of the selection box.
  1298. .. rst-class:: classref-item-separator
  1299. ----
  1300. .. _class_RichTextLabel_theme_color_table_border:
  1301. .. rst-class:: classref-themeproperty
  1302. :ref:`Color<class_Color>` **table_border** = ``Color(0, 0, 0, 0)`` :ref:`🔗<class_RichTextLabel_theme_color_table_border>`
  1303. The default cell border color.
  1304. .. rst-class:: classref-item-separator
  1305. ----
  1306. .. _class_RichTextLabel_theme_color_table_even_row_bg:
  1307. .. rst-class:: classref-themeproperty
  1308. :ref:`Color<class_Color>` **table_even_row_bg** = ``Color(0, 0, 0, 0)`` :ref:`🔗<class_RichTextLabel_theme_color_table_even_row_bg>`
  1309. The default background color for even rows.
  1310. .. rst-class:: classref-item-separator
  1311. ----
  1312. .. _class_RichTextLabel_theme_color_table_odd_row_bg:
  1313. .. rst-class:: classref-themeproperty
  1314. :ref:`Color<class_Color>` **table_odd_row_bg** = ``Color(0, 0, 0, 0)`` :ref:`🔗<class_RichTextLabel_theme_color_table_odd_row_bg>`
  1315. The default background color for odd rows.
  1316. .. rst-class:: classref-item-separator
  1317. ----
  1318. .. _class_RichTextLabel_theme_constant_line_separation:
  1319. .. rst-class:: classref-themeproperty
  1320. :ref:`int<class_int>` **line_separation** = ``0`` :ref:`🔗<class_RichTextLabel_theme_constant_line_separation>`
  1321. Additional vertical spacing between lines (in pixels), spacing is added to line descent. This value can be negative.
  1322. .. rst-class:: classref-item-separator
  1323. ----
  1324. .. _class_RichTextLabel_theme_constant_outline_size:
  1325. .. rst-class:: classref-themeproperty
  1326. :ref:`int<class_int>` **outline_size** = ``0`` :ref:`🔗<class_RichTextLabel_theme_constant_outline_size>`
  1327. The size of the text outline.
  1328. \ **Note:** If using a font with :ref:`FontFile.multichannel_signed_distance_field<class_FontFile_property_multichannel_signed_distance_field>` enabled, its :ref:`FontFile.msdf_pixel_range<class_FontFile_property_msdf_pixel_range>` must be set to at least *twice* the value of :ref:`outline_size<class_RichTextLabel_theme_constant_outline_size>` for outline rendering to look correct. Otherwise, the outline may appear to be cut off earlier than intended.
  1329. .. rst-class:: classref-item-separator
  1330. ----
  1331. .. _class_RichTextLabel_theme_constant_shadow_offset_x:
  1332. .. rst-class:: classref-themeproperty
  1333. :ref:`int<class_int>` **shadow_offset_x** = ``1`` :ref:`🔗<class_RichTextLabel_theme_constant_shadow_offset_x>`
  1334. The horizontal offset of the font's shadow.
  1335. .. rst-class:: classref-item-separator
  1336. ----
  1337. .. _class_RichTextLabel_theme_constant_shadow_offset_y:
  1338. .. rst-class:: classref-themeproperty
  1339. :ref:`int<class_int>` **shadow_offset_y** = ``1`` :ref:`🔗<class_RichTextLabel_theme_constant_shadow_offset_y>`
  1340. The vertical offset of the font's shadow.
  1341. .. rst-class:: classref-item-separator
  1342. ----
  1343. .. _class_RichTextLabel_theme_constant_shadow_outline_size:
  1344. .. rst-class:: classref-themeproperty
  1345. :ref:`int<class_int>` **shadow_outline_size** = ``1`` :ref:`🔗<class_RichTextLabel_theme_constant_shadow_outline_size>`
  1346. The size of the shadow outline.
  1347. .. rst-class:: classref-item-separator
  1348. ----
  1349. .. _class_RichTextLabel_theme_constant_strikethrough_alpha:
  1350. .. rst-class:: classref-themeproperty
  1351. :ref:`int<class_int>` **strikethrough_alpha** = ``50`` :ref:`🔗<class_RichTextLabel_theme_constant_strikethrough_alpha>`
  1352. The default strikethrough color transparency (percent). For strikethroughs with a custom color, this theme item is only used if the custom color's alpha is ``0.0`` (fully transparent).
  1353. .. rst-class:: classref-item-separator
  1354. ----
  1355. .. _class_RichTextLabel_theme_constant_table_h_separation:
  1356. .. rst-class:: classref-themeproperty
  1357. :ref:`int<class_int>` **table_h_separation** = ``3`` :ref:`🔗<class_RichTextLabel_theme_constant_table_h_separation>`
  1358. The horizontal separation of elements in a table.
  1359. .. rst-class:: classref-item-separator
  1360. ----
  1361. .. _class_RichTextLabel_theme_constant_table_v_separation:
  1362. .. rst-class:: classref-themeproperty
  1363. :ref:`int<class_int>` **table_v_separation** = ``3`` :ref:`🔗<class_RichTextLabel_theme_constant_table_v_separation>`
  1364. The vertical separation of elements in a table.
  1365. .. rst-class:: classref-item-separator
  1366. ----
  1367. .. _class_RichTextLabel_theme_constant_text_highlight_h_padding:
  1368. .. rst-class:: classref-themeproperty
  1369. :ref:`int<class_int>` **text_highlight_h_padding** = ``3`` :ref:`🔗<class_RichTextLabel_theme_constant_text_highlight_h_padding>`
  1370. The horizontal padding around boxes drawn by the ``[fgcolor]`` and ``[bgcolor]`` tags. This does not affect the appearance of text selection. To avoid any risk of neighboring highlights overlapping each other, set this to ``0`` to disable padding.
  1371. .. rst-class:: classref-item-separator
  1372. ----
  1373. .. _class_RichTextLabel_theme_constant_text_highlight_v_padding:
  1374. .. rst-class:: classref-themeproperty
  1375. :ref:`int<class_int>` **text_highlight_v_padding** = ``3`` :ref:`🔗<class_RichTextLabel_theme_constant_text_highlight_v_padding>`
  1376. The vertical padding around boxes drawn by the ``[fgcolor]`` and ``[bgcolor]`` tags. This does not affect the appearance of text selection. To avoid any risk of neighboring highlights overlapping each other, set this to ``0`` to disable padding.
  1377. .. rst-class:: classref-item-separator
  1378. ----
  1379. .. _class_RichTextLabel_theme_constant_underline_alpha:
  1380. .. rst-class:: classref-themeproperty
  1381. :ref:`int<class_int>` **underline_alpha** = ``50`` :ref:`🔗<class_RichTextLabel_theme_constant_underline_alpha>`
  1382. The default underline color transparency (percent). For underlines with a custom color, this theme item is only used if the custom color's alpha is ``0.0`` (fully transparent).
  1383. .. rst-class:: classref-item-separator
  1384. ----
  1385. .. _class_RichTextLabel_theme_font_bold_font:
  1386. .. rst-class:: classref-themeproperty
  1387. :ref:`Font<class_Font>` **bold_font** :ref:`🔗<class_RichTextLabel_theme_font_bold_font>`
  1388. The font used for bold text.
  1389. .. rst-class:: classref-item-separator
  1390. ----
  1391. .. _class_RichTextLabel_theme_font_bold_italics_font:
  1392. .. rst-class:: classref-themeproperty
  1393. :ref:`Font<class_Font>` **bold_italics_font** :ref:`🔗<class_RichTextLabel_theme_font_bold_italics_font>`
  1394. The font used for bold italics text.
  1395. .. rst-class:: classref-item-separator
  1396. ----
  1397. .. _class_RichTextLabel_theme_font_italics_font:
  1398. .. rst-class:: classref-themeproperty
  1399. :ref:`Font<class_Font>` **italics_font** :ref:`🔗<class_RichTextLabel_theme_font_italics_font>`
  1400. The font used for italics text.
  1401. .. rst-class:: classref-item-separator
  1402. ----
  1403. .. _class_RichTextLabel_theme_font_mono_font:
  1404. .. rst-class:: classref-themeproperty
  1405. :ref:`Font<class_Font>` **mono_font** :ref:`🔗<class_RichTextLabel_theme_font_mono_font>`
  1406. The font used for monospace text.
  1407. .. rst-class:: classref-item-separator
  1408. ----
  1409. .. _class_RichTextLabel_theme_font_normal_font:
  1410. .. rst-class:: classref-themeproperty
  1411. :ref:`Font<class_Font>` **normal_font** :ref:`🔗<class_RichTextLabel_theme_font_normal_font>`
  1412. The default text font.
  1413. .. rst-class:: classref-item-separator
  1414. ----
  1415. .. _class_RichTextLabel_theme_font_size_bold_font_size:
  1416. .. rst-class:: classref-themeproperty
  1417. :ref:`int<class_int>` **bold_font_size** :ref:`🔗<class_RichTextLabel_theme_font_size_bold_font_size>`
  1418. The font size used for bold text.
  1419. .. rst-class:: classref-item-separator
  1420. ----
  1421. .. _class_RichTextLabel_theme_font_size_bold_italics_font_size:
  1422. .. rst-class:: classref-themeproperty
  1423. :ref:`int<class_int>` **bold_italics_font_size** :ref:`🔗<class_RichTextLabel_theme_font_size_bold_italics_font_size>`
  1424. The font size used for bold italics text.
  1425. .. rst-class:: classref-item-separator
  1426. ----
  1427. .. _class_RichTextLabel_theme_font_size_italics_font_size:
  1428. .. rst-class:: classref-themeproperty
  1429. :ref:`int<class_int>` **italics_font_size** :ref:`🔗<class_RichTextLabel_theme_font_size_italics_font_size>`
  1430. The font size used for italics text.
  1431. .. rst-class:: classref-item-separator
  1432. ----
  1433. .. _class_RichTextLabel_theme_font_size_mono_font_size:
  1434. .. rst-class:: classref-themeproperty
  1435. :ref:`int<class_int>` **mono_font_size** :ref:`🔗<class_RichTextLabel_theme_font_size_mono_font_size>`
  1436. The font size used for monospace text.
  1437. .. rst-class:: classref-item-separator
  1438. ----
  1439. .. _class_RichTextLabel_theme_font_size_normal_font_size:
  1440. .. rst-class:: classref-themeproperty
  1441. :ref:`int<class_int>` **normal_font_size** :ref:`🔗<class_RichTextLabel_theme_font_size_normal_font_size>`
  1442. The default text font size.
  1443. .. rst-class:: classref-item-separator
  1444. ----
  1445. .. _class_RichTextLabel_theme_style_focus:
  1446. .. rst-class:: classref-themeproperty
  1447. :ref:`StyleBox<class_StyleBox>` **focus** :ref:`🔗<class_RichTextLabel_theme_style_focus>`
  1448. The background used when the **RichTextLabel** is focused. The :ref:`focus<class_RichTextLabel_theme_style_focus>` :ref:`StyleBox<class_StyleBox>` is displayed *over* the base :ref:`StyleBox<class_StyleBox>`, so a partially transparent :ref:`StyleBox<class_StyleBox>` should be used to ensure the base :ref:`StyleBox<class_StyleBox>` remains visible. A :ref:`StyleBox<class_StyleBox>` that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a :ref:`StyleBoxEmpty<class_StyleBoxEmpty>` resource. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons.
  1449. .. rst-class:: classref-item-separator
  1450. ----
  1451. .. _class_RichTextLabel_theme_style_normal:
  1452. .. rst-class:: classref-themeproperty
  1453. :ref:`StyleBox<class_StyleBox>` **normal** :ref:`🔗<class_RichTextLabel_theme_style_normal>`
  1454. The normal background for the **RichTextLabel**.
  1455. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  1456. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  1457. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  1458. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  1459. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  1460. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  1461. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  1462. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  1463. .. |void| replace:: :abbr:`void (No return value.)`