]> git.sur5r.net Git - glabels/blob - glabels2/libglabels/paper.h
6f197cb7f2e81d3b2c838cdd13221e1f35eb200c
[glabels] / glabels2 / libglabels / paper.h
1 /*
2  *  (LIBGLABELS) Template library for GLABELS
3  *
4  *  paper.h:  paper module header file
5  *
6  *  Copyright (C) 2003, 2004  Jim Evins <evins@snaught.com>.
7  *
8  *  This file is part of the LIBGLABELS library.
9  *
10  *  This library is free software; you can redistribute it and/or
11  *  modify it under the terms of the GNU Library General Public
12  *  License as published by the Free Software Foundation; either
13  *  version 2 of the License, or (at your option) any later version.
14  *
15  *  This library is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  *  Library General Public License for more details.
19  *
20  *  You should have received a copy of the GNU Library General Public
21  *  License along with this library; if not, write to the Free
22  *  Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
23  *  MA 02111-1307, USA
24  */
25
26 #ifndef __PAPER_H__
27 #define __PAPER_H__
28
29 #include <glib.h>
30
31 G_BEGIN_DECLS
32
33
34 /*
35  *   lglPaper structure
36  */
37 typedef struct _lglPaper lglPaper;
38
39 struct _lglPaper {
40         gchar               *id;       /* Unique ID of paper definition */
41         gchar               *name;     /* Localized name of paper */
42         gdouble              width;    /* Width (in points) */
43         gdouble              height;   /* Height (in points) */
44         gchar               *pwg_size; /* PWG 5101.1-2002 size name */
45 };
46
47
48 /*
49  * Paper construction
50  */
51 lglPaper            *lgl_paper_new                 (gchar           *id,
52                                                     gchar           *name,
53                                                     gdouble          width,
54                                                     gdouble          height,
55                                                     gchar           *pwg_size);
56
57 lglPaper             *lgl_paper_dup                (const lglPaper   *orig);
58
59 void                 lgl_paper_free                (lglPaper         *paper);
60
61
62 G_END_DECLS
63
64 #endif