mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
GTextEditor: Clean up some of the rect computations
Moving some rect computations to separate functions to make it easier to reuse them.
This commit is contained in:
parent
ac7a559d96
commit
23b70d5c59
2 changed files with 31 additions and 9 deletions
|
@ -226,6 +226,8 @@ private:
|
|||
void did_update_selection();
|
||||
int content_x_for_position(const GTextPosition&) const;
|
||||
char character_at(const GTextPosition&) const;
|
||||
Rect ruler_rect_in_inner_coordinates() const;
|
||||
Rect visible_text_rect_in_inner_coordinates() const;
|
||||
|
||||
Type m_type { MultiLine };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue