2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-02-01 02:03:48 +01:00
<class name= "LineEdit" inherits= "Control" version= "4.0" >
2017-09-12 22:42:36 +02:00
<brief_description >
2019-04-03 22:29:06 +02:00
Control that provides single-line string editing.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2020-01-23 11:14:14 +01:00
LineEdit provides a single-line string editor, used for text fields.
2020-03-10 11:41:36 +01:00
It features many built-in shortcuts which will always be available ([kbd]Ctrl[/kbd] here maps to [kbd]Cmd[/kbd] on macOS):
- [kbd]Ctrl + C[/kbd]: Copy
- [kbd]Ctrl + X[/kbd]: Cut
- [kbd]Ctrl + V[/kbd] or [kbd]Ctrl + Y[/kbd]: Paste/"yank"
- [kbd]Ctrl + Z[/kbd]: Undo
2020-08-12 13:49:10 +02:00
- [kbd]Ctrl + ~[/kbd]: Swap input direction.
2020-03-10 11:41:36 +01:00
- [kbd]Ctrl + Shift + Z[/kbd]: Redo
2021-03-28 20:31:25 +02:00
- [kbd]Ctrl + U[/kbd]: Delete text from the caret position to the beginning of the line
- [kbd]Ctrl + K[/kbd]: Delete text from the caret position to the end of the line
2020-03-10 11:41:36 +01:00
- [kbd]Ctrl + A[/kbd]: Select all text
2021-03-28 20:31:25 +02:00
- [kbd]Up Arrow[/kbd]/[kbd]Down Arrow[/kbd]: Move the caret to the beginning/end of the line
2020-01-17 04:02:43 +01:00
On macOS, some extra keyboard shortcuts are available:
2021-03-28 20:31:25 +02:00
- [kbd]Ctrl + F[/kbd]: Same as [kbd]Right Arrow[/kbd], move the caret one character right
- [kbd]Ctrl + B[/kbd]: Same as [kbd]Left Arrow[/kbd], move the caret one character left
- [kbd]Ctrl + P[/kbd]: Same as [kbd]Up Arrow[/kbd], move the caret to the previous line
- [kbd]Ctrl + N[/kbd]: Same as [kbd]Down Arrow[/kbd], move the caret to the next line
- [kbd]Ctrl + D[/kbd]: Same as [kbd]Delete[/kbd], delete the character on the right side of caret
- [kbd]Ctrl + H[/kbd]: Same as [kbd]Backspace[/kbd], delete the character on the left side of the caret
- [kbd]Ctrl + A[/kbd]: Same as [kbd]Home[/kbd], move the caret to the beginning of the line
- [kbd]Ctrl + E[/kbd]: Same as [kbd]End[/kbd], move the caret to the end of the line
- [kbd]Cmd + Left Arrow[/kbd]: Same as [kbd]Home[/kbd], move the caret to the beginning of the line
- [kbd]Cmd + Right Arrow[/kbd]: Same as [kbd]End[/kbd], move the caret to the end of the line
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "clear" >
<return type= "void" >
</return>
<description >
2020-06-11 09:52:13 +02:00
Erases the [LineEdit]'s [member text].
</description>
</method>
2020-08-12 13:49:10 +02:00
<method name= "clear_opentype_features" >
<return type= "void" >
</return>
<description >
Removes all OpenType features.
</description>
</method>
2021-03-28 20:31:25 +02:00
<method name= "delete_char_at_caret" >
2020-06-11 09:52:13 +02:00
<return type= "void" >
</return>
<description >
2021-03-28 20:31:25 +02:00
Deletes one character at the caret's current position (equivalent to pressing [kbd]Delete[/kbd]).
2020-06-11 09:52:13 +02:00
</description>
</method>
<method name= "delete_text" >
<return type= "void" >
</return>
<argument index= "0" name= "from_column" type= "int" >
</argument>
<argument index= "1" name= "to_column" type= "int" >
</argument>
<description >
Deletes a section of the [member text] going from position [code]from_column[/code] to [code]to_column[/code]. Both parameters should be within the text's length.
2017-09-12 22:42:36 +02:00
</description>
</method>
2017-12-17 18:40:44 +01:00
<method name= "deselect" >
<return type= "void" >
</return>
<description >
Clears the current selection.
</description>
</method>
2017-09-12 22:42:36 +02:00
<method name= "get_menu" qualifiers= "const" >
<return type= "PopupMenu" >
</return>
<description >
2019-03-29 23:37:35 +01:00
Returns the [PopupMenu] of this [LineEdit]. By default, this menu is displayed when right-clicking on the [LineEdit].
2017-09-12 22:42:36 +02:00
</description>
</method>
2020-08-12 13:49:10 +02:00
<method name= "get_opentype_feature" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "tag" type= "String" >
</argument>
<description >
Returns OpenType feature [code]tag[/code].
</description>
</method>
2020-11-11 09:26:55 +01:00
<method name= "get_scroll_offset" qualifiers= "const" >
<return type= "int" >
</return>
<description >
2021-03-28 20:31:25 +02:00
Returns the scroll offset due to [member caret_column], as a number of characters.
</description>
</method>
<method name= "insert_text_at_caret" >
<return type= "void" >
</return>
<argument index= "0" name= "text" type= "String" >
</argument>
<description >
Inserts [code]text[/code] at the caret. If the resulting value is longer than [member max_length], nothing happens.
2020-11-11 09:26:55 +01:00
</description>
</method>
2017-09-12 22:42:36 +02:00
<method name= "menu_option" >
<return type= "void" >
</return>
<argument index= "0" name= "option" type= "int" >
</argument>
<description >
2019-12-06 23:09:20 +01:00
Executes a given action as defined in the [enum MenuItems] enum.
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "select" >
<return type= "void" >
</return>
<argument index= "0" name= "from" type= "int" default= "0" >
</argument>
<argument index= "1" name= "to" type= "int" default= "-1" >
</argument>
<description >
2019-06-22 01:04:47 +02:00
Selects characters inside [LineEdit] between [code]from[/code] and [code]to[/code]. By default, [code]from[/code] is at the beginning and [code]to[/code] at the end.
2020-10-31 00:37:55 +01:00
[codeblocks]
[gdscript]
2017-10-28 00:00:22 +02:00
text = "Welcome"
2020-01-23 18:41:49 +01:00
select() # Will select "Welcome".
select(4) # Will select "ome".
select(2, 5) # Will select "lco".
2020-10-31 00:37:55 +01:00
[/gdscript]
[csharp]
Text = "Welcome";
Select(); // Will select "Welcome".
Select(4); // Will select "ome".
Select(2, 5); // Will select "lco".
[/csharp]
[/codeblocks]
2017-09-12 22:42:36 +02:00
</description>
</method>
<method name= "select_all" >
<return type= "void" >
</return>
<description >
2017-10-28 00:00:22 +02:00
Selects the whole [String].
2017-09-12 22:42:36 +02:00
</description>
</method>
2020-08-12 13:49:10 +02:00
<method name= "set_opentype_feature" >
<return type= "void" >
</return>
<argument index= "0" name= "tag" type= "String" >
</argument>
<argument index= "1" name= "value" type= "int" >
</argument>
<description >
Returns OpenType feature [code]tag[/code]. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url].
</description>
</method>
2017-09-12 22:42:36 +02:00
< /methods>
<members >
2019-06-29 12:38:01 +02:00
<member name= "align" type= "int" setter= "set_align" getter= "get_align" enum= "LineEdit.Align" default= "0" >
2019-12-06 23:09:20 +01:00
Text alignment as defined in the [enum Align] enum.
2017-09-12 22:42:36 +02:00
</member>
2021-03-28 20:31:25 +02:00
<member name= "caret_blink" type= "bool" setter= "set_caret_blink_enabled" getter= "is_caret_blink_enabled" default= "false" >
If [code]true[/code], the caret (text cursor) blinks.
2017-09-12 22:42:36 +02:00
</member>
2021-03-28 20:31:25 +02:00
<member name= "caret_blink_speed" type= "float" setter= "set_caret_blink_speed" getter= "get_caret_blink_speed" default= "0.65" >
2017-10-28 00:00:22 +02:00
Duration (in seconds) of a caret's blinking cycle.
2017-09-12 22:42:36 +02:00
</member>
2021-03-28 20:31:25 +02:00
<member name= "caret_column" type= "int" setter= "set_caret_column" getter= "get_caret_column" default= "0" >
The caret's column position inside the [LineEdit]. When set, the text may scroll to accommodate it.
2020-07-28 01:08:44 +02:00
</member>
2021-03-28 20:31:25 +02:00
<member name= "caret_force_displayed" type= "bool" setter= "set_caret_force_displayed" getter= "is_caret_force_displayed" default= "false" >
</member>
<member name= "caret_mid_grapheme" type= "bool" setter= "set_caret_mid_grapheme_enabled" getter= "is_caret_mid_grapheme_enabled" default= "false" >
2020-08-12 13:49:10 +02:00
Allow moving caret, selecting and removing the individual composite character components.
Note: [kbd]Backspace[/kbd] is always removing individual composite character components.
</member>
2019-06-29 12:38:01 +02:00
<member name= "clear_button_enabled" type= "bool" setter= "set_clear_button_enabled" getter= "is_clear_button_enabled" default= "false" >
2020-01-08 22:51:16 +01:00
If [code]true[/code], the [LineEdit] will show a clear button if [code]text[/code] is not empty, which can be used to clear the text quickly.
2018-08-21 00:35:30 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "context_menu_enabled" type= "bool" setter= "set_context_menu_enabled" getter= "is_context_menu_enabled" default= "true" >
2019-06-22 01:04:47 +02:00
If [code]true[/code], the context menu will appear when right-clicked.
2017-11-13 09:24:36 +01:00
</member>
2020-08-12 13:49:10 +02:00
<member name= "draw_control_chars" type= "bool" setter= "set_draw_control_chars" getter= "get_draw_control_chars" default= "false" >
If [code]true[/code], control characters are displayed.
</member>
2019-06-29 12:38:01 +02:00
<member name= "editable" type= "bool" setter= "set_editable" getter= "is_editable" default= "true" >
2018-12-20 13:46:54 +01:00
If [code]false[/code], existing text cannot be modified and new text cannot be added.
2017-09-12 22:42:36 +02:00
</member>
2021-03-28 20:31:25 +02:00
<member name= "expand_to_text_length" type= "bool" setter= "set_expand_to_text_length_enabled" getter= "is_expand_to_text_length_enabled" default= "false" >
2019-03-29 23:37:35 +01:00
If [code]true[/code], the [LineEdit] width will increase to stay longer than the [member text]. It will [b]not[/b] compress if the [member text] is shortened.
2017-09-12 22:42:36 +02:00
</member>
2019-09-24 13:34:03 +02:00
<member name= "focus_mode" type= "int" setter= "set_focus_mode" getter= "get_focus_mode" override= "true" enum= "Control.FocusMode" default= "2" />
2020-08-12 13:49:10 +02:00
<member name= "language" type= "String" setter= "set_language" getter= "get_language" default= """" >
Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
</member>
2019-06-29 12:38:01 +02:00
<member name= "max_length" type= "int" setter= "set_max_length" getter= "get_max_length" default= "0" >
2019-03-29 23:37:35 +01:00
Maximum amount of characters that can be entered inside the [LineEdit]. If [code]0[/code], there is no limit.
2017-09-12 22:42:36 +02:00
</member>
2019-09-24 13:34:03 +02:00
<member name= "mouse_default_cursor_shape" type= "int" setter= "set_default_cursor_shape" getter= "get_default_cursor_shape" override= "true" enum= "Control.CursorShape" default= "1" />
2019-06-29 12:38:01 +02:00
<member name= "placeholder_alpha" type= "float" setter= "set_placeholder_alpha" getter= "get_placeholder_alpha" default= "0.6" >
2017-10-28 00:00:22 +02:00
Opacity of the [member placeholder_text]. From [code]0[/code] to [code]1[/code].
2017-09-12 22:42:36 +02:00
</member>
2019-06-29 12:38:01 +02:00
<member name= "placeholder_text" type= "String" setter= "set_placeholder" getter= "get_placeholder" default= """" >
2019-03-29 23:37:35 +01:00
Text shown when the [LineEdit] is empty. It is [b]not[/b] the [LineEdit]'s default value (see [member text]).
2017-09-12 22:42:36 +02:00
</member>
2020-02-12 09:59:06 +01:00
<member name= "right_icon" type= "Texture2D" setter= "set_right_icon" getter= "get_right_icon" >
2019-09-09 03:46:57 +02:00
Sets the icon that will appear in the right end of the [LineEdit] if there's no [member text], or always, if [member clear_button_enabled] is set to [code]false[/code].
</member>
2019-06-29 12:38:01 +02:00
<member name= "secret" type= "bool" setter= "set_secret" getter= "is_secret" default= "false" >
2018-04-28 20:24:48 +02:00
If [code]true[/code], every character is replaced with the secret character (see [member secret_character]).
</member>
2019-06-29 12:38:01 +02:00
<member name= "secret_character" type= "String" setter= "set_secret_character" getter= "get_secret_character" default= ""*"" >
2018-04-28 20:24:48 +02:00
The character to use to mask secret input (defaults to "*"). Only a single character can be used as the secret character.
2017-09-12 22:42:36 +02:00
</member>
2019-09-24 11:44:48 +02:00
<member name= "selecting_enabled" type= "bool" setter= "set_selecting_enabled" getter= "is_selecting_enabled" default= "true" >
2020-01-08 22:51:16 +01:00
If [code]false[/code], it's impossible to select the text using mouse nor keyboard.
2019-09-24 11:44:48 +02:00
</member>
<member name= "shortcut_keys_enabled" type= "bool" setter= "set_shortcut_keys_enabled" getter= "is_shortcut_keys_enabled" default= "true" >
2020-01-08 22:51:16 +01:00
If [code]false[/code], using shortcuts will be disabled.
2019-09-24 11:44:48 +02:00
</member>
2020-08-12 13:49:10 +02:00
<member name= "structured_text_bidi_override" type= "int" setter= "set_structured_text_bidi_override" getter= "get_structured_text_bidi_override" enum= "Control.StructuredTextParser" default= "0" >
Set BiDi algorithm override for the structured text.
</member>
<member name= "structured_text_bidi_override_options" type= "Array" setter= "set_structured_text_bidi_override_options" getter= "get_structured_text_bidi_override_options" default= "[ ]" >
Set additional options for BiDi override.
</member>
2019-06-29 12:38:01 +02:00
<member name= "text" type= "String" setter= "set_text" getter= "get_text" default= """" >
2019-03-29 23:37:35 +01:00
String value of the [LineEdit].
2020-01-17 04:02:43 +01:00
[b]Note:[/b] Changing text using this property won't emit the [signal text_changed] signal.
2017-09-12 22:42:36 +02:00
</member>
2020-08-12 13:49:10 +02:00
<member name= "text_direction" type= "int" setter= "set_text_direction" getter= "get_text_direction" enum= "Control.TextDirection" default= "0" >
Base text writing direction.
</member>
2020-07-22 08:04:48 +02:00
<member name= "virtual_keyboard_enabled" type= "bool" setter= "set_virtual_keyboard_enabled" getter= "is_virtual_keyboard_enabled" default= "true" >
If [code]true[/code], the native virtual keyboard is shown when focused on platforms that support it.
</member>
2017-09-12 22:42:36 +02:00
</members>
<signals >
2020-01-12 14:30:21 +01:00
<signal name= "text_change_rejected" >
<description >
Emitted when trying to append text that would overflow the [member max_length].
</description>
</signal>
2017-09-12 22:42:36 +02:00
<signal name= "text_changed" >
2018-01-09 16:39:43 +01:00
<argument index= "0" name= "new_text" type= "String" >
2017-09-12 22:42:36 +02:00
</argument>
<description >
2017-10-28 00:00:22 +02:00
Emitted when the text changes.
2017-09-12 22:42:36 +02:00
</description>
</signal>
<signal name= "text_entered" >
2018-01-09 16:39:43 +01:00
<argument index= "0" name= "new_text" type= "String" >
2017-09-12 22:42:36 +02:00
</argument>
<description >
2019-03-29 23:37:35 +01:00
Emitted when the user presses [constant KEY_ENTER] on the [LineEdit].
2017-09-12 22:42:36 +02:00
</description>
</signal>
</signals>
<constants >
2017-11-24 23:16:30 +01:00
<constant name= "ALIGN_LEFT" value= "0" enum= "Align" >
2019-06-22 01:04:47 +02:00
Aligns the text on the left-hand side of the [LineEdit].
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ALIGN_CENTER" value= "1" enum= "Align" >
2019-03-29 23:37:35 +01:00
Centers the text in the middle of the [LineEdit].
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ALIGN_RIGHT" value= "2" enum= "Align" >
2019-06-22 01:04:47 +02:00
Aligns the text on the right-hand side of the [LineEdit].
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ALIGN_FILL" value= "3" enum= "Align" >
2020-08-12 13:49:10 +02:00
Expand row to fit the [LineEdit]'s width.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "MENU_CUT" value= "0" enum= "MenuItems" >
2019-01-07 10:02:04 +01:00
Cuts (copies and clears) the selected text.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "MENU_COPY" value= "1" enum= "MenuItems" >
2017-10-28 00:00:22 +02:00
Copies the selected text.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "MENU_PASTE" value= "2" enum= "MenuItems" >
2021-03-28 20:31:25 +02:00
Pastes the clipboard text over the selected text (or at the caret's position).
2019-05-31 15:27:53 +02:00
Non-printable escape characters are automatically stripped from the OS clipboard via [method String.strip_escapes].
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "MENU_CLEAR" value= "3" enum= "MenuItems" >
2019-03-29 23:37:35 +01:00
Erases the whole [LineEdit] text.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "MENU_SELECT_ALL" value= "4" enum= "MenuItems" >
2019-03-29 23:37:35 +01:00
Selects the whole [LineEdit] text.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "MENU_UNDO" value= "5" enum= "MenuItems" >
2017-10-28 00:00:22 +02:00
Undoes the previous action.
2017-09-12 22:42:36 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "MENU_REDO" value= "6" enum= "MenuItems" >
2018-10-13 17:36:30 +02:00
Reverse the last undo action.
2017-11-13 09:24:36 +01:00
</constant>
2020-08-12 13:49:10 +02:00
<constant name= "MENU_DIR_INHERITED" value= "7" enum= "MenuItems" >
Sets text direction to inherited.
</constant>
<constant name= "MENU_DIR_AUTO" value= "8" enum= "MenuItems" >
Sets text direction to automatic.
</constant>
<constant name= "MENU_DIR_LTR" value= "9" enum= "MenuItems" >
Sets text direction to left-to-right.
</constant>
<constant name= "MENU_DIR_RTL" value= "10" enum= "MenuItems" >
Sets text direction to right-to-left.
</constant>
<constant name= "MENU_DISPLAY_UCC" value= "11" enum= "MenuItems" >
Toggles control character display.
</constant>
<constant name= "MENU_INSERT_LRM" value= "12" enum= "MenuItems" >
Inserts left-to-right mark (LRM) character.
</constant>
<constant name= "MENU_INSERT_RLM" value= "13" enum= "MenuItems" >
Inserts right-to-left mark (RLM) character.
</constant>
<constant name= "MENU_INSERT_LRE" value= "14" enum= "MenuItems" >
Inserts start of left-to-right embedding (LRE) character.
</constant>
<constant name= "MENU_INSERT_RLE" value= "15" enum= "MenuItems" >
Inserts start of right-to-left embedding (RLE) character.
</constant>
<constant name= "MENU_INSERT_LRO" value= "16" enum= "MenuItems" >
Inserts start of left-to-right override (LRO) character.
</constant>
<constant name= "MENU_INSERT_RLO" value= "17" enum= "MenuItems" >
Inserts start of right-to-left override (RLO) character.
</constant>
<constant name= "MENU_INSERT_PDF" value= "18" enum= "MenuItems" >
Inserts pop direction formatting (PDF) character.
</constant>
<constant name= "MENU_INSERT_ALM" value= "19" enum= "MenuItems" >
Inserts Arabic letter mark (ALM) character.
</constant>
<constant name= "MENU_INSERT_LRI" value= "20" enum= "MenuItems" >
Inserts left-to-right isolate (LRI) character.
</constant>
<constant name= "MENU_INSERT_RLI" value= "21" enum= "MenuItems" >
Inserts right-to-left isolate (RLI) character.
</constant>
<constant name= "MENU_INSERT_FSI" value= "22" enum= "MenuItems" >
Inserts first strong isolate (FSI) character.
</constant>
<constant name= "MENU_INSERT_PDI" value= "23" enum= "MenuItems" >
Inserts pop direction isolate (PDI) character.
</constant>
<constant name= "MENU_INSERT_ZWJ" value= "24" enum= "MenuItems" >
Inserts zero width joiner (ZWJ) character.
</constant>
<constant name= "MENU_INSERT_ZWNJ" value= "25" enum= "MenuItems" >
Inserts zero width non-joiner (ZWNJ) character.
</constant>
<constant name= "MENU_INSERT_WJ" value= "26" enum= "MenuItems" >
Inserts word joiner (WJ) character.
</constant>
<constant name= "MENU_INSERT_SHY" value= "27" enum= "MenuItems" >
Inserts soft hyphen (SHY) character.
</constant>
<constant name= "MENU_MAX" value= "28" enum= "MenuItems" >
2019-06-27 11:10:53 +02:00
Represents the size of the [enum MenuItems] enum.
2017-09-12 22:42:36 +02:00
</constant>
</constants>
<theme_items >
2021-03-28 20:31:25 +02:00
<theme_item name= "caret_color" type= "Color" default= "Color( 0.94, 0.94, 0.94, 1 )" >
Color of the [LineEdit]'s caret (text cursor).
</theme_item>
2020-02-12 09:59:06 +01:00
<theme_item name= "clear" type= "Texture2D" >
2020-01-08 22:51:16 +01:00
Texture for the clear button. See [member clear_button_enabled].
2018-08-21 00:35:30 +02:00
</theme_item>
2019-07-09 09:13:00 +02:00
<theme_item name= "clear_button_color" type= "Color" default= "Color( 0.88, 0.88, 0.88, 1 )" >
2020-01-08 22:51:16 +01:00
Color used as default tint for the clear button.
2018-08-21 00:35:30 +02:00
</theme_item>
2019-06-29 12:38:01 +02:00
<theme_item name= "clear_button_color_pressed" type= "Color" default= "Color( 1, 1, 1, 1 )" >
2020-01-08 22:51:16 +01:00
Color used for the clear button when it's pressed.
2018-08-21 00:35:30 +02:00
</theme_item>
2017-09-12 22:42:36 +02:00
<theme_item name= "focus" type= "StyleBox" >
2020-01-08 22:51:16 +01:00
Background used when [LineEdit] has GUI focus.
2017-09-12 22:42:36 +02:00
</theme_item>
<theme_item name= "font" type= "Font" >
2020-01-08 22:51:16 +01:00
Font used for the text.
2017-09-12 22:42:36 +02:00
</theme_item>
2019-07-09 09:13:00 +02:00
<theme_item name= "font_color" type= "Color" default= "Color( 0.88, 0.88, 0.88, 1 )" >
2020-01-08 22:51:16 +01:00
Default font color.
2017-09-12 22:42:36 +02:00
</theme_item>
2020-12-25 22:45:28 +01:00
<theme_item name= "font_outline_color" type= "Color" default= "Color( 1, 1, 1, 1 )" >
The tint of text outline of the [LineEdit].
</theme_item>
2020-12-08 14:11:45 +01:00
<theme_item name= "font_selected_color" type= "Color" default= "Color( 0, 0, 0, 1 )" >
2020-01-08 22:51:16 +01:00
Font color for selected text (inside the selection rectangle).
2017-09-12 22:42:36 +02:00
</theme_item>
2020-08-12 13:49:10 +02:00
<theme_item name= "font_size" type= "int" >
Font size of the [LineEdit]'s text.
</theme_item>
2021-01-28 11:26:37 +01:00
<theme_item name= "font_uneditable_color" type= "Color" default= "Color( 0.88, 0.88, 0.88, 0.5 )" >
Font color when editing is disabled.
</theme_item>
2021-02-19 13:35:31 +01:00
<theme_item name= "minimum_character_width" type= "int" default= "4" >
Minimum horizontal space for the text (not counting the clear button and content margins). This value is measured in count of 'M' characters (i.e. this amount of 'M' characters can be displayed without scrolling).
2017-09-12 22:42:36 +02:00
</theme_item>
<theme_item name= "normal" type= "StyleBox" >
2020-01-08 22:51:16 +01:00
Default background for the [LineEdit].
2017-09-12 22:42:36 +02:00
</theme_item>
2020-12-25 22:45:28 +01:00
<theme_item name= "outline_size" type= "int" default= "0" >
The size of the text outline.
</theme_item>
2017-09-12 22:42:36 +02:00
<theme_item name= "read_only" type= "StyleBox" >
2020-01-08 22:51:16 +01:00
Background used when [LineEdit] is in read-only mode ([member editable] is set to [code]false[/code]).
2017-09-12 22:42:36 +02:00
</theme_item>
2019-07-09 09:13:00 +02:00
<theme_item name= "selection_color" type= "Color" default= "Color( 0.49, 0.49, 0.49, 1 )" >
2020-01-08 22:51:16 +01:00
Color of the selection rectangle.
2017-09-12 22:42:36 +02:00
</theme_item>
</theme_items>
</class>