summaryrefslogtreecommitdiff
path: root/render/html.h
diff options
context:
space:
mode:
authorAdrian Lees <adrian@aemulor.com>2006-02-15 23:09:55 +0000
committerAdrian Lees <adrian@aemulor.com>2006-02-15 23:09:55 +0000
commitdbfdafdf1820a95995c3b260e147c55125468874 (patch)
tree8ef69f8cbc4733490f82b462edeb167c0ee08fb8 /render/html.h
parent07d55db910095415d15cc2b6509fd44efa79a875 (diff)
downloadnetsurf-dbfdafdf1820a95995c3b260e147c55125468874.tar.gz
netsurf-dbfdafdf1820a95995c3b260e147c55125468874.tar.bz2
[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
Diffstat (limited to 'render/html.h')
-rw-r--r--render/html.h14
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