abf475ae2d642c81d5045db512c6ca3e2c744529
1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 Gilles Roux
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_WINDOW_H
24 #define PLUGIN_TEXT_VIEWER_WINDOW_H
27 * initialize the window module
30 * true initialize success
31 * false initialize failure
33 bool tv_init_window(void);
35 /* finalize the window module */
36 void tv_finalize_window(void);
38 /* draw the display */
39 void tv_draw_window(void);
41 /* traverse all lines of the current page */
42 bool tv_traverse_lines(void);
48 * new window: the current window + window_delta
49 * new column: the current column + column_delta
52 * variation of the window
55 * variation of the column
58 void tv_move_window(int window_delta
, int column_delta
);