summaryrefslogtreecommitdiff
path: root/desktop/textarea.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-02-13 13:37:46 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-02-13 13:37:46 +0000
commit553c55b07a4aeb190f18806058f51ce2a10d9dd6 (patch)
tree5c5b1be7593c6f854209feb1a05c7db4a1463e18 /desktop/textarea.h
parent08a229161b0cadb2c7db873085830271c5511573 (diff)
downloadnetsurf-553c55b07a4aeb190f18806058f51ce2a10d9dd6.tar.gz
netsurf-553c55b07a4aeb190f18806058f51ce2a10d9dd6.tar.bz2
Move selection clearing into a function, and expose it in the header file.
Diffstat (limited to 'desktop/textarea.h')
-rw-r--r--desktop/textarea.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/textarea.h b/desktop/textarea.h
index d01cd12c6..3fedeee35 100644
--- a/desktop/textarea.h
+++ b/desktop/textarea.h
@@ -198,6 +198,14 @@ bool textarea_mouse_action(struct textarea *ta, browser_mouse_state mouse,
int x, int y);
/**
+ * Clear any selection in the textarea.
+ *
+ * \param ta textarea widget
+ * \return true if there was a selection to clear, false otherwise
+ */
+bool textarea_clear_selection(struct textarea *ta);
+
+/**
* Gets the dimensions of a textarea
*
* \param ta textarea widget