diff options
Diffstat (limited to 'render/html.h')
-rw-r--r-- | render/html.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 |