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:
parent
60c1ab5fbe
commit
9997992907
2 changed files with 12 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue