diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 18:39:25 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 23:00:08 +0100 |
commit | 36b9262e1481fc24d302b58f03006e733b2e6d16 (patch) | |
tree | a2189e438023c837d8b8949b7c38e54fa143cab1 /content/content_protected.h | |
parent | 0432d9556187d00fd7f78963afcefc4b7dd71f2a (diff) | |
download | netsurf-36b9262e1481fc24d302b58f03006e733b2e6d16.tar.gz netsurf-36b9262e1481fc24d302b58f03006e733b2e6d16.tar.bz2 |
split selection redraw into content handler specific implementations
Diffstat (limited to 'content/content_protected.h')
-rw-r--r-- | content/content_protected.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -112,6 +112,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 */ nserror (*create_selection)(struct content *c, struct selection **sel_out); |