-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathslidebuilder.h
58 lines (50 loc) · 1.73 KB
/
slidebuilder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* This file is part of ASCIIVN.
*
* Copyright (C) 2017 Adrian Parvin D. Ouano
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SLIDE_BUILDER_H
#define SLIDE_BUILDER_H
#include <stdbool.h>
#include "slides.h"
#include "stringmap.h"
struct slide_builder_context {
struct slide *root;
struct slide *old;
struct slide *current;
struct string_map_slide_next_ptr *map;
char *old_fill_scene;
char *fill_scene;
size_t fill_start;
char *fills[];
};
void
slide_builder_scene(struct slide_builder_context **context,
char *name);
void
slide_builder_slide(struct slide_builder_context **context,
struct imagebuffer *image_background,
struct imagebuffer *image_foreground,
char *message);
void
slide_builder_slide_reply(struct slide_builder_context **context,
char *reply,
char *scene);
struct slide_builder_context *
slide_builder_init(struct imagebuffer *image_background,
struct imagebuffer *image_foreground,
char *message);
struct slide *
slide_builder_end(struct slide_builder_context *context);
#endif