2 /***************************************************************************
4 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
5 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
6 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
7 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 * Copyright (C) 2008 by Jonathan Gordon
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
29 #include "screen_access.h"
31 /* return the number of text lines in the vp viewport */
32 int viewport_get_nb_lines(struct viewport
*vp
);
35 #define VP_DIMENSIONS 0x1
37 #define VP_SELECTIONCOLORS 0x4
38 /* load a viewport struct from a config string.
39 returns a combination of the above to say which were loaded ok from the string */
40 int viewport_load_config(const char *config
, struct viewport
*vp
);
42 void viewport_set_defaults(struct viewport
*vp
, enum screen_type screen
);