removed duplicate function + added some comments to header files
[smdp.git] / include / viewer.h
1 #if !defined( VIEWER_H )
2 #define VIEWER_H
3
4 /*
5  * Functions necessary to display a deck of slides in different color modes
6  * using ncurses. Only white, red, and blue are supported, as they can be
7  * faded in 256 color mode.
8  *
9  * function: ncurses_display initializes ncurses, defines colors, calculates
10  *           window geometry and handles key strokes
11  * function: add_line detects inline markdown formating and prints line char
12  *           by char
13  * function: fade_in, fade_out implementing color fading in 256 color mode
14  *
15  */
16
17 #include <ncurses.h>
18
19 #include "parser.h"
20 #include "cstack.h"
21
22 #define CP_WHITE  1 // 255
23 #define CP_BLUE   2 // 123
24 #define CP_RED    3 // 213
25 #define CP_YELLOW 4 // 208
26
27 #define FADE_DELAY 15000 // micro seconds
28
29 int ncurses_display(deck_t *deck, int notrans, int nofade);
30 void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols);
31 void fade_out(WINDOW *window, int trans, int colors);
32 void fade_in(WINDOW *window, int trans, int colors);
33
34 #endif // !defined( VIEWER_H )