| LibGlabels Reference Manual | ||||
|---|---|---|---|---|
#include <libglabels/paper.h>
lglPaper;
lglPaper* lgl_paper_new (gchar *id,
gchar *name,
gdouble width,
gdouble height);
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.
typedef struct {
gchar *id; /* Unique ID of paper definition */
gchar *name; /* Localized name of paper */
gdouble width; /* Width (in points) */
gdouble height; /* Height (in points) */
} lglPaper;
This structure defines a paper (page) size.
lglPaper* lgl_paper_new (gchar *id, gchar *name, gdouble width, gdouble height);
Allocates and constructs a new lglPaper structure.
id : |
Id of paper definition. (E.g. US-Letter, A4, etc.) Should be unique. |
name : |
Localized name of paper. |
width : |
Width of paper in points. |
height : |
Height of paper in points. |
| Returns : | a pointer to a newly allocated lglPaper structure. |
lglPaper* lgl_paper_dup (const lglPaper *orig);
Duplicates an existing lglPaper structure.