summaryrefslogtreecommitdiff
path: root/content/handlers/html/textselection.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers/html/textselection.h')
-rw-r--r--content/handlers/html/textselection.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/content/handlers/html/textselection.h b/content/handlers/html/textselection.h
index 4a866b0b2..95d7078c5 100644
--- a/content/handlers/html/textselection.h
+++ b/content/handlers/html/textselection.h
@@ -36,4 +36,13 @@ nserror html_textselection_redraw(struct content *c, unsigned start_idx, unsigne
nserror html_textselection_copy(struct content *c, unsigned start_idx, unsigned end_idx, struct selection_string *selstr);
+/**
+ * get maximum index of text section.
+ *
+ * \param[in] c The content to measure
+ * \param[out] end_idx pointer to value to recive result
+ * \return NSERROR_OK and \a end_idx updated else error code
+ */
+nserror html_textselection_get_end(struct content *c, unsigned *end_idx);
+
#endif