1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

HackStudio: GUI support for setting breakpoints on source code lines

This commit is contained in:
Itamar 2020-04-24 23:48:25 +03:00 committed by Andreas Kling
parent 009b4ea3f4
commit 393560d8a2
7 changed files with 135 additions and 6 deletions

View file

@ -151,8 +151,10 @@ protected:
virtual void resize_event(ResizeEvent&) override;
virtual void theme_change_event(ThemeChangeEvent&) override;
virtual void cursor_did_change() {}
Gfx::Rect ruler_content_rect(size_t line) const;
TextPosition text_position_at(const Gfx::Point&) const;
bool ruler_visible() const { return m_ruler_visible; }
private:
friend class TextDocumentLine;
@ -183,7 +185,6 @@ private:
TextDocumentLine& current_line() { return line(m_cursor.line()); }
const TextDocumentLine& current_line() const { return line(m_cursor.line()); }
int ruler_width() const;
Gfx::Rect ruler_content_rect(size_t line) const;
void toggle_selection_if_needed_for_event(const KeyEvent&);
void delete_selection();
void did_update_selection();