FS#11399 by me: fix r26998 for text_viewer
[kugel-rb.git] / apps / plugins / text_viewer / tv_window.h
blob14eeb0820dab52e4d268e8e511e3a8413ee22d0b
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_WINDOW_H
24 #define PLUGIN_TEXT_VIEWER_WINDOW_H
27 * initialize the window module
29 * [In/Out] buf
30 * the start pointer of the buffer
32 * [In/Out] size
33 * enabled buffer size
35 * return
36 * true initialize success
37 * false initialize failure
39 bool tv_init_window(unsigned char **buf, size_t *bufsize);
41 /* finalize the window module */
42 void tv_finalize_window(void);
44 /* draw the display */
45 void tv_draw_window(void);
47 /* traverse all lines of the current page */
48 bool tv_traverse_lines(void);
51 * move to the window
53 * new position
54 * new window: the current window + window_delta
55 * new column: the current column + column_delta
57 * [In] window_delta
58 * variation of the window
60 * [In] column_delta
61 * variation of the column
64 void tv_move_window(int window_delta, int column_delta);
66 #endif