diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-08 16:05:44 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-08 16:05:44 +0000 |
commit | 59d24187f757463b1fef6c8c9ba4ebbc1952f74d (patch) | |
tree | 71f402267ac7a4e4a148a7008956a26ee95db91d /desktop/textarea.h | |
parent | 0a4e1a05e3a916fb13948e3801571131ffd10766 (diff) | |
download | netsurf-59d24187f757463b1fef6c8c9ba4ebbc1952f74d.tar.gz netsurf-59d24187f757463b1fef6c8c9ba4ebbc1952f74d.tar.bz2 |
Support dropping text file on textarea widget.
Diffstat (limited to 'desktop/textarea.h')
-rw-r--r-- | desktop/textarea.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/textarea.h b/desktop/textarea.h index 560f1ca28..566e0cf6c 100644 --- a/desktop/textarea.h +++ b/desktop/textarea.h @@ -124,6 +124,16 @@ void textarea_destroy(struct textarea *ta); bool textarea_set_text(struct textarea *ta, const char *text); /** + * Insert the text in a text area at the caret, replacing any selection. + * + * \param ta Text area + * \param text UTF-8 text to set text area's contents to + * \return true on success, false on memory exhaustion or if ta lacks caret + */ +bool textarea_drop_text(struct textarea *ta, const char *text, + size_t text_length); + +/** * Extract the text from a text area * * \param ta Text area |