9 segment bitmap drawing:
[maemo-rb.git] / apps / gui / skin_engine / skin_display.h
blobb3422b036076046888acdb986a067fd019e117a7
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_display_images(struct gui_wps *gwps, struct viewport* vp);
40 void skin_render_viewport(struct skin_element* viewport, struct gui_wps *gwps,
41 struct skin_viewport* skin_viewport, unsigned long refresh_type);
43 #endif
45 /* Evaluate the conditional that is at *token_index and return whether a skip
46 has ocurred. *token_index is updated with the new position.
48 int evaluate_conditional(struct gui_wps *gwps, int offset,
49 struct conditional *conditional, int num_options);
50 /* Display a line appropriately according to its alignment format.
51 format_align contains the text, separated between left, center and right.
52 line is the index of the line on the screen.
53 scroll indicates whether the line is a scrolling one or not.
55 void write_line(struct screen *display, struct align_pos *format_align,
56 int line, bool scroll, unsigned style);
57 void draw_peakmeters(struct gui_wps *gwps, int line_number,
58 struct viewport *viewport);
59 #endif