From 36b9262e1481fc24d302b58f03006e733b2e6d16 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 23 May 2020 18:39:25 +0100 Subject: split selection redraw into content handler specific implementations --- content/content_protected.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'content/content_protected.h') diff --git a/content/content_protected.h b/content/content_protected.h index 881a43268..9a3654beb 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -111,6 +111,16 @@ struct content_handler { */ nserror (*textsearch_bounds)(struct content *c, unsigned start_idx, unsigned end_idx, struct box *start_ptr, struct box *end_ptr, struct rect *bounds_out); + /** + * cause a region of the content to be marked invalid and hence redraw + * + * \param c The content being redrawn + * \param start_idx The start index of the text region to be redrawn + * \param end_idx The end index of teh text region to be redrawn + * \return NSERROR_OK on success else error code + */ + nserror (*textselection_redraw)(struct content *c, unsigned start_idx, unsigned end_idx); + /** * create a selection object */ -- cgit v1.2.3