summaryrefslogtreecommitdiff
path: root/apps/gui/viewport.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/viewport.h')
-rw-r--r--apps/gui/viewport.h35
1 files changed, 24 insertions, 11 deletions
diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h
index 02748527a4..9d5237bd28 100644
--- a/apps/gui/viewport.h
+++ b/apps/gui/viewport.h
@@ -41,19 +41,32 @@ int viewport_load_config(const char *config, struct viewport *vp);
41 41
42void viewport_set_defaults(struct viewport *vp, enum screen_type screen); 42void viewport_set_defaults(struct viewport *vp, enum screen_type screen);
43 43
44/* viewportmanager_set_statusbar() is used to specify which screens the statusbar 44/* Used to specify which screens the statusbar (SB) should be displayed on.
45 * should be displayed on. 45 *
46 * *usually* enabled will be VP_ALLSCREENS which means display the bar if the setting 46 * The parameter is a bit OR'ed combination of the following (screen is
47 * is enabled. (and it will be on both screens) 47 * SCREEN_MAIN or SCREEN_REMOTE from screen_access.h):
48 * For the WPS (and other possible exceptions) use VP_IGNORE_SB_SETTING() to 48 *
49 * FORCE the statusbar on for the given screen (i.e it will show regardless of the setting 49 * VP_SB_HIDE_ALL means "hide the SB on all screens"
50 * VP_SB_ONSCREEN(screen) means "display the SB on the given screen
51 * as specified by the SB setting for that screen"
52 * VP_SB_IGNORE_SETTING(screen) means "ignore the SB setting for that screen"
53 * VP_SB_ALLSCREENS means "VP_SB_ONSCREEN for all screens"
54 *
55 * In most cases, VP_SB_ALLSCREENS should be used which means display the SB
56 * as specified by the settings.
57 * For the WPS (and other possible exceptions) use VP_SB_IGNORE_SETTING() to
58 * FORCE the statusbar on for the given screen (i.e it will show regardless
59 * of the setting)
60 *
61 * Returns the status before the call. This value can be used to restore the
62 * SB "displaying rules".
50 */ 63 */
51#define VP_SB_ONSCREEN(screen) (1<<screen) /* turn the SB on "screen" only */ 64#define VP_SB_HIDE_ALL 0
52#define VP_ALLSCREENS (VP_SB_ONSCREEN(0)|VP_SB_ONSCREEN(1)) /* SB on for both screens */ 65#define VP_SB_ONSCREEN(screen) (1<<screen)
53#define VP_IGNORE_SB_SETTING(screen) (1<<(4+screen)) 66#define VP_SB_IGNORE_SETTING(screen) (1<<(4+screen))
54char viewportmanager_set_statusbar(char enabled); 67#define VP_SB_ALLSCREENS (VP_SB_ONSCREEN(0)|VP_SB_ONSCREEN(1))
68int viewportmanager_set_statusbar(int enabled);
55 69
56/* callbacks for GUI_EVENT_* events */ 70/* callbacks for GUI_EVENT_* events */
57void viewportmanager_draw_statusbars(void*data); 71void viewportmanager_draw_statusbars(void*data);
58void viewportmanager_statusbar_changed(void* data); 72void viewportmanager_statusbar_changed(void* data);
59