summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2020-09-18 10:36:10 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2020-11-26 14:25:50 +0200
commit3be31c496089b413c87ca1411726dddc5dd0e7d6 (patch)
tree84b3df317a6da05c63a029f7ab8d0375180caa12 /editor/code_editor.h
parentd66eb77c9c4d8906f94180a3ba542a025bc45aae (diff)
downloadredot-engine-3be31c496089b413c87ca1411726dddc5dd0e7d6.tar.gz
[Complex Text Layouts] Refactor TextEdit and CodeEdit controls.
Diffstat (limited to 'editor/code_editor.h')
-rw-r--r--editor/code_editor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/code_editor.h b/editor/code_editor.h
index d8f89d440e..b38170cbf5 100644
--- a/editor/code_editor.h
+++ b/editor/code_editor.h
@@ -151,6 +151,7 @@ class CodeTextEditor : public VBoxContainer {
Timer *idle;
Timer *code_complete_timer;
+ Timer *font_resize_timer;
int font_resize_val;
real_t font_size;
@@ -163,11 +164,14 @@ class CodeTextEditor : public VBoxContainer {
void _update_font();
void _complete_request();
Ref<Texture2D> _get_completion_icon(const ScriptCodeCompletionOption &p_option);
+ void _font_resize_timeout();
+ bool _add_font_size(int p_delta);
void _input(const Ref<InputEvent> &event);
void _text_editor_gui_input(const Ref<InputEvent> &p_event);
void _zoom_in();
void _zoom_out();
+ void _zoom_changed();
void _reset_zoom();
Color completion_font_color;