From dbfdafdf1820a95995c3b260e147c55125468874 Mon Sep 17 00:00:00 2001 From: Adrian Lees Date: Wed, 15 Feb 2006 23:09:55 +0000 Subject: [project @ 2006-02-15 23:09:53 by adrianl] Extend text selection, copying, saving and searching code to handle textplain contents; modified textplain code to accept other line terminators svn path=/import/netsurf/; revision=2081 --- render/html.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'render/html.h') diff --git a/render/html.h b/render/html.h index 959624d35..8ad0a7742 100644 --- a/render/html.h +++ b/render/html.h @@ -20,6 +20,7 @@ #include "netsurf/css/css.h" struct box; +struct rect; struct browser_window; struct content; struct form_successful_control; @@ -125,4 +126,17 @@ bool html_redraw(struct content *c, int x, int y, int clip_x0, int clip_y0, int clip_x1, int clip_y1, float scale, unsigned long background_colour); + +/* redraw a short text string, complete with highlighting + (for selection/search) and ghost caret */ + +bool text_redraw(const char *utf8_text, size_t utf8_len, + size_t offset, bool space, + struct css_style *style, + int x, int y, + struct rect *clip, + int height, + float scale, colour current_background_color, + bool excluded); + #endif -- cgit v1.2.3