summaryrefslogtreecommitdiff
path: root/apps/gui/textarea.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/textarea.h')
-rw-r--r--apps/gui/textarea.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/gui/textarea.h b/apps/gui/textarea.h
index 5249aed7a5..b1af1a5aba 100644
--- a/apps/gui/textarea.h
+++ b/apps/gui/textarea.h
@@ -23,6 +23,12 @@
23#include "settings.h" 23#include "settings.h"
24#include "statusbar.h" 24#include "statusbar.h"
25 25
26struct text_message
27{
28 char **message_lines;
29 int nb_lines;
30};
31
26/* 32/*
27 * Clears the area in the screen in which text can be displayed 33 * Clears the area in the screen in which text can be displayed
28 * and sets the y margin properly 34 * and sets the y margin properly
@@ -46,6 +52,16 @@ extern void gui_textarea_update(struct screen * display);
46#endif 52#endif
47 53
48/* 54/*
55 * Displays message lines on the given screen
56 * - display : the screen structure
57 * - message : the lines to display
58 * - ystart : the lineon which we start displaying
59 * returns : the number of lines effectively displayed
60 */
61extern int gui_textarea_put_message(struct screen * display,
62 struct text_message * message,
63 int ystart);
64/*
49 * Compute the number of text lines the display can draw with the current font 65 * Compute the number of text lines the display can draw with the current font
50 * Also updates the char height and width 66 * Also updates the char height and width
51 * - display : the screen structure 67 * - display : the screen structure