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

GTextEditor: Make the cursor invalidation work with the padding().

This commit is contained in:
Andreas Kling 2019-03-07 13:54:02 +01:00
parent 60c1ab5fbe
commit 9997992907
2 changed files with 12 additions and 4 deletions

View file

@ -37,12 +37,13 @@ public:
void set_text(const String&);
int content_width() const;
int content_height() const;
Rect visible_content_rect() const;
void scroll_cursor_into_view();
int line_count() const { return m_lines.size(); }
int line_spacing() const { return m_line_spacing; }
int line_height() const { return font().glyph_height() + m_line_spacing; }
int padding() const { return 2; }
int padding() const { return 3; }
GTextPosition cursor() const { return m_cursor; }
private: