aboutsummaryrefslogtreecommitdiff
path: root/draw.h
blob: 7c473a7b5e84acffb1eb5613d098949462c12bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
struct dimensions {
	double pw; 	/* paper width */
	double ph;	/* paper height */
	double mw;	/* month width */
	double mh;	/* month height */
	double bw;	/* day box width */
	double bh;	/* day box height */
	double r;	/* rows */
	double c;	/* columns */
	double m;	/* margin */
};



int draw_calendar(cairo_t *c, double x, double y, struct dimensions d);




int draw_numbers(cairo_t *c, double x, double y, struct dimensions d, int wd, int nd);



int draw_month_name(cairo_t *c, char *name, struct dimensions d);