-
Notifications
You must be signed in to change notification settings - Fork 0
/
planner.h
27 lines (24 loc) · 817 Bytes
/
planner.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
#include "pdf.h"
#include "vector.h"
typedef struct Project {
char *name;
PDF pdf;
int horizontal_divide; /* How many columns? */
int vertical_divide; /* How many rows? */
int fractions; /* How many partials of a row? */
Vector *features;
} Project;
typedef struct Feature {
char *name;
int length;
int left_to_draw;
int fractions;
RGB rgb;
} Feature;
Project *create_project(char *project_name);
void set_horizontal_divide(Project *project, int divide);
void set_vertical_divide(Project *project, int divide);
void set_fractions(Project *project, int fractions);
void add_board(Project *project, int page_count);
void add_feature(Project *project, char *feature_name, int height_in_fractions, int length);
void close_project(Project *project);