|  |  |  | LibGlabels 3.0 Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
#include <libglabels/lgl-paper.h> struct lglPaper; lglPaper * lgl_paper_new (gchar *id,gchar *name,gdouble width,gdouble height,gchar *pwg_size); lglPaper * lgl_paper_dup (const lglPaper *orig); void lgl_paper_free (lglPaper *paper);
This section describes a structure for representing a paper size definition and related functions.
struct lglPaper {
        gchar               *id;       /* Unique ID of paper definition */
        gchar               *name;     /* Localized name of paper */
        gdouble              width;    /* Width (in points) */
        gdouble              height;   /* Height (in points) */
        gchar               *pwg_size; /* PWG 5101.1-2002 size name */
};
This structure defines a paper (page) size.
lglPaper * lgl_paper_new (gchar *id,gchar *name,gdouble width,gdouble height,gchar *pwg_size);
Allocates and constructs a new lglPaper structure.
| 
 | Id of paper definition. (E.g. US-Letter, A4, etc.) Should be unique. | 
| 
 | Localized name of paper. | 
| 
 | Width of paper in points. | 
| 
 | Height of paper in points. | 
| 
 | PWG 5101.1-2002 size name. | 
| Returns : | a pointer to a newly allocated lglPaper structure. | 
lglPaper *          lgl_paper_dup                       (const lglPaper *orig);
Duplicates an existing lglPaper structure.