summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_display.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/skin_display.h')
-rw-r--r--apps/gui/skin_engine/skin_display.h59
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
33void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb);
34void draw_playlist_viewer_list(struct gui_wps *gwps, struct playlistviewer *viewer);
35/* clears the area where the image was shown */
36void clear_image_pos(struct gui_wps *gwps, struct gui_img *img);
37void wps_draw_image(struct gui_wps *gwps, struct gui_img *img, int subimage);
38void wps_display_images(struct gui_wps *gwps, struct viewport* vp);
39#else
40bool draw_player_progress(struct gui_wps *gwps);
41void 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*/
47int 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*/
53void write_line(struct screen *display,
54 struct align_pos *format_align,
55 int line,
56 bool scroll);
57void draw_peakmeters(struct gui_wps *gwps, int line_number,
58 struct viewport *viewport);
59#endif