1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>The lglPaper Structure</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7 <link rel="home" href="index.html" title="LibGlabels Reference Manual">
8 <link rel="up" href="ch01.html" title="Basic LibGlabels Usage">
9 <link rel="prev" href="libglabels-template.html" title="The lglTemplate Structure">
10 <link rel="next" href="libglabels-category.html" title="The lglCategory Structure">
11 <meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 <link rel="chapter" href="ch01.html" title="Basic LibGlabels Usage">
14 <link rel="chapter" href="ch02.html" title="Working Directly With LibGlabels XML">
15 <link rel="chapter" href="ch03.html" title="Miscellaneous">
17 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
18 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
20 <td><a accesskey="p" href="libglabels-template.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
21 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
22 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
23 <th width="100%" align="center">LibGlabels Reference Manual</th>
24 <td><a accesskey="n" href="libglabels-category.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
26 <tr><td colspan="5" class="shortcuts">
27 <a href="#libglabels-paper.synopsis" class="shortcut">Top</a>
29 <a href="#libglabels-paper.description" class="shortcut">Description</a>
32 <div class="refentry" title="The lglPaper Structure">
33 <a name="libglabels-paper"></a><div class="titlepage"></div>
34 <div class="refnamediv"><table width="100%"><tr>
36 <h2><span class="refentrytitle"><a name="libglabels-paper.top_of_page"></a>The lglPaper Structure</span></h2>
37 <p>The lglPaper Structure — Paper size definitions</p>
39 <td valign="top" align="right"></td>
41 <div class="refsynopsisdiv" title="Synopsis">
42 <a name="libglabels-paper.synopsis"></a><h2>Synopsis</h2>
43 <pre class="synopsis">
45 #include <libglabels/paper.h>
47 <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper">lglPaper</a>;
48 <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper">lglPaper</a> * <a class="link" href="libglabels-paper.html#lgl-paper-new" title="lgl_paper_new ()">lgl_paper_new</a> (<a
49 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
52 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
55 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
58 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
61 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
62 >gchar</a> *pwg_size);
63 <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper">lglPaper</a> * <a class="link" href="libglabels-paper.html#lgl-paper-dup" title="lgl_paper_dup ()">lgl_paper_dup</a> (const <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper">lglPaper</a> *orig);
64 void <a class="link" href="libglabels-paper.html#lgl-paper-free" title="lgl_paper_free ()">lgl_paper_free</a> (<a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper">lglPaper</a> *paper);
67 <div class="refsect1" title="Description">
68 <a name="libglabels-paper.description"></a><h2>Description</h2>
70 This section describes a structure for representing a paper size definition
71 and related functions.
74 <div class="refsect1" title="Details">
75 <a name="libglabels-paper.details"></a><h2>Details</h2>
76 <div class="refsect2" title="lglPaper">
77 <a name="lglPaper"></a><h3>lglPaper</h3>
78 <pre class="programlisting">typedef struct {
79 gchar *id; /* Unique ID of paper definition */
80 gchar *name; /* Localized name of paper */
81 gdouble width; /* Width (in points) */
82 gdouble height; /* Height (in points) */
83 gchar *pwg_size; /* PWG 5101.1-2002 size name */
87 This structure defines a paper (page) size.
89 <div class="variablelist"><table border="0">
90 <col align="left" valign="top">
93 <td><p><span class="term"><a
94 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
95 >gchar</a> *<em class="structfield"><code>id</code></em>;</span></p></td>
100 <td><p><span class="term"><a
101 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
102 >gchar</a> *<em class="structfield"><code>name</code></em>;</span></p></td>
103 <td>Localized paper size name.
107 <td><p><span class="term"><a
108 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
109 >gdouble</a> <em class="structfield"><code>width</code></em>;</span></p></td>
110 <td>Width of paper in points.
114 <td><p><span class="term"><a
115 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
116 >gdouble</a> <em class="structfield"><code>height</code></em>;</span></p></td>
117 <td>Height of paper in points.
121 <td><p><span class="term"><a
122 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
123 >gchar</a> *<em class="structfield"><code>pwg_size</code></em>;</span></p></td>
124 <td>PWG 5101.1-2002 size name.
131 <div class="refsect2" title="lgl_paper_new ()">
132 <a name="lgl-paper-new"></a><h3>lgl_paper_new ()</h3>
133 <pre class="programlisting"><a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper">lglPaper</a> * lgl_paper_new (<a
134 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
137 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
140 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
143 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
146 href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
147 >gchar</a> *pwg_size);</pre>
149 Allocates and constructs a new <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper"><span class="type">lglPaper</span></a> structure.</p>
152 <div class="variablelist"><table border="0">
153 <col align="left" valign="top">
156 <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
157 <td> Id of paper definition. (E.g. US-Letter, A4, etc.) Should be
162 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
163 <td> Localized name of paper.
167 <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
168 <td> Width of paper in points.
172 <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
173 <td> Height of paper in points.
177 <td><p><span class="term"><em class="parameter"><code>pwg_size</code></em> :</span></p></td>
178 <td> PWG 5101.1-2002 size name.
182 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
183 <td> a pointer to a newly allocated <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper"><span class="type">lglPaper</span></a> structure.
191 <div class="refsect2" title="lgl_paper_dup ()">
192 <a name="lgl-paper-dup"></a><h3>lgl_paper_dup ()</h3>
193 <pre class="programlisting"><a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper">lglPaper</a> * lgl_paper_dup (const <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper">lglPaper</a> *orig);</pre>
195 Duplicates an existing <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper"><span class="type">lglPaper</span></a> structure.</p>
198 <div class="variablelist"><table border="0">
199 <col align="left" valign="top">
202 <td><p><span class="term"><em class="parameter"><code>orig</code></em> :</span></p></td>
203 <td> <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper"><span class="type">lglPaper</span></a> structure to be duplicated.
207 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
208 <td> a pointer to a newly allocated <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper"><span class="type">lglPaper</span></a> structure.
216 <div class="refsect2" title="lgl_paper_free ()">
217 <a name="lgl-paper-free"></a><h3>lgl_paper_free ()</h3>
218 <pre class="programlisting">void lgl_paper_free (<a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper">lglPaper</a> *paper);</pre>
220 Free all memory associated with an existing <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper"><span class="type">lglPaper</span></a> structure.</p>
223 <div class="variablelist"><table border="0">
224 <col align="left" valign="top">
226 <td><p><span class="term"><em class="parameter"><code>paper</code></em> :</span></p></td>
227 <td> pointer to <a class="link" href="libglabels-paper.html#lglPaper" title="lglPaper"><span class="type">lglPaper</span></a> structure to be freed.
236 Generated by GTK-Doc V1.11</div>