mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 08:51:57 +00:00
LibLine: Support wrapping lines in actual_rendered_string_metrics
This will allow us to use this API to split an input to visible lines of a specified width.
This commit is contained in:
parent
6f28c8deb0
commit
299ca10fd5
Notes:
sideshowbarker
2024-07-17 09:37:30 +09:00
Author: https://github.com/LucasChollet
Commit: 299ca10fd5
Pull-request: https://github.com/SerenityOS/serenity/pull/15976
Issue: https://github.com/SerenityOS/serenity/issues/15242
Reviewed-by: https://github.com/alimpfard
3 changed files with 42 additions and 8 deletions
|
@ -20,6 +20,8 @@ struct StringMetrics {
|
|||
struct LineMetrics {
|
||||
Vector<MaskedChar> masked_chars;
|
||||
size_t length { 0 };
|
||||
size_t visible_length { 0 };
|
||||
Optional<size_t> bit_length { 0 };
|
||||
|
||||
size_t total_length() const { return length; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue