summaryrefslogtreecommitdiff
path: root/apps/gui/gwps.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/gwps.h')
-rw-r--r--apps/gui/gwps.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h
index 70725df40b..d1239c1b34 100644
--- a/apps/gui/gwps.h
+++ b/apps/gui/gwps.h
@@ -26,15 +26,18 @@
26#include "metadata.h" 26#include "metadata.h"
27 27
28/* constants used in line_type and as refresh_mode for wps_refresh */ 28/* constants used in line_type and as refresh_mode for wps_refresh */
29#define WPS_REFRESH_STATIC 1 /* line doesn't change over time */ 29#define WPS_REFRESH_STATIC (1<<0) /* line doesn't change over time */
30#define WPS_REFRESH_DYNAMIC 2 /* line may change (e.g. time flag) */ 30#define WPS_REFRESH_DYNAMIC (1<<1) /* line may change (e.g. time flag) */
31#define WPS_REFRESH_SCROLL 4 /* line scrolls */ 31#define WPS_REFRESH_SCROLL (1<<2) /* line scrolls */
32#define WPS_REFRESH_PLAYER_PROGRESS 8 /* line contains a progress bar */ 32#define WPS_REFRESH_PLAYER_PROGRESS (1<<3) /* line contains a progress bar */
33#define WPS_REFRESH_PEAK_METER 16 /* line contains a peak meter */ 33#define WPS_REFRESH_PEAK_METER (1<<4) /* line contains a peak meter */
34#define WPS_REFRESH_STATUSBAR (1<<5) /* refresh statusbar */
34#define WPS_REFRESH_ALL 0xff /* to refresh all line types */ 35#define WPS_REFRESH_ALL 0xff /* to refresh all line types */
35/* to refresh only those lines that change over time */
36#define WPS_REFRESH_NON_STATIC (WPS_REFRESH_ALL & ~WPS_REFRESH_STATIC & ~WPS_REFRESH_SCROLL)
37 36
37/* to refresh only those lines that change over time */
38#define WPS_REFRESH_NON_STATIC (WPS_REFRESH_DYNAMIC| \
39 WPS_REFRESH_PLAYER_PROGRESS| \
40 WPS_REFRESH_PEAK_METER)
38/* alignments */ 41/* alignments */
39#define WPS_ALIGN_RIGHT 32 42#define WPS_ALIGN_RIGHT 32
40#define WPS_ALIGN_CENTER 64 43#define WPS_ALIGN_CENTER 64
@@ -440,8 +443,8 @@ bool wps_data_load(struct wps_data *wps_data,
440 const char *buf, 443 const char *buf,
441 bool isfile); 444 bool isfile);
442 445
443/* Sets up the statusbars for the wps and each screen */ 446/* Redraw statusbars if necessary */
444void gwps_fix_statusbars(void); 447void gwps_draw_statusbars(void);
445 448
446/* Returns the index of the subline in the subline array 449/* Returns the index of the subline in the subline array
447 line - 0-based line number 450 line - 0-based line number