aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.h
diff options
context:
space:
mode:
authorIan2018-01-12 00:25:04 -0500
committerIan2018-01-12 00:25:04 -0500
commitd327f75392b97bee4ad3debd4560cc7c06fc68ab (patch)
tree5c9877457b5e155fd4c10f8513daeaa8327ad1ed /scene/gui/text_edit.h
parent2cde466ebdb6237b6f72ef78614dc05f2ffb551b (diff)
downloadgodot-d327f75392b97bee4ad3debd4560cc7c06fc68ab.tar.gz
godot-d327f75392b97bee4ad3debd4560cc7c06fc68ab.tar.zst
godot-d327f75392b97bee4ad3debd4560cc7c06fc68ab.zip
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r--scene/gui/text_edit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h
index 88121a06f..d4f97cc0e 100644
--- a/scene/gui/text_edit.h
+++ b/scene/gui/text_edit.h
@@ -162,7 +162,7 @@ class TextEdit : public Control {
void set_color_regions(const Vector<ColorRegion> *p_regions) { color_regions = p_regions; }
int get_line_width(int p_line) const;
int get_max_width(bool p_exclude_hidden = false) const;
- const Map<int, ColorRegionInfo> &get_color_region_info(int p_line);
+ const Map<int, ColorRegionInfo> &get_color_region_info(int p_line) const;
void set(int p_line, const String &p_text);
void set_marked(int p_line, bool p_marked) { text[p_line].marked = p_marked; }
bool is_marked(int p_line) const { return text[p_line].marked; }
@@ -449,6 +449,7 @@ public:
void indent_left();
void indent_right();
int get_indent_level(int p_line) const;
+ bool is_line_comment(int p_line) const;
inline void set_scroll_pass_end_of_file(bool p_enabled) {
scroll_past_end_of_file_enabled = p_enabled;