diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-07-29 12:37:48 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-07-29 12:37:48 +0000 |
commit | 2d31d77a8ba231cb03ec35863c4c4ce2024f6509 (patch) | |
tree | b85ca1bede3e83695619064ee9a323f0a8da1865 /apps/gui/skin_engine/skin_display.h | |
parent | e436483b66a931fef6436e9cd3e69eb2b3ff1f7b (diff) | |
download | rockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.tar.gz rockbox-2d31d77a8ba231cb03ec35863c4c4ce2024f6509.zip |
FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27613 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_display.h')
-rw-r--r-- | apps/gui/skin_engine/skin_display.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_display.h b/apps/gui/skin_engine/skin_display.h new file mode 100644 index 0000000000..81274a7391 --- /dev/null +++ b/apps/gui/skin_engine/skin_display.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002-2007 Björn Stenberg | ||
11 | * Copyright (C) 2007-2008 Nicolas Pennequin | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or | ||
14 | * modify it under the terms of the GNU General Public License | ||
15 | * as published by the Free Software Foundation; either version 2 | ||
16 | * of the License, or (at your option) any later version. | ||
17 | * | ||
18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
19 | * KIND, either express or implied. | ||
20 | * | ||
21 | ****************************************************************************/ | ||
22 | #include "config.h" | ||
23 | #include <stdio.h> | ||
24 | #include "wps_internals.h" | ||
25 | #include "skin_engine.h" | ||
26 | #include "statusbar-skinned.h" | ||
27 | |||
28 | #ifndef _SKIN_DISPLAY_H_ | ||
29 | #define _SKIN_DISPLAY_H_ | ||
30 | |||
31 | |||
32 | #ifdef HAVE_LCD_BITMAP | ||
33 | void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb); | ||
34 | void draw_playlist_viewer_list(struct gui_wps *gwps, struct playlistviewer *viewer); | ||
35 | /* clears the area where the image was shown */ | ||
36 | void clear_image_pos(struct gui_wps *gwps, struct gui_img *img); | ||
37 | void wps_draw_image(struct gui_wps *gwps, struct gui_img *img, int subimage); | ||
38 | void wps_display_images(struct gui_wps *gwps, struct viewport* vp); | ||
39 | #else | ||
40 | bool draw_player_progress(struct gui_wps *gwps); | ||
41 | void draw_player_fullbar(struct gui_wps *gwps, char* buf, int buf_size); | ||
42 | #endif | ||
43 | |||
44 | /* Evaluate the conditional that is at *token_index and return whether a skip | ||
45 | has ocurred. *token_index is updated with the new position. | ||
46 | */ | ||
47 | int evaluate_conditional(struct gui_wps *gwps, struct conditional *conditional, int num_options); | ||
48 | /* Display a line appropriately according to its alignment format. | ||
49 | format_align contains the text, separated between left, center and right. | ||
50 | line is the index of the line on the screen. | ||
51 | scroll indicates whether the line is a scrolling one or not. | ||
52 | */ | ||
53 | void write_line(struct screen *display, | ||
54 | struct align_pos *format_align, | ||
55 | int line, | ||
56 | bool scroll); | ||
57 | void draw_peakmeters(struct gui_wps *gwps, int line_number, | ||
58 | struct viewport *viewport); | ||
59 | #endif | ||