diff options
Diffstat (limited to 'scene/gui/code_edit.h')
-rw-r--r-- | scene/gui/code_edit.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scene/gui/code_edit.h b/scene/gui/code_edit.h index d27536786e..c989e5ed79 100644 --- a/scene/gui/code_edit.h +++ b/scene/gui/code_edit.h @@ -71,6 +71,14 @@ private: Color line_number_color = Color(1, 1, 1); void _line_number_draw_callback(int p_line, int p_gutter, const Rect2 &p_region); + /* Fold Gutter */ + int fold_gutter = -1; + bool draw_fold_gutter = false; + Color folding_color = Color(1, 1, 1); + Ref<Texture2D> can_fold_icon = Ref<Texture2D>(); + Ref<Texture2D> folded_icon = Ref<Texture2D>(); + void _fold_gutter_draw_callback(int p_line, int p_gutter, Rect2 p_region); + void _gutter_clicked(int p_line, int p_gutter); void _lines_edited_from(int p_from_line, int p_to_line); @@ -116,6 +124,10 @@ public: void set_line_numbers_zero_padded(bool p_zero_padded); bool is_line_numbers_zero_padded() const; + /* Fold gutter */ + void set_draw_fold_gutter(bool p_draw); + bool is_drawing_fold_gutter() const; + CodeEdit(); ~CodeEdit(); }; |