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:
parent
c1efa4f336
commit
bddba567b3
3 changed files with 21 additions and 12 deletions
|
@ -59,6 +59,8 @@ public:
|
|||
|
||||
void update_views(Badge<GTextDocumentLine>);
|
||||
|
||||
String text_in_range(const GTextRange&) const;
|
||||
|
||||
private:
|
||||
explicit GTextDocument(Client* client);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue