diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-03 16:09:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 16:09:04 +0100 |
commit | c0daec389d654637885b7c1f1a650fa0f8cd4858 (patch) | |
tree | a793844f38126a33dbffc87506fc54677435248e /doc | |
parent | 6acbd5f77449dacbbe4989c99e63fbf67e6e29ea (diff) | |
parent | ead6f67670961f1760e543803e4971b5ea214a0c (diff) |
Merge pull request #57589 from bruvzg/rtl_autowrap
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/RichTextLabel.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml index 6f5135459f..95dffd3e28 100644 --- a/doc/classes/RichTextLabel.xml +++ b/doc/classes/RichTextLabel.xml @@ -372,6 +372,9 @@ </method> </methods> <members> + <member name="autowrap_mode" type="int" setter="set_autowrap_mode" getter="get_autowrap_mode" enum="RichTextLabel.AutowrapMode" default="3"> + If set to something other than [constant AUTOWRAP_OFF], the text gets wrapped inside the node's bounding rectangle. To see how each mode behaves, see [enum AutowrapMode]. + </member> <member name="bbcode_enabled" type="bool" setter="set_use_bbcode" getter="is_using_bbcode" default="false"> If [code]true[/code], the label uses BBCode formatting. </member> @@ -454,6 +457,18 @@ </signal> </signals> <constants> + <constant name="AUTOWRAP_OFF" value="0" enum="AutowrapMode"> + Autowrap is disabled. + </constant> + <constant name="AUTOWRAP_ARBITRARY" value="1" enum="AutowrapMode"> + Wraps the text inside the node's bounding rectangle by allowing to break lines at arbitrary positions, which is useful when very limited space is available. + </constant> + <constant name="AUTOWRAP_WORD" value="2" enum="AutowrapMode"> + Wraps the text inside the node's bounding rectangle by soft-breaking between words. + </constant> + <constant name="AUTOWRAP_WORD_SMART" value="3" enum="AutowrapMode"> + Behaves similarly to [constant AUTOWRAP_WORD], but force-breaks a word if that single word does not fit in one line. + </constant> <constant name="LIST_NUMBERS" value="0" enum="ListType"> Each list item has a number marker. </constant> |