1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

LibGUI: Add GTextDocument::text_in_range(GTextRange)

This function returns a String containing the text in a given range.
GTextEditor::selected_text() is now just a wrapper around this.
This commit is contained in:
Andreas Kling 2019-10-29 21:36:47 +01:00
parent c1efa4f336
commit bddba567b3
3 changed files with 21 additions and 12 deletions

View file

@ -59,6 +59,8 @@ public:
void update_views(Badge<GTextDocumentLine>);
String text_in_range(const GTextRange&) const;
private:
explicit GTextDocument(Client* client);