summaryrefslogtreecommitdiffstats
path: root/doc/classes/Button.xml
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-23 11:29:32 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-23 11:29:32 +0100
commit12817f2993e603e380b3bc282187315cac736958 (patch)
tree5839c220f70bd64816221beb724897544883558a /doc/classes/Button.xml
parent42a15bcc49f8af01c266f736dea9c9154aa22c5e (diff)
parent00480fc8180053fa2d2ca42039756c1f619245c4 (diff)
downloadredot-engine-12817f2993e603e380b3bc282187315cac736958.tar.gz
Merge pull request #87025 from bruvzg/button_wrap
[Button] Add autowrap feature.
Diffstat (limited to 'doc/classes/Button.xml')
-rw-r--r--doc/classes/Button.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/Button.xml b/doc/classes/Button.xml
index 739a824655..7ba328c8b8 100644
--- a/doc/classes/Button.xml
+++ b/doc/classes/Button.xml
@@ -43,6 +43,9 @@
<member name="alignment" type="int" setter="set_text_alignment" getter="get_text_alignment" enum="HorizontalAlignment" default="1">
Text alignment policy for the button's text, use one of the [enum HorizontalAlignment] constants.
</member>
+ <member name="autowrap_mode" type="int" setter="set_autowrap_mode" getter="get_autowrap_mode" enum="TextServer.AutowrapMode" default="0">
+ If set to something other than [constant TextServer.AUTOWRAP_OFF], the text gets wrapped inside the node's bounding rectangle.
+ </member>
<member name="clip_text" type="bool" setter="set_clip_text" getter="get_clip_text" default="false">
When this property is enabled, text that is too large to fit the button is clipped, when disabled the Button will always be wide enough to hold the text.
</member>