diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-06-27 11:36:37 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-06-27 11:36:37 +0000 |
commit | b5a26851e002d090e9c6ae93e29857ca3cd63fe5 (patch) | |
tree | 463485c9a5398b21017f9b3d2f563da384dc8d9c /apps/plugins/text_viewer/tv_display.h | |
parent | 96233f9cf7d0a407f1512ec5312168d222c26405 (diff) |
text viewer: display functions more changes.
- font functions move to tv_display.
- modify tv_init_display() and add tv_finalize_display().
- viewport functions are changed from global to static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27154 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_viewer/tv_display.h')
-rw-r--r-- | apps/plugins/text_viewer/tv_display.h | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/apps/plugins/text_viewer/tv_display.h b/apps/plugins/text_viewer/tv_display.h index aa30436c4c..67709f825d 100644 --- a/apps/plugins/text_viewer/tv_display.h +++ b/apps/plugins/text_viewer/tv_display.h @@ -24,7 +24,29 @@ #include "plugin.h" #include "tv_screen_pos.h" -/* text viewer layout parts functions */ +/* stuff for the screen access */ + +/* + * initialize the display module + * + * [In/Out] buf + * the start pointer of the buffer + * + * [In/Out] size + * buffer size + * + * return + * true initialize success + * false initialize failure + */ +bool tv_init_display(unsigned char **buf, size_t *size); + +/* finalize the display module */ +void tv_finalize_display(void); + + +/* layout parts accessing functions */ + #ifdef HAVE_LCD_BITMAP /* show headaer */ @@ -66,7 +88,6 @@ void tv_init_scrollbar(off_t total, bool show_scrollbar); * the size of text in displayed. */ void tv_show_scrollbar(int window, int col, off_t cur_pos, int size); -#endif /* * show bookmark @@ -79,10 +100,9 @@ void tv_show_scrollbar(int window, int col, off_t cur_pos, int size); */ void tv_show_bookmarks(const int *rows, int count); -/* common display functons */ +#endif -/* initialized display functions */ -void tv_init_display(void); +/* common display functons */ /* start the display processing */ void tv_start_display(void); @@ -107,32 +127,17 @@ void tv_update_display(void); */ void tv_draw_text(int row, const unsigned char *text, int offset); + /* layout functions */ -#ifdef HAVE_LCD_BITMAP /* * set the layout * - * [In] col_w - * width per column - * * [In] show_scrollbar * true: show the vertical scrollbar * false: does not show the vertical scrollbar */ -void tv_set_layout(int col_w, bool show_scrollbar); - -#else - -/* - * set the layout - * - * [In] col_w - * width per column - */ -void tv_set_layout(int col_w); - -#endif +void tv_set_layout(bool show_scrollbar); /* * get the draw area info @@ -148,12 +153,4 @@ void tv_set_layout(int col_w); */ void tv_get_drawarea_info(int *width, int *cols, int *rows); -/* viewport functions */ - -/* change the viewport */ -void tv_change_viewport(void); - -/* undo the viewport */ -void tv_undo_viewport(void); - #endif |