summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2020-09-20 20:58:46 +0300
committerAndreas Kling <kling@serenityos.org>2020-09-21 20:16:03 +0200
commitb7bd2ed9d2e3343d806c2cd92ff52f2ed0087cf1 (patch)
tree70357d46fadd99be7d846596a7070d631102b9ff /Libraries/LibGUI
parent7d6e6eb268295f08ef2afac7de6659a29ed9f53d (diff)
downloadserenity-b7bd2ed9d2e3343d806c2cd92ff52f2ed0087cf1.zip
HackStudio: Add auto-complete capability to the Editor
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r--Libraries/LibGUI/TextEditor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/TextEditor.h b/Libraries/LibGUI/TextEditor.h
index 0bdb68258a..175361487d 100644
--- a/Libraries/LibGUI/TextEditor.h
+++ b/Libraries/LibGUI/TextEditor.h
@@ -186,6 +186,8 @@ protected:
TextPosition text_position_at(const Gfx::IntPoint&) const;
bool ruler_visible() const { return m_ruler_visible; }
+ Gfx::IntRect content_rect_for_position(const TextPosition&) const;
+ int ruler_width() const;
private:
friend class TextDocumentLine;
@@ -231,7 +233,6 @@ private:
Gfx::IntRect line_content_rect(size_t item_index) const;
Gfx::IntRect line_widget_rect(size_t line_index) const;
Gfx::IntRect cursor_content_rect() const;
- Gfx::IntRect content_rect_for_position(const TextPosition&) const;
void update_cursor();
const NonnullOwnPtrVector<TextDocumentLine>& lines() const { return document().lines(); }
NonnullOwnPtrVector<TextDocumentLine>& lines() { return document().lines(); }
@@ -239,7 +240,6 @@ private:
const TextDocumentLine& line(size_t index) const { return document().line(index); }
TextDocumentLine& current_line() { return line(m_cursor.line()); }
const TextDocumentLine& current_line() const { return line(m_cursor.line()); }
- int ruler_width() const;
void toggle_selection_if_needed_for_event(const KeyEvent&);
void delete_selection();
void did_update_selection();