new text viewer
[kugel-rb.git] / apps / plugins / textviewer / tv_screen.h
blobdb29640e4228d348febc1f24ca0655e7b701998d
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 Gilles Roux
11 * 2003 Garrett Derner
12 * 2010 Yoshihisa Uchida
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
22 ****************************************************************************/
23 #ifndef PLUGIN_TEXT_VIEWER_SCREEN_H
24 #define PLUGIN_TEXT_VIEWER_SCREEN_H
26 /* scroll mode */
27 enum
29 VIEWER_SCROLL_LINE, /* up/down one line */
30 VIEWER_SCROLL_PAGE, /* up/down one page */
31 VIEWER_SCROLL_COLUMN, /* left/right one column */
32 VIEWER_SCROLL_SCREEN, /* left/right one screen */
33 VIEWER_SCROLL_PREFS, /*up/down/left/right follows the settings. */
36 void viewer_init_screen(void);
37 void viewer_finalize_screen(void);
39 void viewer_draw(void);
41 void viewer_top(void);
42 void viewer_bottom(void);
44 void viewer_scroll_up(int mode);
45 void viewer_scroll_down(int mode);
46 void viewer_scroll_left(int mode);
47 void viewer_scroll_right(int mode);
49 void change_font(unsigned char *font);
51 #endif