diff options
Diffstat (limited to 'apps/gui/viewport.h')
-rw-r--r-- | apps/gui/viewport.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h index 93b5c70fc3..d431766ab5 100644 --- a/apps/gui/viewport.h +++ b/apps/gui/viewport.h | |||
@@ -58,6 +58,7 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen); | |||
58 | 58 | ||
59 | #define THEME_STATUSBAR (BIT_N(0)) | 59 | #define THEME_STATUSBAR (BIT_N(0)) |
60 | #define THEME_UI_VIEWPORT (BIT_N(1)) | 60 | #define THEME_UI_VIEWPORT (BIT_N(1)) |
61 | #define THEME_BUTTONBAR (BIT_N(2)) | ||
61 | #define THEME_ALL (~(0u)) | 62 | #define THEME_ALL (~(0u)) |
62 | 63 | ||
63 | #define VP_SB_HIDE_ALL 0 | 64 | #define VP_SB_HIDE_ALL 0 |
@@ -116,6 +117,10 @@ struct viewport* viewport_get_current_vp(void); | |||
116 | */ | 117 | */ |
117 | void viewport_set_current_vp(struct viewport* vp); | 118 | void viewport_set_current_vp(struct viewport* vp); |
118 | 119 | ||
120 | /* | ||
121 | * returns true if the ui viewport is active on the screen | ||
122 | */ | ||
123 | bool viewport_ui_vp_get_state(enum screen_type screen); | ||
119 | #ifdef HAVE_TOUCHSCREEN | 124 | #ifdef HAVE_TOUCHSCREEN |
120 | bool viewport_point_within_vp(const struct viewport *vp, int x, int y); | 125 | bool viewport_point_within_vp(const struct viewport *vp, int x, int y); |
121 | #endif | 126 | #endif |