diff options
Diffstat (limited to 'apps/gui/viewport.h')
-rw-r--r-- | apps/gui/viewport.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h index cedb27e01c..cffc7fbaef 100644 --- a/apps/gui/viewport.h +++ b/apps/gui/viewport.h | |||
@@ -31,7 +31,8 @@ | |||
31 | /* return the number of text lines in the vp viewport */ | 31 | /* return the number of text lines in the vp viewport */ |
32 | int viewport_get_nb_lines(const struct viewport *vp); | 32 | int viewport_get_nb_lines(const struct viewport *vp); |
33 | 33 | ||
34 | void viewport_set_defaults(struct viewport *vp, enum screen_type screen); | 34 | void viewport_set_defaults(struct viewport *vp, |
35 | const enum screen_type screen); | ||
35 | 36 | ||
36 | /* Used to specify which screens the statusbar (SB) should be displayed on. | 37 | /* Used to specify which screens the statusbar (SB) should be displayed on. |
37 | * | 38 | * |
@@ -73,19 +74,20 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen); | |||
73 | */ | 74 | */ |
74 | void viewportmanager_init(void); | 75 | void viewportmanager_init(void); |
75 | int viewportmanager_get_statusbar(void); | 76 | int viewportmanager_get_statusbar(void); |
76 | int viewportmanager_set_statusbar(int enabled); | 77 | int viewportmanager_set_statusbar(const int enabled); |
77 | 78 | ||
78 | 79 | ||
79 | /* | 80 | /* |
80 | * Initializes the given viewport with maximum dimensions minus status- and | 81 | * Initializes the given viewport with maximum dimensions minus status- and |
81 | * buttonbar | 82 | * buttonbar |
82 | */ | 83 | */ |
83 | void viewport_set_fullscreen(struct viewport *vp, enum screen_type screen); | 84 | void viewport_set_fullscreen(struct viewport *vp, |
85 | const enum screen_type screen); | ||
84 | 86 | ||
85 | #ifdef HAVE_LCD_BITMAP | 87 | #ifdef HAVE_LCD_BITMAP |
86 | 88 | ||
87 | /* call this when a theme changed */ | 89 | /* call this when a theme changed */ |
88 | void viewportmanager_theme_changed(int); | 90 | void viewportmanager_theme_changed(const int); |
89 | 91 | ||
90 | /* | 92 | /* |
91 | * Returns a pointer to the current viewport | 93 | * Returns a pointer to the current viewport |
@@ -103,9 +105,10 @@ void viewport_set_current_vp(struct viewport* vp); | |||
103 | /* | 105 | /* |
104 | * returns true if the ui viewport is active on the screen | 106 | * returns true if the ui viewport is active on the screen |
105 | */ | 107 | */ |
106 | bool viewport_ui_vp_get_state(enum screen_type screen); | 108 | bool viewport_ui_vp_get_state(const enum screen_type screen); |
107 | #ifdef HAVE_TOUCHSCREEN | 109 | #ifdef HAVE_TOUCHSCREEN |
108 | bool viewport_point_within_vp(const struct viewport *vp, int x, int y); | 110 | bool viewport_point_within_vp(const struct viewport *vp, |
111 | const int x, const int y); | ||
109 | #endif | 112 | #endif |
110 | 113 | ||
111 | #else /* HAVE_LCD_CHARCELL */ | 114 | #else /* HAVE_LCD_CHARCELL */ |