summaryrefslogtreecommitdiff
path: root/doc/classes/Label.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/Label.xml')
-rw-r--r--doc/classes/Label.xml22
1 files changed, 5 insertions, 17 deletions
diff --git a/doc/classes/Label.xml b/doc/classes/Label.xml
index 089b81164b..bbf83308de 100644
--- a/doc/classes/Label.xml
+++ b/doc/classes/Label.xml
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<class name="Label" inherits="Control" category="Core" version="3.0-beta">
+<class name="Label" inherits="Control" category="Core" version="3.0-stable">
<brief_description>
Displays plain text in a line or wrapped inside a rectangle. For formatted text, use [RichTextLabel].
</brief_description>
<description>
Label displays plain text on the screen. It gives you control over the horizontal and vertical alignment, and can wrap the text inside the node's bounding rectangle. It doesn't support bold, italics or other formatting. For that, use [RichTextLabel] instead.
+ Note that contrarily to most other [Control]s, Label's [member Control.mouse_filter] defaults to MOUSE_FILTER_IGNORE (i.e. it doesn't react to mouse input events).
</description>
<tutorials>
</tutorials>
@@ -32,13 +33,6 @@
Returns the total length of the text.
</description>
</method>
- <method name="get_visible_characters" qualifiers="const">
- <return type="int">
- </return>
- <description>
- Returns the restricted number of characters to display. Returns -1 if unrestricted.
- </description>
- </method>
<method name="get_visible_line_count" qualifiers="const">
<return type="int">
</return>
@@ -46,15 +40,6 @@
Returns the number of lines shown. Useful if the [code]Label[/code] 's height cannot currently display all lines.
</description>
</method>
- <method name="set_visible_characters">
- <return type="void">
- </return>
- <argument index="0" name="amount" type="int">
- </argument>
- <description>
- Restricts the number of characters to display. Set to -1 to disable.
- </description>
- </method>
</methods>
<members>
<member name="align" type="int" setter="set_align" getter="get_align" enum="Label.Align">
@@ -84,6 +69,9 @@
<member name="valign" type="int" setter="set_valign" getter="get_valign" enum="Label.VAlign">
Controls the text's vertical align. Supports top, center, bottom, and fill. Set it to one of the [code]VALIGN_*[/code] constants.
</member>
+ <member name="visible_characters" type="int" setter="set_visible_characters" getter="get_visible_characters">
+ Restricts the number of characters to display. Set to -1 to disable.
+ </member>
</members>
<constants>
<constant name="ALIGN_LEFT" value="0" enum="Align">