X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fviewer.h;h=35f241fe1658c35fcbce2e552bbd0d3f94c71f33;hb=b416f18295f7edcb5474396a6b26a59fd5ddb1f5;hp=c5f453006de166e61ff69d35f013d9b9e96fc4f4;hpb=0f870f29388a36d32ec9ffaabe9ffe03edc038c0;p=smdp.git diff --git a/include/viewer.h b/include/viewer.h index c5f4530..35f241f 100644 --- a/include/viewer.h +++ b/include/viewer.h @@ -1,6 +1,19 @@ #if !defined( VIEWER_H ) #define VIEWER_H +/* + * Functions necessary to display a deck of slides in different color modes + * using ncurses. Only white, red, and blue are supported, as they can be + * faded in 256 color mode. + * + * function: ncurses_display initializes ncurses, defines colors, calculates + * window geometry and handles key strokes + * function: add_line detects inline markdown formating and prints line char + * by char + * function: fade_in, fade_out implementing color fading in 256 color mode + * + */ + #include #include "parser.h" @@ -15,7 +28,6 @@ int ncurses_display(deck_t *deck, int notrans, int nofade); void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols); -int is_attron(cstack_t *stack, char c); void fade_out(WINDOW *window, int trans, int colors); void fade_in(WINDOW *window, int trans, int colors);