diff options
author | Kevin Ferrare <kevin@rockbox.org> | 2005-11-18 02:07:02 +0000 |
---|---|---|
committer | Kevin Ferrare <kevin@rockbox.org> | 2005-11-18 02:07:02 +0000 |
commit | 8719f0913a0f2d8a90e9ecbc7c0e5336369af6be (patch) | |
tree | b336928b98e48a15d0d1c176105fa21ac557b7c9 /apps/gui/textarea.h | |
parent | ec0a8a749bbc3aa25bf4c136352725bd9d2532b5 (diff) | |
download | rockbox-8719f0913a0f2d8a90e9ecbc7c0e5336369af6be.tar.gz rockbox-8719f0913a0f2d8a90e9ecbc7c0e5336369af6be.zip |
generic multi-screen support for yes/no screens (like the one when reseting settings or when firmware has changed)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7951 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/textarea.h')
-rw-r--r-- | apps/gui/textarea.h | 16 |
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 | ||
26 | struct 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 | */ | ||
61 | extern 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 |