godot/scene/gui/line_edit.cpp

/**************************************************************************/
/*  line_edit.cpp                                                         */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "line_edit.h"

#include "core/input/input_map.h"
#include "core/os/keyboard.h"
#include "core/os/os.h"
#include "core/string/print_string.h"
#include "core/string/translation.h"
#include "scene/gui/label.h"
#include "scene/main/window.h"
#include "scene/theme/theme_db.h"
#include "servers/display_server.h"
#include "servers/text_server.h"

#ifdef TOOLS_ENABLED
#include "editor/editor_settings.h"
#endif

void LineEdit::_swap_current_input_direction() {}

void LineEdit::_move_caret_left(bool p_select, bool p_move_by_word) {}

void LineEdit::_move_caret_right(bool p_select, bool p_move_by_word) {}

void LineEdit::_move_caret_start(bool p_select) {}

void LineEdit::_move_caret_end(bool p_select) {}

void LineEdit::_backspace(bool p_word, bool p_all_to_left) {}

void LineEdit::_delete(bool p_word, bool p_all_to_right) {}

void LineEdit::unhandled_key_input(const Ref<InputEvent> &p_event) {}

void LineEdit::gui_input(const Ref<InputEvent> &p_event) {}

void LineEdit::set_horizontal_alignment(HorizontalAlignment p_alignment) {}

HorizontalAlignment LineEdit::get_horizontal_alignment() const {}

Variant LineEdit::get_drag_data(const Point2 &p_point) {}

bool LineEdit::can_drop_data(const Point2 &p_point, const Variant &p_data) const {}

void LineEdit::drop_data(const Point2 &p_point, const Variant &p_data) {}

Control::CursorShape LineEdit::get_cursor_shape(const Point2 &p_pos) const {}

bool LineEdit::_is_over_clear_button(const Point2 &p_pos) const {}

void LineEdit::_update_theme_item_cache() {}

void LineEdit::_notification(int p_what) {}

void LineEdit::copy_text() {}

void LineEdit::cut_text() {}

void LineEdit::paste_text() {}

bool LineEdit::has_undo() const {}

bool LineEdit::has_redo() const {}

void LineEdit::undo() {}

void LineEdit::redo() {}

void LineEdit::shift_selection_check_pre(bool p_shift) {}

void LineEdit::shift_selection_check_post(bool p_shift) {}

void LineEdit::set_caret_at_pixel_pos(int p_x) {}

Vector2 LineEdit::get_caret_pixel_pos() {}

void LineEdit::set_caret_mid_grapheme_enabled(const bool p_enabled) {}

bool LineEdit::is_caret_mid_grapheme_enabled() const {}

bool LineEdit::is_caret_blink_enabled() const {}

void LineEdit::set_caret_blink_enabled(const bool p_enabled) {}

bool LineEdit::is_caret_force_displayed() const {}

void LineEdit::set_caret_force_displayed(const bool p_enabled) {}

float LineEdit::get_caret_blink_interval() const {}

void LineEdit::set_caret_blink_interval(const float p_interval) {}

void LineEdit::_reset_caret_blink_timer() {}

void LineEdit::_toggle_draw_caret() {}

void LineEdit::_validate_caret_can_draw() {}

void LineEdit::delete_char() {}

void LineEdit::delete_text(int p_from_column, int p_to_column) {}

void LineEdit::set_text(String p_text) {}

void LineEdit::set_text_with_selection(const String &p_text) {}

void LineEdit::set_text_direction(Control::TextDirection p_text_direction) {}

Control::TextDirection LineEdit::get_text_direction() const {}

void LineEdit::set_language(const String &p_language) {}

String LineEdit::get_language() const {}

void LineEdit::set_draw_control_chars(bool p_draw_control_chars) {}

bool LineEdit::get_draw_control_chars() const {}

void LineEdit::set_structured_text_bidi_override(TextServer::StructuredTextParser p_parser) {}

TextServer::StructuredTextParser LineEdit::get_structured_text_bidi_override() const {}

void LineEdit::set_structured_text_bidi_override_options(Array p_args) {}

Array LineEdit::get_structured_text_bidi_override_options() const {}

void LineEdit::clear() {}

void LineEdit::show_virtual_keyboard() {}

String LineEdit::get_text() const {}

void LineEdit::set_placeholder(String p_text) {}

String LineEdit::get_placeholder() const {}

void LineEdit::set_caret_column(int p_column) {}

int LineEdit::get_caret_column() const {}

void LineEdit::set_scroll_offset(float p_pos) {}

float LineEdit::get_scroll_offset() const {}

void LineEdit::insert_text_at_caret(String p_text) {}

void LineEdit::clear_internal() {}

Size2 LineEdit::get_minimum_size() const {}

void LineEdit::deselect() {}

bool LineEdit::has_selection() const {}

String LineEdit::get_selected_text() {}

int LineEdit::get_selection_from_column() const {}

int LineEdit::get_selection_to_column() const {}

void LineEdit::selection_delete() {}

void LineEdit::set_max_length(int p_max_length) {}

int LineEdit::get_max_length() const {}

void LineEdit::selection_fill_at_caret() {}

void LineEdit::select_all() {}

void LineEdit::set_editable(bool p_editable) {}

bool LineEdit::is_editable() const {}

void LineEdit::set_secret(bool p_secret) {}

bool LineEdit::is_secret() const {}

void LineEdit::set_secret_character(const String &p_string) {}

String LineEdit::get_secret_character() const {}

void LineEdit::select(int p_from, int p_to) {}

bool LineEdit::is_text_field() const {}

void LineEdit::menu_option(int p_option) {}

void LineEdit::set_context_menu_enabled(bool p_enable) {}

bool LineEdit::is_context_menu_enabled() {}

bool LineEdit::is_menu_visible() const {}

PopupMenu *LineEdit::get_menu() const {}

void LineEdit::_editor_settings_changed() {}

void LineEdit::set_expand_to_text_length_enabled(bool p_enabled) {}

bool LineEdit::is_expand_to_text_length_enabled() const {}

void LineEdit::set_clear_button_enabled(bool p_enabled) {}

bool LineEdit::is_clear_button_enabled() const {}

void LineEdit::set_shortcut_keys_enabled(bool p_enabled) {}

bool LineEdit::is_shortcut_keys_enabled() const {}

void LineEdit::set_virtual_keyboard_enabled(bool p_enable) {}

bool LineEdit::is_virtual_keyboard_enabled() const {}

void LineEdit::set_virtual_keyboard_type(VirtualKeyboardType p_type) {}

LineEdit::VirtualKeyboardType LineEdit::get_virtual_keyboard_type() const {}

void LineEdit::set_middle_mouse_paste_enabled(bool p_enabled) {}

bool LineEdit::is_middle_mouse_paste_enabled() const {}

void LineEdit::set_selecting_enabled(bool p_enabled) {}

bool LineEdit::is_selecting_enabled() const {}

void LineEdit::set_deselect_on_focus_loss_enabled(const bool p_enabled) {}

bool LineEdit::is_deselect_on_focus_loss_enabled() const {}

void LineEdit::set_drag_and_drop_selection_enabled(const bool p_enabled) {}

bool LineEdit::is_drag_and_drop_selection_enabled() const {}

void LineEdit::set_right_icon(const Ref<Texture2D> &p_icon) {}

Ref<Texture2D> LineEdit::get_right_icon() {}

void LineEdit::set_flat(bool p_enabled) {}

bool LineEdit::is_flat() const {}

void LineEdit::set_select_all_on_focus(bool p_enabled) {}

bool LineEdit::is_select_all_on_focus() const {}

void LineEdit::clear_pending_select_all_on_focus() {}

void LineEdit::_text_changed() {}

void LineEdit::_emit_text_change() {}
PackedStringArray LineEdit::get_configuration_warnings() const {}

void LineEdit::_shape() {}

void LineEdit::_fit_to_width() {}

void LineEdit::_clear_redo() {}

void LineEdit::_clear_undo_stack() {}

void LineEdit::_create_undo_state() {}

Key LineEdit::_get_menu_action_accelerator(const String &p_action) {}

void LineEdit::_generate_context_menu() {}

void LineEdit::_update_context_menu() {}

void LineEdit::_validate_property(PropertyInfo &p_property) const {}

void LineEdit::_bind_methods() {}

LineEdit::LineEdit(const String &p_placeholder) {}

LineEdit::~LineEdit() {}