aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/line_edit.h
diff options
context:
space:
mode:
authorHubert Jarosz2016-03-09 00:00:52 +0100
committerHubert Jarosz2016-03-09 00:00:52 +0100
commit4a4f2479146aa33e235ed57cde311efda68d3c8f (patch)
treecf91f2869ff8f058c6682569fb31e22e5ee736ad /scene/gui/line_edit.h
parent1dad6eca812e5c2e313b54265114de8a1d73d999 (diff)
downloadgodot-4a4f2479146aa33e235ed57cde311efda68d3c8f.tar.gz
godot-4a4f2479146aa33e235ed57cde311efda68d3c8f.tar.zst
godot-4a4f2479146aa33e235ed57cde311efda68d3c8f.zip
Diffstat (limited to 'scene/gui/line_edit.h')
-rw-r--r--scene/gui/line_edit.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h
index bf6459361..207c6b115 100644
--- a/scene/gui/line_edit.h
+++ b/scene/gui/line_edit.h
@@ -34,7 +34,7 @@
@author Juan Linietsky <reduzio@gmail.com>
*/
class LineEdit : public Control {
-
+
OBJ_TYPE( LineEdit, Control );
public:
@@ -50,18 +50,18 @@ private:
bool editable;
bool pass;
-
+
String undo_text;
String text;
-
+
int cursor_pos;
int window_pos;
int max_length; // 0 for no maximum
int cached_width;
-
+
struct Selection {
-
+
int begin;
int end;
int cursor_start;
@@ -71,41 +71,41 @@ private:
bool doubleclick;
bool drag_attempt;
} selection;
-
+
void shift_selection_check_pre(bool);
void shift_selection_check_post(bool);
-
+
void selection_clear();
void selection_fill_at_cursor();
void selection_delete();
void set_window_pos(int p_pos);
-
+
void set_cursor_at_pixel_pos(int p_x);
-
+
void clear_internal();
void changed_internal();
-
+
void copy_text();
void cut_text();
void paste_text();
-
+
void _input_event(InputEvent p_event);
void _notification(int p_what);
-
-protected:
- static void _bind_methods();
+
+protected:
+ static void _bind_methods();
public:
void set_align(Align p_align);
Align get_align() const;
-
+
virtual Variant get_drag_data(const Point2& p_point);
virtual bool can_drop_data(const Point2& p_point,const Variant& p_data) const;
virtual void drop_data(const Point2& p_point,const Variant& p_data);
-
+
void select_all();
-
+
void delete_char();
void set_text(String p_text);
String get_text() const;
@@ -115,11 +115,11 @@ public:
int get_max_length() const;
void append_at_cursor(String p_text);
void clear();
-
-
+
+
void set_editable(bool p_editable);
bool is_editable() const;
-
+
void set_secret(bool p_secret);
bool is_secret() const;
@@ -130,7 +130,7 @@ public:
virtual bool is_text_field() const;
LineEdit();
~LineEdit();
-
+
};