Fix oops. Too late now.
[maemo-rb.git] / apps / gui / skin_engine / skin_display.h
blob81d04e5a60b406b78565a71d817a93f163da2b11
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002-2007 Björn Stenberg
11 * Copyright (C) 2007-2008 Nicolas Pennequin
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.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
22 #include "config.h"
23 #include <stdio.h>
24 #include "wps_internals.h"
25 #include "skin_engine.h"
26 #include "statusbar-skinned.h"
28 #ifndef _SKIN_DISPLAY_H_
29 #define _SKIN_DISPLAY_H_
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);
41 void skin_render_viewport(struct skin_element* viewport, struct gui_wps *gwps,
42 struct skin_viewport* skin_viewport, unsigned long refresh_type);
44 #endif
46 /* Evaluate the conditional that is at *token_index and return whether a skip
47 has ocurred. *token_index is updated with the new position.
49 int evaluate_conditional(struct gui_wps *gwps, int offset,
50 struct conditional *conditional, int num_options);
51 /* Display a line appropriately according to its alignment format.
52 format_align contains the text, separated between left, center and right.
53 line is the index of the line on the screen.
54 scroll indicates whether the line is a scrolling one or not.
56 void write_line(struct screen *display, struct align_pos *format_align,
57 int line, bool scroll, unsigned style);
58 void draw_peakmeters(struct gui_wps *gwps, int line_number,
59 struct viewport *viewport);
60 #endif