]> git.sur5r.net Git - glabels/blob - libglabels/lgl-paper.h
Imported Upstream version 3.0.0
[glabels] / libglabels / lgl-paper.h
1 /*
2  *  lgl-paper.h
3  *  Copyright (C) 2003-2010  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of libglabels.
6  *
7  *  libglabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU Lesser General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  libglabels is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public License
18  *  along with libglabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __LGL_PAPER_H__
22 #define __LGL_PAPER_H__
23
24 #include <glib.h>
25
26 G_BEGIN_DECLS
27
28
29 /*
30  *   lglPaper structure
31  */
32 typedef struct _lglPaper lglPaper;
33
34 struct _lglPaper {
35         gchar               *id;       /* Unique ID of paper definition */
36         gchar               *name;     /* Localized name of paper */
37         gdouble              width;    /* Width (in points) */
38         gdouble              height;   /* Height (in points) */
39         gchar               *pwg_size; /* PWG 5101.1-2002 size name */
40 };
41
42
43 /*
44  * Paper construction
45  */
46 lglPaper            *lgl_paper_new                 (gchar           *id,
47                                                     gchar           *name,
48                                                     gdouble          width,
49                                                     gdouble          height,
50                                                     gchar           *pwg_size);
51
52 lglPaper             *lgl_paper_dup                (const lglPaper   *orig);
53
54 void                 lgl_paper_free                (lglPaper         *paper);
55
56
57 G_END_DECLS
58
59 #endif /* __LGL_PAPER_H__ */
60
61
62
63 /*
64  * Local Variables:       -- emacs
65  * mode: C                -- emacs
66  * c-basic-offset: 8      -- emacs
67  * tab-width: 8           -- emacs
68  * indent-tabs-mode: nil  -- emacs
69  * End:                   -- emacs
70  */