diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 20:38:41 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 23:00:08 +0100 |
commit | e65e41e2d6efccba983cd63aadfb10b5b4a935b2 (patch) | |
tree | 3833ea9b7bb989fd5c96d5d230b66b6d29a59794 /desktop/selection.h | |
parent | 36b9262e1481fc24d302b58f03006e733b2e6d16 (diff) | |
download | netsurf-e65e41e2d6efccba983cd63aadfb10b5b4a935b2.tar.gz netsurf-e65e41e2d6efccba983cd63aadfb10b5b4a935b2.tar.bz2 |
move content handler specific selection copying into handlers
Diffstat (limited to 'desktop/selection.h')
-rw-r--r-- | desktop/selection.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/selection.h b/desktop/selection.h index cfaf59baf..cc8d8da4e 100644 --- a/desktop/selection.h +++ b/desktop/selection.h @@ -29,6 +29,8 @@ struct box; struct browser_window; +struct plot_font_style; +struct selection_string; typedef enum { DRAG_NONE, @@ -218,4 +220,11 @@ char *selection_get_copy(struct selection *s); */ bool selection_highlighted(const struct selection *s, unsigned start, unsigned end, unsigned *start_idx, unsigned *end_idx); +bool +selection_string_append(const char *text, + size_t length, + bool space, + struct plot_font_style *style, + struct selection_string *sel_string); + #endif |