aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/line_edit.h
diff options
context:
space:
mode:
authorPaulb232016-06-21 00:05:52 +0100
committerPaulb232016-06-22 13:20:48 +0100
commite65eba664fcb333256e88a34da0c790b7d4c37ea (patch)
tree15e4caa6acf4e842930999e3d0c99a442abe4b06 /scene/gui/line_edit.h
parent0266d752b3e0b2c5d5234ffd16ea19709bd0c8dd (diff)
downloadgodot-e65eba664fcb333256e88a34da0c790b7d4c37ea.tar.gz
godot-e65eba664fcb333256e88a34da0c790b7d4c37ea.tar.zst
godot-e65eba664fcb333256e88a34da0c790b7d4c37ea.zip
Added caret blink to line edit
Diffstat (limited to '')
-rw-r--r--scene/gui/line_edit.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h
index ce3958db0..bcacb441c 100644
--- a/scene/gui/line_edit.h
+++ b/scene/gui/line_edit.h
@@ -87,6 +87,10 @@ private:
bool drag_attempt;
} selection;
+ Timer *caret_blink_timer;
+ bool caret_blink_enabled;
+ bool draw_caret;
+
void shift_selection_check_pre(bool);
void shift_selection_check_post(bool);
@@ -97,6 +101,9 @@ private:
void set_cursor_at_pixel_pos(int p_x);
+ void _reset_caret_blink_timer();
+ void _toggle_draw_caret();
+
void clear_internal();
void changed_internal();
@@ -132,6 +139,12 @@ public:
void append_at_cursor(String p_text);
void clear();
+ bool cursor_get_blink_enabled() const;
+ void cursor_set_blink_enabled(const bool p_enabled);
+
+ float cursor_get_blink_speed() const;
+ void cursor_set_blink_speed(const float p_speed);
+
void copy_text();
void cut_text();
void paste_text();