diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-10-11 00:05:12 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-10-11 00:05:12 +0000 |
commit | a27f2b8683204e337b142124979592ee1cd0d6f9 (patch) | |
tree | 2ba4041e90f3ae6fbbaf378a9c8f8718fc5f10e6 /apps/gui/viewport.h | |
parent | 30d664bbbc1a6a160f9fed03e619c0a6e8440970 (diff) | |
download | rockbox-a27f2b8683204e337b142124979592ee1cd0d6f9.tar.gz rockbox-a27f2b8683204e337b142124979592ee1cd0d6f9.zip |
A bit of const correctness and 80-char limit correction.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23083 a1c6a512-1295-4272-9138-f99709370657
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 */ |