]> www.fi.muni.cz Git - evince.git/blob - backend/dvi/mdvi-lib/paper.h
Reorganize source tree.
[evince.git] / backend / dvi / mdvi-lib / paper.h
1 #ifndef MDVI_PAPER
2 #define MDVI_PAPER
3
4 typedef struct _DviPaper DviPaper;
5 typedef struct _DviPaperSpec DviPaperSpec;
6
7 typedef enum {
8         MDVI_PAPER_CLASS_ISO,
9         MDVI_PAPER_CLASS_US,
10         MDVI_PAPER_CLASS_ANY,
11         MDVI_PAPER_CLASS_CUSTOM
12 } DviPaperClass;
13
14 struct _DviPaper {
15         DviPaperClass pclass;
16         const char *name;
17         double  inches_wide;
18         double  inches_tall;
19 };
20
21 struct _DviPaperSpec {
22         const char *name;
23         const char *width;
24         const char *height;
25 };
26
27
28 extern int      mdvi_get_paper_size __PROTO((const char *, DviPaper *));
29 extern DviPaperSpec* mdvi_get_paper_specs __PROTO((DviPaperClass));
30 extern void     mdvi_free_paper_specs __PROTO((DviPaperSpec *));
31
32 #endif