summaryrefslogtreecommitdiff
path: root/backend/dvi/mdvi-lib/paper.h
blob: 0eb2c938fd56351912b862c622c03ce6958c2ac7 (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
25
26
27
28
29
30
31
#ifndef MDVI_PAPER
#define MDVI_PAPER

typedef struct _DviPaper DviPaper;
typedef struct _DviPaperSpec DviPaperSpec;

typedef enum {
	MDVI_PAPER_CLASS_ISO,
	MDVI_PAPER_CLASS_US,
	MDVI_PAPER_CLASS_ANY,
	MDVI_PAPER_CLASS_CUSTOM
} DviPaperClass;

struct _DviPaper {
	DviPaperClass pclass;
	const char *name;
	double	inches_wide;
	double	inches_tall;
};

struct _DviPaperSpec {
	const char *name;
	const char *width;
	const char *height;
};

extern int 	mdvi_get_paper_size __PROTO((const char *, DviPaper *));
extern DviPaperSpec* mdvi_get_paper_specs __PROTO((DviPaperClass));
extern void	mdvi_free_paper_specs __PROTO((DviPaperSpec *));

#endif