path: root/desktop/textarea.h
diff options
authorMichael Drake <>2009-08-13 22:10:36 +0000
committerMichael Drake <>2009-08-13 22:10:36 +0000
commit3549846a9aec635bea82a919c5c1e38c7163731a (patch)
treea164f50940fc8a4f996fb6c9fd20737c85608c98 /desktop/textarea.h
parent41ff11a6ea150d387e4b20ae03c95a467e2e752a (diff)
Make textarea widget unaware of its global position. Credit: paulblokus.
svn path=/trunk/netsurf/; revision=9274
Diffstat (limited to 'desktop/textarea.h')
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/textarea.h b/desktop/textarea.h
index 3c4c14d2b..04c269d3c 100644
--- a/desktop/textarea.h
+++ b/desktop/textarea.h
@@ -38,16 +38,16 @@ struct text_area;
typedef void(*textarea_redraw_request_callback)(void *data, int x, int y,
int width, int height);
-struct text_area *textarea_create(int x, int y, int width, int height,
+struct text_area *textarea_create(int width, int height,
unsigned int flags, const plot_font_style_t *style,
textarea_redraw_request_callback redraw_request, void *data);
-void textarea_set_position(struct text_area *ta, int x, int y);
void textarea_destroy(struct text_area *ta);
bool textarea_set_text(struct text_area *ta, const char *text);
int textarea_get_text(struct text_area *ta, char *buf, unsigned int len);
bool textarea_set_caret(struct text_area *ta, int caret);
int textarea_get_caret(struct text_area *ta);
-void textarea_redraw(struct text_area *ta, int x0, int y0, int x1, int y1);
+void textarea_redraw(struct text_area *ta, int x, int y,
+ int x0, int y0, int x1, int y1);
bool textarea_keypress(struct text_area *ta, uint32_t key);
bool textarea_mouse_action(struct text_area *ta, browser_mouse_state mouse,
int x, int y);