mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 05:17:34 +00:00
GTextEditor: Add a ruler column that always shows the line numbers.
This commit is contained in:
parent
f13c62f225
commit
9867fe1025
3 changed files with 52 additions and 7 deletions
|
@ -93,6 +93,8 @@ private:
|
|||
const Line& current_line() const { return *m_lines[m_cursor.line()]; }
|
||||
GTextPosition text_position_at(const Point&) const;
|
||||
void insert_at_cursor(char);
|
||||
int ruler_width() const;
|
||||
Rect ruler_content_rect(int line) const;
|
||||
|
||||
GScrollBar* m_vertical_scrollbar { nullptr };
|
||||
GScrollBar* m_horizontal_scrollbar { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue