File: paper.h

package info (click to toggle)
atril 1.26.0-2%2Bdeb12u3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 20,348 kB
  • sloc: ansic: 67,422; cpp: 2,719; makefile: 1,764; xml: 745; python: 135; perl: 54; sh: 24
file content (31 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (3)
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