diff options
Diffstat (limited to 'desktop/textarea.h')
-rw-r--r-- | desktop/textarea.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/desktop/textarea.h b/desktop/textarea.h index ca02927b4..3c4c14d2b 100644 --- a/desktop/textarea.h +++ b/desktop/textarea.h @@ -35,13 +35,12 @@ struct text_area; -typedef void(*textarea_start_redraw_callback)(void *data); -typedef void(*textarea_end_redraw_callback)(void *data); +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, unsigned int flags, const plot_font_style_t *style, - textarea_start_redraw_callback redraw_start_callback, - textarea_end_redraw_callback redraw_end_callback, void *data); + 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); |