diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-08-12 15:30:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-12 15:30:12 +0200 |
| commit | a695a6764eedc3f67fbc7796a78722d803d2c30f (patch) | |
| tree | c794f12bb45722731db4a86e9fb5294c24a786e1 /scene/gui/code_edit.h | |
| parent | 975a63e6f78d98d67cf2753a9cb7b78f2999156d (diff) | |
| parent | a4606c2806c37d166dd57a87f70298d91a6d072b (diff) | |
| download | redot-engine-a695a6764eedc3f67fbc7796a78722d803d2c30f.tar.gz | |
Merge pull request #50371 from Paulb23/text_edit_cleanup
Diffstat (limited to 'scene/gui/code_edit.h')
| -rw-r--r-- | scene/gui/code_edit.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/scene/gui/code_edit.h b/scene/gui/code_edit.h index 72fdc6e787..558c7adaea 100644 --- a/scene/gui/code_edit.h +++ b/scene/gui/code_edit.h @@ -233,16 +233,29 @@ private: String symbol_lookup_new_word = ""; String symbol_lookup_word = ""; + /* Visual */ + Ref<StyleBox> style_normal; + + Ref<Font> font; + int font_size = 16; + + int line_spacing = 1; + protected: void _gui_input(const Ref<InputEvent> &p_gui_input) override; void _notification(int p_what); static void _bind_methods(); + /* Text manipulation */ + + // Overridable actions + virtual void _handle_unicode_input(const uint32_t p_unicode) override; + virtual void _backspace() override; + public: /* General overrides */ virtual CursorShape get_cursor_shape(const Point2 &p_pos = Point2i()) const override; - virtual void handle_unicode_input(uint32_t p_unicode) override; /* Indent management */ void set_indent_size(const int p_size); @@ -263,8 +276,6 @@ public: void indent_lines(); void unindent_lines(); - virtual void backspace() override; - /* Auto brace completion */ void set_auto_brace_completion_enabled(bool p_enabled); bool is_auto_brace_completion_enabled() const; |
