summaryrefslogtreecommitdiff
path: root/desktop/textarea.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-09-18 20:18:20 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2017-09-18 23:18:44 +0100
commit2a294adfb179f8209f074e6ff810b0526c6dd4fb (patch)
tree231fe2ceb530ed6d2b4577119de37a9417836363 /desktop/textarea.h
parent4d842226546bf1abb84dbdce798d99490845d200 (diff)
downloadnetsurf-2a294adfb179f8209f074e6ff810b0526c6dd4fb.tar.gz
netsurf-2a294adfb179f8209f074e6ff810b0526c6dd4fb.tar.bz2
Textarea: Add API to access current textarea contents.
Diffstat (limited to 'desktop/textarea.h')
-rw-r--r--desktop/textarea.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/textarea.h b/desktop/textarea.h
index 898609730..b386e50e8 100644
--- a/desktop/textarea.h
+++ b/desktop/textarea.h
@@ -213,6 +213,16 @@ int textarea_get_text(struct textarea *ta, char *buf, unsigned int len);
/**
+ * Access text data in a text area
+ *
+ * \param[in] ta Text area
+ * \param[out] len Returns byte length of returned text, if passed non-NULL.
+ * \return textarea string data.
+ */
+const char * textarea_data(struct textarea *ta, unsigned int *len);
+
+
+/**
* Set the caret's position
*
* \param ta Text area