mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
GTextEditor: Simplify computation of visual selection start/end
Add Line::visual_line_containing(int column) to easily convert a column number into a visual line index.
This commit is contained in:
parent
97a695403b
commit
fa20dcafb5
Notes:
sideshowbarker
2024-07-19 12:32:22 +09:00
Author: https://github.com/awesomekling
Commit: fa20dcafb5
2 changed files with 20 additions and 22 deletions
|
@ -203,6 +203,7 @@ private:
|
|||
void truncate(int length);
|
||||
void clear();
|
||||
void recompute_visual_lines();
|
||||
int visual_line_containing(int column) const;
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_visual_line(Callback) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue