From 2d31d77a8ba231cb03ec35863c4c4ce2024f6509 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 29 Jul 2010 12:37:48 +0000 Subject: 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 --- apps/gui/skin_engine/skin_display.h | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 apps/gui/skin_engine/skin_display.h (limited to 'apps/gui/skin_engine/skin_display.h') 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 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2002-2007 Björn Stenberg + * Copyright (C) 2007-2008 Nicolas Pennequin + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ +#include "config.h" +#include +#include "wps_internals.h" +#include "skin_engine.h" +#include "statusbar-skinned.h" + +#ifndef _SKIN_DISPLAY_H_ +#define _SKIN_DISPLAY_H_ + + +#ifdef HAVE_LCD_BITMAP +void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb); +void draw_playlist_viewer_list(struct gui_wps *gwps, struct playlistviewer *viewer); +/* clears the area where the image was shown */ +void clear_image_pos(struct gui_wps *gwps, struct gui_img *img); +void wps_draw_image(struct gui_wps *gwps, struct gui_img *img, int subimage); +void wps_display_images(struct gui_wps *gwps, struct viewport* vp); +#else +bool draw_player_progress(struct gui_wps *gwps); +void draw_player_fullbar(struct gui_wps *gwps, char* buf, int buf_size); +#endif + +/* Evaluate the conditional that is at *token_index and return whether a skip + has ocurred. *token_index is updated with the new position. +*/ +int evaluate_conditional(struct gui_wps *gwps, struct conditional *conditional, int num_options); +/* Display a line appropriately according to its alignment format. + format_align contains the text, separated between left, center and right. + line is the index of the line on the screen. + scroll indicates whether the line is a scrolling one or not. +*/ +void write_line(struct screen *display, + struct align_pos *format_align, + int line, + bool scroll); +void draw_peakmeters(struct gui_wps *gwps, int line_number, + struct viewport *viewport); +#endif -- cgit v1.2.3