2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-03-01 00:44:37 +00:00
<class name= "LineEdit" inherits= "Control" version= "4.1" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 20:42:36 +00:00
<brief_description >
2019-04-03 20:29:06 +00:00
Control that provides single-line string editing.
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
2020-01-23 10:14:14 +00:00
LineEdit provides a single-line string editor, used for text fields.
2020-03-10 10:41:36 +00: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 11:49:10 +00:00
- [kbd]Ctrl + ~[/kbd]: Swap input direction.
2020-03-10 10:41:36 +00:00
- [kbd]Ctrl + Shift + Z[/kbd]: Redo
2021-03-28 18:31:25 +00: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 10:41:36 +00:00
- [kbd]Ctrl + A[/kbd]: Select all text
2021-03-28 18:31:25 +00:00
- [kbd]Up Arrow[/kbd]/[kbd]Down Arrow[/kbd]: Move the caret to the beginning/end of the line
2020-01-17 03:02:43 +00:00
On macOS, some extra keyboard shortcuts are available:
2021-03-28 18:31:25 +00: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 20:42:36 +00:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "clear" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2017-09-12 20:42:36 +00:00
<description >
2020-06-11 07:52:13 +00:00
Erases the [LineEdit]'s [member text].
</description>
</method>
2021-03-28 18:31:25 +00:00
<method name= "delete_char_at_caret" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2020-06-11 07:52:13 +00:00
<description >
2021-03-28 18:31:25 +00:00
Deletes one character at the caret's current position (equivalent to pressing [kbd]Delete[/kbd]).
2020-06-11 07:52:13 +00:00
</description>
</method>
<method name= "delete_text" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "from_column" type= "int" />
<param index= "1" name= "to_column" type= "int" />
2020-06-11 07:52:13 +00:00
<description >
2022-08-12 13:36:48 +00:00
Deletes a section of the [member text] going from position [param from_column] to [param to_column]. Both parameters should be within the text's length.
2017-09-12 20:42:36 +00:00
</description>
</method>
2017-12-17 17:40:44 +00:00
<method name= "deselect" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2017-12-17 17:40:44 +00:00
<description >
Clears the current selection.
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "get_menu" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "PopupMenu" />
2017-09-12 20:42:36 +00:00
<description >
2019-03-29 22:37:35 +00:00
Returns the [PopupMenu] of this [LineEdit]. By default, this menu is displayed when right-clicking on the [LineEdit].
2023-01-26 17:59:41 +00:00
You can add custom menu items or remove standard ones. Make sure your IDs don't conflict with the standard ones (see [enum MenuItems]). For example:
[codeblocks]
[gdscript]
func _ready():
var menu = get_menu()
# Remove all items after "Redo".
menu.item_count = menu.get_item_index(MENU_REDO) + 1
# Add custom items.
menu.add_separator()
menu.add_item("Insert Date", MENU_MAX + 1)
# Connect callback.
menu.id_pressed.connect(_on_item_pressed)
func _on_item_pressed(id):
if id == MENU_MAX + 1:
insert_text_at_caret(Time.get_date_string_from_system())
[/gdscript]
[csharp]
public override void _Ready()
{
var menu = GetMenu();
// Remove all items after "Redo".
menu.ItemCount = menu.GetItemIndex(LineEdit.MenuItems.Redo) + 1;
// Add custom items.
menu.AddSeparator();
menu.AddItem("Insert Date", LineEdit.MenuItems.Max + 1);
// Add event handler.
menu.IdPressed += OnItemPressed;
}
public void OnItemPressed(int id)
{
if (id == LineEdit.MenuItems.Max + 1)
{
InsertTextAtCaret(Time.GetDateStringFromSystem());
}
}
[/csharp]
[/codeblocks]
2021-10-10 19:28:56 +00:00
[b]Warning:[/b] 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 [member Window.visible] property.
2017-09-12 20:42:36 +00:00
</description>
</method>
2020-11-11 08:26:55 +00:00
<method name= "get_scroll_offset" qualifiers= "const" >
2022-07-06 08:57:06 +00:00
<return type= "float" />
2020-11-11 08:26:55 +00:00
<description >
2021-03-28 18:31:25 +00:00
Returns the scroll offset due to [member caret_column], as a number of characters.
</description>
</method>
2021-09-24 08:00:45 +00:00
<method name= "get_selection_from_column" qualifiers= "const" >
<return type= "int" />
<description >
Returns the selection begin column.
</description>
</method>
<method name= "get_selection_to_column" qualifiers= "const" >
<return type= "int" />
<description >
Returns the selection end column.
</description>
</method>
<method name= "has_selection" qualifiers= "const" >
<return type= "bool" />
<description >
Returns [code]true[/code] if the user has selected text.
</description>
</method>
2021-03-28 18:31:25 +00:00
<method name= "insert_text_at_caret" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "text" type= "String" />
2021-03-28 18:31:25 +00:00
<description >
2022-08-12 13:36:48 +00:00
Inserts [param text] at the caret. If the resulting value is longer than [member max_length], nothing happens.
2020-11-11 08:26:55 +00:00
</description>
</method>
2021-07-16 21:36:05 +00:00
<method name= "is_menu_visible" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
2021-07-16 21:36:05 +00:00
<description >
Returns whether the menu is visible. Use this instead of [code]get_menu().visible[/code] to improve performance (so the creation of the menu is avoided).
</description>
</method>
2017-09-12 20:42:36 +00:00
<method name= "menu_option" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "option" type= "int" />
2017-09-12 20:42:36 +00:00
<description >
2019-12-06 22:09:20 +00:00
Executes a given action as defined in the [enum MenuItems] enum.
2017-09-12 20:42:36 +00:00
</description>
</method>
<method name= "select" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "from" type= "int" default= "0" />
<param index= "1" name= "to" type= "int" default= "-1" />
2017-09-12 20:42:36 +00:00
<description >
2022-08-12 13:36:48 +00:00
Selects characters inside [LineEdit] between [param from] and [param to]. By default, [param from] is at the beginning and [param to] at the end.
2020-10-30 23:37:55 +00:00
[codeblocks]
[gdscript]
2017-10-27 22:00:22 +00:00
text = "Welcome"
2020-01-23 17:41:49 +00:00
select() # Will select "Welcome".
select(4) # Will select "ome".
select(2, 5) # Will select "lco".
2020-10-30 23:37:55 +00: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 20:42:36 +00:00
</description>
</method>
<method name= "select_all" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2017-09-12 20:42:36 +00:00
<description >
2017-10-27 22:00:22 +00:00
Selects the whole [String].
2017-09-12 20:42:36 +00:00
</description>
</method>
</methods>
<members >
2021-11-25 02:58:47 +00:00
<member name= "alignment" type= "int" setter= "set_horizontal_alignment" getter= "get_horizontal_alignment" enum= "HorizontalAlignment" default= "0" >
Text alignment as defined in the [enum HorizontalAlignment] enum.
2017-09-12 20:42:36 +00:00
</member>
2021-03-28 18:31:25 +00: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 20:42:36 +00:00
</member>
2022-08-13 12:52:35 +00:00
<member name= "caret_blink_interval" type= "float" setter= "set_caret_blink_interval" getter= "get_caret_blink_interval" default= "0.65" >
2017-10-27 22:00:22 +00:00
Duration (in seconds) of a caret's blinking cycle.
2017-09-12 20:42:36 +00:00
</member>
2021-03-28 18:31:25 +00: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-27 23:08:44 +00:00
</member>
2021-03-28 18:31:25 +00:00
<member name= "caret_force_displayed" type= "bool" setter= "set_caret_force_displayed" getter= "is_caret_force_displayed" default= "false" >
2021-07-06 11:22:53 +00:00
If [code]true[/code], the [LineEdit] will always show the caret, even if focus is lost.
2021-03-28 18:31:25 +00:00
</member>
2021-11-18 21:36:22 +00:00
<member name= "caret_mid_grapheme" type= "bool" setter= "set_caret_mid_grapheme_enabled" getter= "is_caret_mid_grapheme_enabled" default= "true" >
2020-08-12 11:49:10 +00:00
Allow moving caret, selecting and removing the individual composite character components.
2021-10-05 12:24:34 +00:00
[b]Note:[/b] [kbd]Backspace[/kbd] is always removing individual composite character components.
2020-08-12 11:49:10 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "clear_button_enabled" type= "bool" setter= "set_clear_button_enabled" getter= "is_clear_button_enabled" default= "false" >
2020-01-08 21:51:16 +00: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-20 22:35:30 +00:00
</member>
2019-06-29 10:38:01 +00:00
<member name= "context_menu_enabled" type= "bool" setter= "set_context_menu_enabled" getter= "is_context_menu_enabled" default= "true" >
2019-06-21 23:04:47 +00:00
If [code]true[/code], the context menu will appear when right-clicked.
2017-11-13 08:24:36 +00:00
</member>
2021-10-21 21:02:46 +00:00
<member name= "deselect_on_focus_loss_enabled" type= "bool" setter= "set_deselect_on_focus_loss_enabled" getter= "is_deselect_on_focus_loss_enabled" default= "true" >
If [code]true[/code], the selected text will be deselected when focus is lost.
</member>
2020-08-12 11:49:10 +00: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 10:38:01 +00:00
<member name= "editable" type= "bool" setter= "set_editable" getter= "is_editable" default= "true" >
2018-12-20 12:46:54 +00:00
If [code]false[/code], existing text cannot be modified and new text cannot be added.
2017-09-12 20:42:36 +00:00
</member>
2021-03-28 18:31:25 +00: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 22:37:35 +00: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 20:42:36 +00:00
</member>
2021-10-26 06:40:11 +00:00
<member name= "flat" type= "bool" setter= "set_flat" getter= "is_flat" default= "false" >
If [code]true[/code], the [LineEdit] don't display decoration.
</member>
2021-12-02 19:38:49 +00:00
<member name= "focus_mode" type= "int" setter= "set_focus_mode" getter= "get_focus_mode" overrides= "Control" enum= "Control.FocusMode" default= "2" />
2020-08-12 11:49:10 +00: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 10:38:01 +00:00
<member name= "max_length" type= "int" setter= "set_max_length" getter= "get_max_length" default= "0" >
2022-08-17 22:08:09 +00:00
Maximum number of characters that can be entered inside the [LineEdit]. If [code]0[/code], there is no limit.
2021-07-06 10:49:27 +00:00
When a limit is defined, characters that would exceed [member max_length] are truncated. This happens both for existing [member text] contents when setting the max length, or for new text inserted in the [LineEdit], including pasting. If any input text is truncated, the [signal text_change_rejected] signal is emitted with the truncated substring as parameter.
[b]Example:[/b]
[codeblocks]
[gdscript]
text = "Hello world"
max_length = 5
# `text` becomes "Hello".
max_length = 10
text += " goodbye"
# `text` becomes "Hello good".
# `text_change_rejected` is emitted with "bye" as parameter.
[/gdscript]
[csharp]
Text = "Hello world";
MaxLength = 5;
// `Text` becomes "Hello".
MaxLength = 10;
Text += " goodbye";
// `Text` becomes "Hello good".
// `text_change_rejected` is emitted with "bye" as parameter.
[/csharp]
[/codeblocks]
2017-09-12 20:42:36 +00:00
</member>
2021-10-12 07:43:50 +00:00
<member name= "middle_mouse_paste_enabled" type= "bool" setter= "set_middle_mouse_paste_enabled" getter= "is_middle_mouse_paste_enabled" default= "true" >
If [code]false[/code], using middle mouse button to paste clipboard will be disabled.
[b]Note:[/b] This method is only implemented on Linux.
</member>
2021-12-02 19:38:49 +00:00
<member name= "mouse_default_cursor_shape" type= "int" setter= "set_default_cursor_shape" getter= "get_default_cursor_shape" overrides= "Control" enum= "Control.CursorShape" default= "1" />
2019-06-29 10:38:01 +00:00
<member name= "placeholder_text" type= "String" setter= "set_placeholder" getter= "get_placeholder" default= """" >
2019-03-29 22:37:35 +00:00
Text shown when the [LineEdit] is empty. It is [b]not[/b] the [LineEdit]'s default value (see [member text]).
2017-09-12 20:42:36 +00:00
</member>
2020-02-12 08:59:06 +00:00
<member name= "right_icon" type= "Texture2D" setter= "set_right_icon" getter= "get_right_icon" >
2019-09-09 01:46:57 +00: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 10:38:01 +00:00
<member name= "secret" type= "bool" setter= "set_secret" getter= "is_secret" default= "false" >
2018-04-28 18:24:48 +00:00
If [code]true[/code], every character is replaced with the secret character (see [member secret_character]).
</member>
2022-08-11 08:46:58 +00:00
<member name= "secret_character" type= "String" setter= "set_secret_character" getter= "get_secret_character" default= ""•"" >
The character to use to mask secret input (defaults to "•"). Only a single character can be used as the secret character.
2017-09-12 20:42:36 +00:00
</member>
2022-10-16 12:37:35 +00:00
<member name= "select_all_on_focus" type= "bool" setter= "set_select_all_on_focus" getter= "is_select_all_on_focus" default= "false" >
If [code]true[/code], the [LineEdit] will select the whole text when it gains focus.
</member>
2019-09-24 09:44:48 +00:00
<member name= "selecting_enabled" type= "bool" setter= "set_selecting_enabled" getter= "is_selecting_enabled" default= "true" >
2020-01-08 21:51:16 +00:00
If [code]false[/code], it's impossible to select the text using mouse nor keyboard.
2019-09-24 09:44:48 +00:00
</member>
<member name= "shortcut_keys_enabled" type= "bool" setter= "set_shortcut_keys_enabled" getter= "is_shortcut_keys_enabled" default= "true" >
2020-01-08 21:51:16 +00:00
If [code]false[/code], using shortcuts will be disabled.
2019-09-24 09:44:48 +00:00
</member>
2022-04-19 10:27:18 +00:00
<member name= "structured_text_bidi_override" type= "int" setter= "set_structured_text_bidi_override" getter= "get_structured_text_bidi_override" enum= "TextServer.StructuredTextParser" default= "0" >
2020-08-12 11:49:10 +00:00
Set BiDi algorithm override for the structured text.
</member>
2019-09-24 17:45:03 +00:00
<member name= "structured_text_bidi_override_options" type= "Array" setter= "set_structured_text_bidi_override_options" getter= "get_structured_text_bidi_override_options" default= "[]" >
2020-08-12 11:49:10 +00:00
Set additional options for BiDi override.
</member>
2019-06-29 10:38:01 +00:00
<member name= "text" type= "String" setter= "set_text" getter= "get_text" default= """" >
2019-03-29 22:37:35 +00:00
String value of the [LineEdit].
2020-01-17 03:02:43 +00:00
[b]Note:[/b] Changing text using this property won't emit the [signal text_changed] signal.
2017-09-12 20:42:36 +00:00
</member>
2020-08-12 11:49:10 +00: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 06:04:48 +00: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>
2022-07-07 18:20:10 +00:00
<member name= "virtual_keyboard_type" type= "int" setter= "set_virtual_keyboard_type" getter= "get_virtual_keyboard_type" enum= "LineEdit.VirtualKeyboardType" default= "0" >
Specifies the type of virtual keyboard to show.
</member>
2017-09-12 20:42:36 +00:00
</members>
<signals >
2020-01-12 13:30:21 +00:00
<signal name= "text_change_rejected" >
2022-08-06 18:11:48 +00:00
<param index= "0" name= "rejected_substring" type= "String" />
2020-01-12 13:30:21 +00:00
<description >
2021-07-06 10:49:27 +00:00
Emitted when appending text that overflows the [member max_length]. The appended text is truncated to fit [member max_length], and the part that couldn't fit is passed as the [code]rejected_substring[/code] argument.
2020-01-12 13:30:21 +00:00
</description>
</signal>
2017-09-12 20:42:36 +00:00
<signal name= "text_changed" >
2022-08-06 18:11:48 +00:00
<param index= "0" name= "new_text" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2017-10-27 22:00:22 +00:00
Emitted when the text changes.
2017-09-12 20:42:36 +00:00
</description>
</signal>
2021-06-16 16:43:34 +00:00
<signal name= "text_submitted" >
2022-08-06 18:11:48 +00:00
<param index= "0" name= "new_text" type= "String" />
2017-09-12 20:42:36 +00:00
<description >
2019-03-29 22:37:35 +00:00
Emitted when the user presses [constant KEY_ENTER] on the [LineEdit].
2017-09-12 20:42:36 +00:00
</description>
</signal>
</signals>
<constants >
2017-11-24 22:16:30 +00:00
<constant name= "MENU_CUT" value= "0" enum= "MenuItems" >
2019-01-07 09:02:04 +00:00
Cuts (copies and clears) the selected text.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MENU_COPY" value= "1" enum= "MenuItems" >
2017-10-27 22:00:22 +00:00
Copies the selected text.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MENU_PASTE" value= "2" enum= "MenuItems" >
2021-03-28 18:31:25 +00:00
Pastes the clipboard text over the selected text (or at the caret's position).
2019-05-31 13:27:53 +00:00
Non-printable escape characters are automatically stripped from the OS clipboard via [method String.strip_escapes].
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MENU_CLEAR" value= "3" enum= "MenuItems" >
2019-03-29 22:37:35 +00:00
Erases the whole [LineEdit] text.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MENU_SELECT_ALL" value= "4" enum= "MenuItems" >
2019-03-29 22:37:35 +00:00
Selects the whole [LineEdit] text.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MENU_UNDO" value= "5" enum= "MenuItems" >
2017-10-27 22:00:22 +00:00
Undoes the previous action.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "MENU_REDO" value= "6" enum= "MenuItems" >
2018-10-13 15:36:30 +00:00
Reverse the last undo action.
2017-11-13 08:24:36 +00:00
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_SUBMENU_TEXT_DIR" value= "7" enum= "MenuItems" >
ID of "Text Writing Direction" submenu.
</constant>
<constant name= "MENU_DIR_INHERITED" value= "8" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Sets text direction to inherited.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_DIR_AUTO" value= "9" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Sets text direction to automatic.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_DIR_LTR" value= "10" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Sets text direction to left-to-right.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_DIR_RTL" value= "11" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Sets text direction to right-to-left.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_DISPLAY_UCC" value= "12" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Toggles control character display.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_SUBMENU_INSERT_UCC" value= "13" enum= "MenuItems" >
ID of "Insert Control Character" submenu.
</constant>
<constant name= "MENU_INSERT_LRM" value= "14" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts left-to-right mark (LRM) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_RLM" value= "15" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts right-to-left mark (RLM) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_LRE" value= "16" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts start of left-to-right embedding (LRE) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_RLE" value= "17" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts start of right-to-left embedding (RLE) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_LRO" value= "18" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts start of left-to-right override (LRO) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_RLO" value= "19" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts start of right-to-left override (RLO) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_PDF" value= "20" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts pop direction formatting (PDF) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_ALM" value= "21" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts Arabic letter mark (ALM) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_LRI" value= "22" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts left-to-right isolate (LRI) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_RLI" value= "23" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts right-to-left isolate (RLI) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_FSI" value= "24" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts first strong isolate (FSI) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_PDI" value= "25" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts pop direction isolate (PDI) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_ZWJ" value= "26" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts zero width joiner (ZWJ) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_ZWNJ" value= "27" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts zero width non-joiner (ZWNJ) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_WJ" value= "28" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts word joiner (WJ) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_INSERT_SHY" value= "29" enum= "MenuItems" >
2020-08-12 11:49:10 +00:00
Inserts soft hyphen (SHY) character.
</constant>
2023-01-26 17:59:41 +00:00
<constant name= "MENU_MAX" value= "30" enum= "MenuItems" >
2019-06-27 09:10:53 +00:00
Represents the size of the [enum MenuItems] enum.
2017-09-12 20:42:36 +00:00
</constant>
2022-07-07 18:20:10 +00:00
<constant name= "KEYBOARD_TYPE_DEFAULT" value= "0" enum= "VirtualKeyboardType" >
Default text virtual keyboard.
</constant>
<constant name= "KEYBOARD_TYPE_MULTILINE" value= "1" enum= "VirtualKeyboardType" >
Multiline virtual keyboard.
</constant>
<constant name= "KEYBOARD_TYPE_NUMBER" value= "2" enum= "VirtualKeyboardType" >
Virtual number keypad, useful for PIN entry.
</constant>
<constant name= "KEYBOARD_TYPE_NUMBER_DECIMAL" value= "3" enum= "VirtualKeyboardType" >
Virtual number keypad, useful for entering fractional numbers.
</constant>
<constant name= "KEYBOARD_TYPE_PHONE" value= "4" enum= "VirtualKeyboardType" >
Virtual phone number keypad.
</constant>
<constant name= "KEYBOARD_TYPE_EMAIL_ADDRESS" value= "5" enum= "VirtualKeyboardType" >
Virtual keyboard with additional keys to assist with typing email addresses.
</constant>
<constant name= "KEYBOARD_TYPE_PASSWORD" value= "6" enum= "VirtualKeyboardType" >
Virtual keyboard for entering a password. On most platforms, this should disable autocomplete and autocapitalization.
2022-08-28 18:27:45 +00:00
[b]Note:[/b] This is not supported on Web. Instead, this behaves identically to [constant KEYBOARD_TYPE_DEFAULT].
2022-07-07 18:20:10 +00:00
</constant>
<constant name= "KEYBOARD_TYPE_URL" value= "7" enum= "VirtualKeyboardType" >
Virtual keyboard with additional keys to assist with typing URLs.
</constant>
2017-09-12 20:42:36 +00:00
</constants>
<theme_items >
2021-12-30 16:22:06 +00:00
<theme_item name= "caret_color" data_type= "color" type= "Color" default= "Color(0.95, 0.95, 0.95, 1)" >
2021-11-13 22:06:47 +00:00
Color of the [LineEdit]'s caret (text cursor). This can be set to a fully transparent color to hide the caret entirely.
2021-03-28 18:31:25 +00:00
</theme_item>
2021-12-30 16:22:06 +00:00
<theme_item name= "clear_button_color" data_type= "color" type= "Color" default= "Color(0.875, 0.875, 0.875, 1)" >
2020-01-08 21:51:16 +00:00
Color used as default tint for the clear button.
2018-08-20 22:35:30 +00:00
</theme_item>
2021-08-04 16:54:41 +00:00
<theme_item name= "clear_button_color_pressed" data_type= "color" type= "Color" default= "Color(1, 1, 1, 1)" >
2020-01-08 21:51:16 +00:00
Color used for the clear button when it's pressed.
2018-08-20 22:35:30 +00:00
</theme_item>
2021-12-30 16:22:06 +00:00
<theme_item name= "font_color" data_type= "color" type= "Color" default= "Color(0.875, 0.875, 0.875, 1)" >
2020-01-08 21:51:16 +00:00
Default font color.
2017-09-12 20:42:36 +00:00
</theme_item>
2021-08-04 16:54:41 +00:00
<theme_item name= "font_outline_color" data_type= "color" type= "Color" default= "Color(1, 1, 1, 1)" >
2020-12-25 21:45:28 +00:00
The tint of text outline of the [LineEdit].
</theme_item>
2022-01-30 17:56:23 +00:00
<theme_item name= "font_placeholder_color" data_type= "color" type= "Color" default= "Color(0.875, 0.875, 0.875, 0.6)" >
Font color for [member placeholder_text].
</theme_item>
2021-12-30 16:22:06 +00:00
<theme_item name= "font_selected_color" data_type= "color" type= "Color" default= "Color(1, 1, 1, 1)" >
2020-01-08 21:51:16 +00:00
Font color for selected text (inside the selection rectangle).
2017-09-12 20:42:36 +00:00
</theme_item>
2021-12-30 16:22:06 +00:00
<theme_item name= "font_uneditable_color" data_type= "color" type= "Color" default= "Color(0.875, 0.875, 0.875, 0.5)" >
2021-01-28 10:26:37 +00:00
Font color when editing is disabled.
</theme_item>
2021-12-30 16:22:06 +00:00
<theme_item name= "selection_color" data_type= "color" type= "Color" default= "Color(0.5, 0.5, 0.5, 1)" >
2021-12-01 18:02:20 +00:00
Color of the selection rectangle.
</theme_item>
2021-11-13 22:06:47 +00:00
<theme_item name= "caret_width" data_type= "constant" type= "int" default= "1" >
The caret's width in pixels. Greater values can be used to improve accessibility by ensuring the caret is easily visible, or to ensure consistency with a large font size.
</theme_item>
2021-08-04 16:54:41 +00:00
<theme_item name= "minimum_character_width" data_type= "constant" type= "int" default= "4" >
2022-08-17 22:08:09 +00:00
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 number of 'M' characters can be displayed without scrolling).
2017-09-12 20:42:36 +00:00
</theme_item>
2021-08-04 16:54:41 +00:00
<theme_item name= "outline_size" data_type= "constant" type= "int" default= "0" >
2020-12-25 21:45:28 +00:00
The size of the text outline.
2022-12-19 16:15:44 +00:00
[b]Note:[/b] If using a font with [member FontFile.multichannel_signed_distance_field] enabled, its [member FontFile.msdf_pixel_range] must be set to at least [i]twice[/i] the value of [theme_item outline_size] for outline rendering to look correct. Otherwise, the outline may appear to be cut off earlier than intended.
2020-12-25 21:45:28 +00:00
</theme_item>
2021-12-01 18:02:20 +00:00
<theme_item name= "font" data_type= "font" type= "Font" >
Font used for the text.
</theme_item>
<theme_item name= "font_size" data_type= "font_size" type= "int" >
Font size of the [LineEdit]'s text.
</theme_item>
<theme_item name= "clear" data_type= "icon" type= "Texture2D" >
Texture for the clear button. See [member clear_button_enabled].
</theme_item>
<theme_item name= "focus" data_type= "style" type= "StyleBox" >
2021-11-20 16:43:34 +00:00
Background used when [LineEdit] has GUI focus. The [code]focus[/code] [StyleBox] is displayed [i]over[/i] the base [StyleBox], so a partially transparent [StyleBox] should be used to ensure the base [StyleBox] remains visible. A [StyleBox] that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a [StyleBoxEmpty] resource. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons.
2021-12-01 18:02:20 +00:00
</theme_item>
<theme_item name= "normal" data_type= "style" type= "StyleBox" >
Default background for the [LineEdit].
</theme_item>
2021-08-04 16:54:41 +00:00
<theme_item name= "read_only" data_type= "style" type= "StyleBox" >
2020-01-08 21:51:16 +00:00
Background used when [LineEdit] is in read-only mode ([member editable] is set to [code]false[/code]).
2017-09-12 20:42:36 +00:00
</theme_item>
</theme_items>
</class>