]> git.sur5r.net Git - glabels/blob - docs/libglbarcode/html/libglbarcode-3.0-lgl-barcode.html
Imported Upstream version 3.4.0
[glabels] / docs / libglbarcode / html / libglbarcode-3.0-lgl-barcode.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>lglBarcode: LibGlbarcode 3.0 Reference Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="LibGlbarcode 3.0 Reference Manual">
8 <link rel="up" href="api.html" title="API Reference">
9 <link rel="prev" href="api.html" title="API Reference">
10 <link rel="next" href="libglbarcode-3.0-lgl-barcode-create.html" title="Barcode Factory">
11 <meta name="generator" content="GTK-Doc V1.24 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18                   <a href="#libglbarcode-3.0-lgl-barcode.description" class="shortcut">Description</a></span>
19 </td>
20 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21 <td><a accesskey="u" href="api.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22 <td><a accesskey="p" href="api.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23 <td><a accesskey="n" href="libglbarcode-3.0-lgl-barcode-create.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24 </tr></table>
25 <div class="refentry">
26 <a name="libglbarcode-3.0-lgl-barcode"></a><div class="titlepage"></div>
27 <div class="refnamediv"><table width="100%"><tr>
28 <td valign="top">
29 <h2><span class="refentrytitle"><a name="libglbarcode-3.0-lgl-barcode.top_of_page"></a>lglBarcode</span></h2>
30 <p>lglBarcode — Barcode structure</p>
31 </td>
32 <td class="gallery_image" valign="top" align="right"></td>
33 </tr></table></div>
34 <div class="refsect1">
35 <a name="libglbarcode-3.0-lgl-barcode.functions"></a><h2>Functions</h2>
36 <div class="informaltable"><table width="100%" border="0">
37 <colgroup>
38 <col width="150px" class="functions_return">
39 <col class="functions_name">
40 </colgroup>
41 <tbody>
42 <tr>
43 <td class="function_type">
44 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="returnvalue">lglBarcode</span></a> *
45 </td>
46 <td class="function_name">
47 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-new" title="lgl_barcode_new ()">lgl_barcode_new</a> <span class="c_punctuation">()</span>
48 </td>
49 </tr>
50 <tr>
51 <td class="function_type">
52 <span class="returnvalue">void</span>
53 </td>
54 <td class="function_name">
55 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-free" title="lgl_barcode_free ()">lgl_barcode_free</a> <span class="c_punctuation">()</span>
56 </td>
57 </tr>
58 <tr>
59 <td class="function_type">
60 <span class="returnvalue">void</span>
61 </td>
62 <td class="function_name">
63 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-line" title="lgl_barcode_add_line ()">lgl_barcode_add_line</a> <span class="c_punctuation">()</span>
64 </td>
65 </tr>
66 <tr>
67 <td class="function_type">
68 <span class="returnvalue">void</span>
69 </td>
70 <td class="function_name">
71 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-box" title="lgl_barcode_add_box ()">lgl_barcode_add_box</a> <span class="c_punctuation">()</span>
72 </td>
73 </tr>
74 <tr>
75 <td class="function_type">
76 <span class="returnvalue">void</span>
77 </td>
78 <td class="function_name">
79 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-char" title="lgl_barcode_add_char ()">lgl_barcode_add_char</a> <span class="c_punctuation">()</span>
80 </td>
81 </tr>
82 <tr>
83 <td class="function_type">
84 <span class="returnvalue">void</span>
85 </td>
86 <td class="function_name">
87 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-string" title="lgl_barcode_add_string ()">lgl_barcode_add_string</a> <span class="c_punctuation">()</span>
88 </td>
89 </tr>
90 <tr>
91 <td class="function_type">
92 <span class="returnvalue">void</span>
93 </td>
94 <td class="function_name">
95 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-ring" title="lgl_barcode_add_ring ()">lgl_barcode_add_ring</a> <span class="c_punctuation">()</span>
96 </td>
97 </tr>
98 <tr>
99 <td class="function_type">
100 <span class="returnvalue">void</span>
101 </td>
102 <td class="function_name">
103 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-hexagon" title="lgl_barcode_add_hexagon ()">lgl_barcode_add_hexagon</a> <span class="c_punctuation">()</span>
104 </td>
105 </tr>
106 </tbody>
107 </table></div>
108 </div>
109 <div class="refsect1">
110 <a name="libglbarcode-3.0-lgl-barcode.other"></a><h2>Types and Values</h2>
111 <div class="informaltable"><table width="100%" border="0">
112 <colgroup>
113 <col width="150px" class="name">
114 <col class="description">
115 </colgroup>
116 <tbody>
117 <tr>
118 <td class="datatype_keyword"> </td>
119 <td class="function_name"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode">lglBarcode</a></td>
120 </tr>
121 <tr>
122 <td class="datatype_keyword">enum</td>
123 <td class="function_name"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeType" title="enum lglBarcodeShapeType">lglBarcodeShapeType</a></td>
124 </tr>
125 <tr>
126 <td class="datatype_keyword"> </td>
127 <td class="function_name"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShape" title="lglBarcodeShape">lglBarcodeShape</a></td>
128 </tr>
129 <tr>
130 <td class="datatype_keyword"> </td>
131 <td class="function_name"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeAny" title="lglBarcodeShapeAny">lglBarcodeShapeAny</a></td>
132 </tr>
133 <tr>
134 <td class="datatype_keyword"> </td>
135 <td class="function_name"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeLine" title="lglBarcodeShapeLine">lglBarcodeShapeLine</a></td>
136 </tr>
137 <tr>
138 <td class="datatype_keyword"> </td>
139 <td class="function_name"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeBox" title="lglBarcodeShapeBox">lglBarcodeShapeBox</a></td>
140 </tr>
141 <tr>
142 <td class="datatype_keyword"> </td>
143 <td class="function_name"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeChar" title="lglBarcodeShapeChar">lglBarcodeShapeChar</a></td>
144 </tr>
145 <tr>
146 <td class="datatype_keyword"> </td>
147 <td class="function_name"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeString" title="lglBarcodeShapeString">lglBarcodeShapeString</a></td>
148 </tr>
149 <tr>
150 <td class="datatype_keyword"> </td>
151 <td class="function_name"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeRing" title="lglBarcodeShapeRing">lglBarcodeShapeRing</a></td>
152 </tr>
153 <tr>
154 <td class="datatype_keyword"> </td>
155 <td class="function_name"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeHexagon" title="lglBarcodeShapeHexagon">lglBarcodeShapeHexagon</a></td>
156 </tr>
157 </tbody>
158 </table></div>
159 </div>
160 <div class="refsect1">
161 <a name="libglbarcode-3.0-lgl-barcode.includes"></a><h2>Includes</h2>
162 <pre class="synopsis">#include &lt;libglbarcode/lgl-barcode.h&gt;
163 </pre>
164 </div>
165 <div class="refsect1">
166 <a name="libglbarcode-3.0-lgl-barcode.description"></a><h2>Description</h2>
167 <p>
168 This section describes the <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure and the <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShape" title="lglBarcodeShape"><span class="type">lglBarcodeShape</span></a> family of simple drawing primitives.
169 These structures form the basic intermediate barcode representation used by libglbarcode.
170 The section also defines a set of functions for constructing an <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure and populating it with drawing primitives.
171 </p>
172 </div>
173 <div class="refsect1">
174 <a name="libglbarcode-3.0-lgl-barcode.functions_details"></a><h2>Functions</h2>
175 <div class="refsect2">
176 <a name="lgl-barcode-new"></a><h3>lgl_barcode_new ()</h3>
177 <pre class="programlisting"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="returnvalue">lglBarcode</span></a> *
178 lgl_barcode_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
179 <p>Allocate a new <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure.</p>
180 <p>This function allocates a new <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure.</p>
181 <div class="note"><p>
182       This function is intended to be used internally by barcode implementations.
183       Typically an end-user would use <a class="link" href="libglbarcode-3.0-lgl-barcode-create.html#lgl-barcode-create" title="lgl_barcode_create ()"><code class="function">lgl_barcode_create()</code></a> instead.
184 </p></div>
185 <div class="refsect3">
186 <a name="id-1.3.2.7.2.7"></a><h4>Returns</h4>
187 <p> A newly allocated <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure.  Use <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-free" title="lgl_barcode_free ()"><code class="function">lgl_barcode_free()</code></a> to
188 free it.</p>
189 </div>
190 </div>
191 <hr>
192 <div class="refsect2">
193 <a name="lgl-barcode-free"></a><h3>lgl_barcode_free ()</h3>
194 <pre class="programlisting"><span class="returnvalue">void</span>
195 lgl_barcode_free (<em class="parameter"><code><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>);</pre>
196 <p>Free a previously allocated <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure.</p>
197 <div class="refsect3">
198 <a name="id-1.3.2.7.3.5"></a><h4>Parameters</h4>
199 <div class="informaltable"><table width="100%" border="0">
200 <colgroup>
201 <col width="150px" class="parameters_name">
202 <col class="parameters_description">
203 <col width="200px" class="parameters_annotations">
204 </colgroup>
205 <tbody><tr>
206 <td class="parameter_name"><p>bc</p></td>
207 <td class="parameter_description"><p>The <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure to free</p></td>
208 <td class="parameter_annotations"> </td>
209 </tr></tbody>
210 </table></div>
211 </div>
212 </div>
213 <hr>
214 <div class="refsect2">
215 <a name="lgl-barcode-add-line"></a><h3>lgl_barcode_add_line ()</h3>
216 <pre class="programlisting"><span class="returnvalue">void</span>
217 lgl_barcode_add_line (<em class="parameter"><code><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>,
218                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
219                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
220                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> length</code></em>,
221                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>);</pre>
222 <p>Add a vertical line to barcode.  Coordinates are relative to top left corner
223 of barcode.  All units are in points ( 1 point = 1/72 inch ).</p>
224 <div class="note"><p>
225        This function is intended to be used internally by barcode implementations.
226 </p></div>
227 <div class="refsect3">
228 <a name="id-1.3.2.7.4.6"></a><h4>Parameters</h4>
229 <div class="informaltable"><table width="100%" border="0">
230 <colgroup>
231 <col width="150px" class="parameters_name">
232 <col class="parameters_description">
233 <col width="200px" class="parameters_annotations">
234 </colgroup>
235 <tbody>
236 <tr>
237 <td class="parameter_name"><p>bc</p></td>
238 <td class="parameter_description"><p>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</p></td>
239 <td class="parameter_annotations"> </td>
240 </tr>
241 <tr>
242 <td class="parameter_name"><p>x</p></td>
243 <td class="parameter_description"><p>x coordinate of top of line</p></td>
244 <td class="parameter_annotations"> </td>
245 </tr>
246 <tr>
247 <td class="parameter_name"><p>y</p></td>
248 <td class="parameter_description"><p>y coordinate of top of line</p></td>
249 <td class="parameter_annotations"> </td>
250 </tr>
251 <tr>
252 <td class="parameter_name"><p>length</p></td>
253 <td class="parameter_description"><p>Length of line</p></td>
254 <td class="parameter_annotations"> </td>
255 </tr>
256 <tr>
257 <td class="parameter_name"><p>width</p></td>
258 <td class="parameter_description"><p>Width of line</p></td>
259 <td class="parameter_annotations"> </td>
260 </tr>
261 </tbody>
262 </table></div>
263 </div>
264 </div>
265 <hr>
266 <div class="refsect2">
267 <a name="lgl-barcode-add-box"></a><h3>lgl_barcode_add_box ()</h3>
268 <pre class="programlisting"><span class="returnvalue">void</span>
269 lgl_barcode_add_box (<em class="parameter"><code><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>,
270                      <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
271                      <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
272                      <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
273                      <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
274 <p>Add a box to barcode.  Coordinates are relative to top left corner
275 of barcode.  All units are in points ( 1 point = 1/72 inch ).</p>
276 <div class="note"><p>
277        This function is intended to be used internally by barcode implementations.
278 </p></div>
279 <div class="refsect3">
280 <a name="id-1.3.2.7.5.6"></a><h4>Parameters</h4>
281 <div class="informaltable"><table width="100%" border="0">
282 <colgroup>
283 <col width="150px" class="parameters_name">
284 <col class="parameters_description">
285 <col width="200px" class="parameters_annotations">
286 </colgroup>
287 <tbody>
288 <tr>
289 <td class="parameter_name"><p>bc</p></td>
290 <td class="parameter_description"><p>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</p></td>
291 <td class="parameter_annotations"> </td>
292 </tr>
293 <tr>
294 <td class="parameter_name"><p>x</p></td>
295 <td class="parameter_description"><p>x coordinate of top left corner of box</p></td>
296 <td class="parameter_annotations"> </td>
297 </tr>
298 <tr>
299 <td class="parameter_name"><p>y</p></td>
300 <td class="parameter_description"><p>y coordinate of top left corner of box</p></td>
301 <td class="parameter_annotations"> </td>
302 </tr>
303 <tr>
304 <td class="parameter_name"><p>width</p></td>
305 <td class="parameter_description"><p>Width of box</p></td>
306 <td class="parameter_annotations"> </td>
307 </tr>
308 <tr>
309 <td class="parameter_name"><p>height</p></td>
310 <td class="parameter_description"><p>Height of box</p></td>
311 <td class="parameter_annotations"> </td>
312 </tr>
313 </tbody>
314 </table></div>
315 </div>
316 </div>
317 <hr>
318 <div class="refsect2">
319 <a name="lgl-barcode-add-char"></a><h3>lgl_barcode_add_char ()</h3>
320 <pre class="programlisting"><span class="returnvalue">void</span>
321 lgl_barcode_add_char (<em class="parameter"><code><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>,
322                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
323                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
324                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> fsize</code></em>,
325                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> c</code></em>);</pre>
326 <p>Add an ASCII character to barcode.  Coordinates are relative to top left corner
327 of barcode.  All units are in points ( 1 point = 1/72 inch ).</p>
328 <div class="note"><p>
329        This function is intended to be used internally by barcode implementations.
330 </p></div>
331 <div class="refsect3">
332 <a name="id-1.3.2.7.6.6"></a><h4>Parameters</h4>
333 <div class="informaltable"><table width="100%" border="0">
334 <colgroup>
335 <col width="150px" class="parameters_name">
336 <col class="parameters_description">
337 <col width="200px" class="parameters_annotations">
338 </colgroup>
339 <tbody>
340 <tr>
341 <td class="parameter_name"><p>bc</p></td>
342 <td class="parameter_description"><p>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</p></td>
343 <td class="parameter_annotations"> </td>
344 </tr>
345 <tr>
346 <td class="parameter_name"><p>x</p></td>
347 <td class="parameter_description"><p>x coordinate of left baseline of character</p></td>
348 <td class="parameter_annotations"> </td>
349 </tr>
350 <tr>
351 <td class="parameter_name"><p>y</p></td>
352 <td class="parameter_description"><p>y coordinate of left baseline of character</p></td>
353 <td class="parameter_annotations"> </td>
354 </tr>
355 <tr>
356 <td class="parameter_name"><p>fsize</p></td>
357 <td class="parameter_description"><p>Font size</p></td>
358 <td class="parameter_annotations"> </td>
359 </tr>
360 <tr>
361 <td class="parameter_name"><p>c</p></td>
362 <td class="parameter_description"><p>Character to add</p></td>
363 <td class="parameter_annotations"> </td>
364 </tr>
365 </tbody>
366 </table></div>
367 </div>
368 </div>
369 <hr>
370 <div class="refsect2">
371 <a name="lgl-barcode-add-string"></a><h3>lgl_barcode_add_string ()</h3>
372 <pre class="programlisting"><span class="returnvalue">void</span>
373 lgl_barcode_add_string (<em class="parameter"><code><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>,
374                         <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
375                         <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
376                         <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> fsize</code></em>,
377                         <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *string</code></em>,
378                         <em class="parameter"><code><span class="type">gsize</span> length</code></em>);</pre>
379 <p>Add a character string to barcode.  Coordinates are relative to top left corner
380 of barcode.  All units are in points ( 1 point = 1/72 inch ).</p>
381 <div class="note"><p>
382        This function is intended to be used internally by barcode implementations.
383 </p></div>
384 <div class="refsect3">
385 <a name="id-1.3.2.7.7.6"></a><h4>Parameters</h4>
386 <div class="informaltable"><table width="100%" border="0">
387 <colgroup>
388 <col width="150px" class="parameters_name">
389 <col class="parameters_description">
390 <col width="200px" class="parameters_annotations">
391 </colgroup>
392 <tbody>
393 <tr>
394 <td class="parameter_name"><p>bc</p></td>
395 <td class="parameter_description"><p>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</p></td>
396 <td class="parameter_annotations"> </td>
397 </tr>
398 <tr>
399 <td class="parameter_name"><p>x</p></td>
400 <td class="parameter_description"><p>x coordinate of horizontal center of baseline of string</p></td>
401 <td class="parameter_annotations"> </td>
402 </tr>
403 <tr>
404 <td class="parameter_name"><p>y</p></td>
405 <td class="parameter_description"><p>y coordinate of horizontal center of baseline of string</p></td>
406 <td class="parameter_annotations"> </td>
407 </tr>
408 <tr>
409 <td class="parameter_name"><p>fsize</p></td>
410 <td class="parameter_description"><p>Font size</p></td>
411 <td class="parameter_annotations"> </td>
412 </tr>
413 <tr>
414 <td class="parameter_name"><p>string</p></td>
415 <td class="parameter_description"><p>String to add</p></td>
416 <td class="parameter_annotations"> </td>
417 </tr>
418 <tr>
419 <td class="parameter_name"><p>length</p></td>
420 <td class="parameter_description"><p>Number of bytes in string</p></td>
421 <td class="parameter_annotations"> </td>
422 </tr>
423 </tbody>
424 </table></div>
425 </div>
426 </div>
427 <hr>
428 <div class="refsect2">
429 <a name="lgl-barcode-add-ring"></a><h3>lgl_barcode_add_ring ()</h3>
430 <pre class="programlisting"><span class="returnvalue">void</span>
431 lgl_barcode_add_ring (<em class="parameter"><code><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>,
432                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
433                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
434                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> radius</code></em>,
435                       <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> line_width</code></em>);</pre>
436 <p>Add a ring to barcode.  Coordinates are relative to top left corner
437 of barcode.  All units are in points ( 1 point = 1/72 inch ).</p>
438 <div class="note"><p>
439        This function is intended to be used internally by barcode implementations.
440 </p></div>
441 <div class="refsect3">
442 <a name="id-1.3.2.7.8.6"></a><h4>Parameters</h4>
443 <div class="informaltable"><table width="100%" border="0">
444 <colgroup>
445 <col width="150px" class="parameters_name">
446 <col class="parameters_description">
447 <col width="200px" class="parameters_annotations">
448 </colgroup>
449 <tbody>
450 <tr>
451 <td class="parameter_name"><p>bc</p></td>
452 <td class="parameter_description"><p>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</p></td>
453 <td class="parameter_annotations"> </td>
454 </tr>
455 <tr>
456 <td class="parameter_name"><p>x</p></td>
457 <td class="parameter_description"><p>x coordinate of center of circle</p></td>
458 <td class="parameter_annotations"> </td>
459 </tr>
460 <tr>
461 <td class="parameter_name"><p>y</p></td>
462 <td class="parameter_description"><p>y coordinate of center of circle</p></td>
463 <td class="parameter_annotations"> </td>
464 </tr>
465 <tr>
466 <td class="parameter_name"><p>radius</p></td>
467 <td class="parameter_description"><p>Radius of ring (center of line)</p></td>
468 <td class="parameter_annotations"> </td>
469 </tr>
470 <tr>
471 <td class="parameter_name"><p>line_width</p></td>
472 <td class="parameter_description"><p>Width of line</p></td>
473 <td class="parameter_annotations"> </td>
474 </tr>
475 </tbody>
476 </table></div>
477 </div>
478 </div>
479 <hr>
480 <div class="refsect2">
481 <a name="lgl-barcode-add-hexagon"></a><h3>lgl_barcode_add_hexagon ()</h3>
482 <pre class="programlisting"><span class="returnvalue">void</span>
483 lgl_barcode_add_hexagon (<em class="parameter"><code><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> *bc</code></em>,
484                          <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
485                          <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
486                          <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
487 <p>Add a regular hexagon (oriented with vertexes at top and bottom) to barcode.
488 Coordinates are relative to top left corner of barcode.  All units are in
489 points ( 1 point = 1/72 inch ).</p>
490 <div class="note"><p>
491        This function is intended to be used internally by barcode implementations.
492 </p></div>
493 <div class="refsect3">
494 <a name="id-1.3.2.7.9.6"></a><h4>Parameters</h4>
495 <div class="informaltable"><table width="100%" border="0">
496 <colgroup>
497 <col width="150px" class="parameters_name">
498 <col class="parameters_description">
499 <col width="200px" class="parameters_annotations">
500 </colgroup>
501 <tbody>
502 <tr>
503 <td class="parameter_name"><p>bc</p></td>
504 <td class="parameter_description"><p>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</p></td>
505 <td class="parameter_annotations"> </td>
506 </tr>
507 <tr>
508 <td class="parameter_name"><p>x</p></td>
509 <td class="parameter_description"><p>x coordinate of top point of hexagon</p></td>
510 <td class="parameter_annotations"> </td>
511 </tr>
512 <tr>
513 <td class="parameter_name"><p>y</p></td>
514 <td class="parameter_description"><p>y coordinate of top point of hexagon</p></td>
515 <td class="parameter_annotations"> </td>
516 </tr>
517 <tr>
518 <td class="parameter_name"><p>height</p></td>
519 <td class="parameter_description"><p>Height of hexagon</p></td>
520 <td class="parameter_annotations"> </td>
521 </tr>
522 </tbody>
523 </table></div>
524 </div>
525 </div>
526 </div>
527 <div class="refsect1">
528 <a name="libglbarcode-3.0-lgl-barcode.other_details"></a><h2>Types and Values</h2>
529 <div class="refsect2">
530 <a name="lglBarcode"></a><h3>lglBarcode</h3>
531 <pre class="programlisting">typedef struct {
532         gdouble  width;
533         gdouble  height;
534
535         GList   *shapes;    /* List of lglBarcodeShape drawing primitives */
536 } lglBarcode;
537 </pre>
538 <p>This structure contains the libglbarcode intermediate barcode format.  This
539 structure contains a simple vectorized representation of the barcode.  This
540 vectorized representation is easy to interpret by a rendering backend for
541 either vector or raster formats.  A simple API is provided for constructing
542 barcodes in this format.</p>
543 <div class="refsect3">
544 <a name="id-1.3.2.8.2.5"></a><h4>Members</h4>
545 <div class="informaltable"><table width="100%" border="0">
546 <colgroup>
547 <col width="300px" class="struct_members_name">
548 <col class="struct_members_description">
549 <col width="200px" class="struct_members_annotations">
550 </colgroup>
551 <tbody>
552 <tr>
553 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcode.width"></a>width</code></em>;</p></td>
554 <td class="struct_member_description"><p>Width of barcode bounding box (points)</p></td>
555 <td class="struct_member_annotations"> </td>
556 </tr>
557 <tr>
558 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcode.height"></a>height</code></em>;</p></td>
559 <td class="struct_member_description"><p>Height of barcode bounding box (points)</p></td>
560 <td class="struct_member_annotations"> </td>
561 </tr>
562 <tr>
563 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *<em class="structfield"><code><a name="lglBarcode.shapes"></a>shapes</code></em>;</p></td>
564 <td class="struct_member_description"><p>List of <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShape" title="lglBarcodeShape"><span class="type">lglBarcodeShape</span></a> drawing primitives</p></td>
565 <td class="struct_member_annotations"> </td>
566 </tr>
567 </tbody>
568 </table></div>
569 </div>
570 </div>
571 <hr>
572 <div class="refsect2">
573 <a name="lglBarcodeShapeType"></a><h3>enum lglBarcodeShapeType</h3>
574 <p>
575 </p>
576 <div class="refsect3">
577 <a name="id-1.3.2.8.3.4"></a><h4>Members</h4>
578 <div class="informaltable"><table width="100%" border="0">
579 <colgroup>
580 <col width="300px" class="enum_members_name">
581 <col class="enum_members_description">
582 <col width="200px" class="enum_members_annotations">
583 </colgroup>
584 <tbody>
585 <tr>
586 <td class="enum_member_name"><p><a name="LGL-BARCODE-SHAPE-LINE:CAPS"></a>LGL_BARCODE_SHAPE_LINE</p></td>
587 <td class="enum_member_description"> </td>
588 <td class="enum_member_annotations"> </td>
589 </tr>
590 <tr>
591 <td class="enum_member_name"><p><a name="LGL-BARCODE-SHAPE-BOX:CAPS"></a>LGL_BARCODE_SHAPE_BOX</p></td>
592 <td class="enum_member_description"> </td>
593 <td class="enum_member_annotations"> </td>
594 </tr>
595 <tr>
596 <td class="enum_member_name"><p><a name="LGL-BARCODE-SHAPE-CHAR:CAPS"></a>LGL_BARCODE_SHAPE_CHAR</p></td>
597 <td class="enum_member_description"> </td>
598 <td class="enum_member_annotations"> </td>
599 </tr>
600 <tr>
601 <td class="enum_member_name"><p><a name="LGL-BARCODE-SHAPE-STRING:CAPS"></a>LGL_BARCODE_SHAPE_STRING</p></td>
602 <td class="enum_member_description"> </td>
603 <td class="enum_member_annotations"> </td>
604 </tr>
605 <tr>
606 <td class="enum_member_name"><p><a name="LGL-BARCODE-SHAPE-RING:CAPS"></a>LGL_BARCODE_SHAPE_RING</p></td>
607 <td class="enum_member_description"> </td>
608 <td class="enum_member_annotations"> </td>
609 </tr>
610 <tr>
611 <td class="enum_member_name"><p><a name="LGL-BARCODE-SHAPE-HEXAGON:CAPS"></a>LGL_BARCODE_SHAPE_HEXAGON</p></td>
612 <td class="enum_member_description"> </td>
613 <td class="enum_member_annotations"> </td>
614 </tr>
615 </tbody>
616 </table></div>
617 </div>
618 </div>
619 <hr>
620 <div class="refsect2">
621 <a name="lglBarcodeShape"></a><h3>lglBarcodeShape</h3>
622 <p>
623 </p>
624 </div>
625 <hr>
626 <div class="refsect2">
627 <a name="lglBarcodeShapeAny"></a><h3>lglBarcodeShapeAny</h3>
628 <pre class="programlisting">typedef struct {
629         /* Begin Common Fields */
630         lglBarcodeShapeType  type;
631         gdouble              x;
632         gdouble              y;
633         /* End Common Fields */
634 } lglBarcodeShapeAny;
635 </pre>
636 <p>
637 </p>
638 </div>
639 <hr>
640 <div class="refsect2">
641 <a name="lglBarcodeShapeLine"></a><h3>lglBarcodeShapeLine</h3>
642 <pre class="programlisting">typedef struct {
643         /* Begin Common Fields */
644         lglBarcodeShapeType  type; /* Always LGL_BARCODE_SHAPE_LINE. */
645         gdouble              x;
646         gdouble              y;
647         /* End Common Fields */
648
649         gdouble              length;
650         gdouble              width;
651 } lglBarcodeShapeLine;
652 </pre>
653 <p>A vertical line drawing primitive.</p>
654 <pre class="programlisting">
655
656 @ =  origin (x,y) from top left corner of barcode
657
658              +--@--+
659              |     |
660              |     |
661              |     |
662              |     | length
663              |     |
664              |     |
665              |     |
666              +-----+
667               width
668
669 </pre>
670 <p>All units are in points ( 1 point = 1/72 inch ).</p>
671 <div class="refsect3">
672 <a name="id-1.3.2.8.6.7"></a><h4>Members</h4>
673 <div class="informaltable"><table width="100%" border="0">
674 <colgroup>
675 <col width="300px" class="struct_members_name">
676 <col class="struct_members_description">
677 <col width="200px" class="struct_members_annotations">
678 </colgroup>
679 <tbody>
680 <tr>
681 <td class="struct_member_name"><p><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeType" title="enum lglBarcodeShapeType"><span class="type">lglBarcodeShapeType</span></a> <em class="structfield"><code><a name="lglBarcodeShapeLine.type"></a>type</code></em>;</p></td>
682 <td class="struct_member_description"><p>Always <a class="link" href="libglbarcode-3.0-lgl-barcode.html#LGL-BARCODE-SHAPE-LINE:CAPS"><code class="literal">LGL_BARCODE_SHAPE_LINE</code></a></p></td>
683 <td class="struct_member_annotations"> </td>
684 </tr>
685 <tr>
686 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeLine.x"></a>x</code></em>;</p></td>
687 <td class="struct_member_description"><p>x coordinate of top of line</p></td>
688 <td class="struct_member_annotations"> </td>
689 </tr>
690 <tr>
691 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeLine.y"></a>y</code></em>;</p></td>
692 <td class="struct_member_description"><p>y coordinate of top of line</p></td>
693 <td class="struct_member_annotations"> </td>
694 </tr>
695 <tr>
696 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeLine.length"></a>length</code></em>;</p></td>
697 <td class="struct_member_description"><p>Length of line</p></td>
698 <td class="struct_member_annotations"> </td>
699 </tr>
700 <tr>
701 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeLine.width"></a>width</code></em>;</p></td>
702 <td class="struct_member_description"><p>Width of line</p></td>
703 <td class="struct_member_annotations"> </td>
704 </tr>
705 </tbody>
706 </table></div>
707 </div>
708 </div>
709 <hr>
710 <div class="refsect2">
711 <a name="lglBarcodeShapeBox"></a><h3>lglBarcodeShapeBox</h3>
712 <pre class="programlisting">typedef struct {
713         /* Begin Common Fields */
714         lglBarcodeShapeType  type; /* Always LGL_BARCODE_SHAPE_BOX. */
715         gdouble              x;
716         gdouble              y;
717         /* End Common Fields */
718
719         gdouble              width;
720         gdouble              height;
721 } lglBarcodeShapeBox;
722 </pre>
723 <p>A solid box drawing primitive.</p>
724 <pre class="programlisting">
725
726 @ =  origin (x,y) from top left corner of barcode
727
728              @---------+
729              |         |
730              |         |
731              |         |
732              |         | height
733              |         |
734              |         |
735              |         |
736              +---------+
737                 width
738
739 </pre>
740 <p>All units are in points ( 1 point = 1/72 inch ).</p>
741 <div class="refsect3">
742 <a name="id-1.3.2.8.7.7"></a><h4>Members</h4>
743 <div class="informaltable"><table width="100%" border="0">
744 <colgroup>
745 <col width="300px" class="struct_members_name">
746 <col class="struct_members_description">
747 <col width="200px" class="struct_members_annotations">
748 </colgroup>
749 <tbody>
750 <tr>
751 <td class="struct_member_name"><p><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeType" title="enum lglBarcodeShapeType"><span class="type">lglBarcodeShapeType</span></a> <em class="structfield"><code><a name="lglBarcodeShapeBox.type"></a>type</code></em>;</p></td>
752 <td class="struct_member_description"><p>Always <a class="link" href="libglbarcode-3.0-lgl-barcode.html#LGL-BARCODE-SHAPE-BOX:CAPS"><code class="literal">LGL_BARCODE_SHAPE_BOX</code></a></p></td>
753 <td class="struct_member_annotations"> </td>
754 </tr>
755 <tr>
756 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeBox.x"></a>x</code></em>;</p></td>
757 <td class="struct_member_description"><p>x coordinate of top left corner of box</p></td>
758 <td class="struct_member_annotations"> </td>
759 </tr>
760 <tr>
761 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeBox.y"></a>y</code></em>;</p></td>
762 <td class="struct_member_description"><p>y coordinate of top left corner of box</p></td>
763 <td class="struct_member_annotations"> </td>
764 </tr>
765 <tr>
766 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeBox.width"></a>width</code></em>;</p></td>
767 <td class="struct_member_description"><p>Width of box</p></td>
768 <td class="struct_member_annotations"> </td>
769 </tr>
770 <tr>
771 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeBox.height"></a>height</code></em>;</p></td>
772 <td class="struct_member_description"><p>Height of box</p></td>
773 <td class="struct_member_annotations"> </td>
774 </tr>
775 </tbody>
776 </table></div>
777 </div>
778 </div>
779 <hr>
780 <div class="refsect2">
781 <a name="lglBarcodeShapeChar"></a><h3>lglBarcodeShapeChar</h3>
782 <pre class="programlisting">typedef struct {
783         /* Begin Common Fields */
784         lglBarcodeShapeType  type; /* Always LGL_BARCODE_SHAPE_CHAR. */
785         gdouble              x;
786         gdouble              y;
787         /* End Common Fields */
788
789         gdouble              fsize;
790         gchar                c;
791 } lglBarcodeShapeChar;
792 </pre>
793 <p>An single byte character drawing primitive.</p>
794 <pre class="programlisting">
795
796 @ =  origin (x,y) from top left corner of barcode
797
798              ____ ------------
799             /    \           ^
800            /  /\  \          |
801           /  /__\  \         |
802          /  ______  \        | ~fsize
803         /  /      \  \       |
804        /__/        \__\      |
805                              v
806       @ ----------------------
807
808 </pre>
809 <p>All units are in points ( 1 point = 1/72 inch ).</p>
810 <div class="refsect3">
811 <a name="id-1.3.2.8.8.7"></a><h4>Members</h4>
812 <div class="informaltable"><table width="100%" border="0">
813 <colgroup>
814 <col width="300px" class="struct_members_name">
815 <col class="struct_members_description">
816 <col width="200px" class="struct_members_annotations">
817 </colgroup>
818 <tbody>
819 <tr>
820 <td class="struct_member_name"><p><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeType" title="enum lglBarcodeShapeType"><span class="type">lglBarcodeShapeType</span></a> <em class="structfield"><code><a name="lglBarcodeShapeChar.type"></a>type</code></em>;</p></td>
821 <td class="struct_member_description"><p>Always <a class="link" href="libglbarcode-3.0-lgl-barcode.html#LGL-BARCODE-SHAPE-CHAR:CAPS"><code class="literal">LGL_BARCODE_SHAPE_CHAR</code></a></p></td>
822 <td class="struct_member_annotations"> </td>
823 </tr>
824 <tr>
825 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeChar.x"></a>x</code></em>;</p></td>
826 <td class="struct_member_description"><p>x coordinate of left baseline of character</p></td>
827 <td class="struct_member_annotations"> </td>
828 </tr>
829 <tr>
830 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeChar.y"></a>y</code></em>;</p></td>
831 <td class="struct_member_description"><p>y coordinate of left baseline of character</p></td>
832 <td class="struct_member_annotations"> </td>
833 </tr>
834 <tr>
835 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeChar.fsize"></a>fsize</code></em>;</p></td>
836 <td class="struct_member_description"><p>Font size</p></td>
837 <td class="struct_member_annotations"> </td>
838 </tr>
839 <tr>
840 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> <em class="structfield"><code><a name="lglBarcodeShapeChar.c"></a>c</code></em>;</p></td>
841 <td class="struct_member_description"><p>Character to add</p></td>
842 <td class="struct_member_annotations"> </td>
843 </tr>
844 </tbody>
845 </table></div>
846 </div>
847 </div>
848 <hr>
849 <div class="refsect2">
850 <a name="lglBarcodeShapeString"></a><h3>lglBarcodeShapeString</h3>
851 <pre class="programlisting">typedef struct {
852         /* Begin Common Fields */
853         lglBarcodeShapeType  type; /* Always LGL_BARCODE_SHAPE_STRING. */
854         gdouble              x;
855         gdouble              y;
856         /* End Common Fields */
857
858         gdouble              fsize;
859         gchar               *string;
860 } lglBarcodeShapeString;
861 </pre>
862 <p>A character string drawing primitive.</p>
863 <pre class="programlisting">
864
865 @ =  origin (x,y) from top left corner of barcode
866
867              ____        _  ------------------
868             /    \      | |                  ^
869            /  /\  \     | |                  |
870           /  /__\  \    | |___     ____      |
871          /  ______  \   | ._  \   /  __|     | ~fsize
872         /  /      \  \  | |_)  | |  (__      |
873        /__/        \__\ |_.___/   \____|     |
874                                              v
875                           @ ------------------
876                           x = horizontal center
877
878 </pre>
879 <p>All units are in points ( 1 point = 1/72 inch ).</p>
880 <div class="refsect3">
881 <a name="id-1.3.2.8.9.7"></a><h4>Members</h4>
882 <div class="informaltable"><table width="100%" border="0">
883 <colgroup>
884 <col width="300px" class="struct_members_name">
885 <col class="struct_members_description">
886 <col width="200px" class="struct_members_annotations">
887 </colgroup>
888 <tbody>
889 <tr>
890 <td class="struct_member_name"><p><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeType" title="enum lglBarcodeShapeType"><span class="type">lglBarcodeShapeType</span></a> <em class="structfield"><code><a name="lglBarcodeShapeString.type"></a>type</code></em>;</p></td>
891 <td class="struct_member_description"><p>Always <a class="link" href="libglbarcode-3.0-lgl-barcode.html#LGL-BARCODE-SHAPE-STRING:CAPS"><code class="literal">LGL_BARCODE_SHAPE_STRING</code></a></p></td>
892 <td class="struct_member_annotations"> </td>
893 </tr>
894 <tr>
895 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeString.x"></a>x</code></em>;</p></td>
896 <td class="struct_member_description"><p>x coordinate of horizontal center of baseline of string</p></td>
897 <td class="struct_member_annotations"> </td>
898 </tr>
899 <tr>
900 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeString.y"></a>y</code></em>;</p></td>
901 <td class="struct_member_description"><p>y coordinate of horizontal center of baseline of string</p></td>
902 <td class="struct_member_annotations"> </td>
903 </tr>
904 <tr>
905 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeString.fsize"></a>fsize</code></em>;</p></td>
906 <td class="struct_member_description"><p>Font size</p></td>
907 <td class="struct_member_annotations"> </td>
908 </tr>
909 <tr>
910 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="lglBarcodeShapeString.string"></a>string</code></em>;</p></td>
911 <td class="struct_member_description"><p>String to add</p></td>
912 <td class="struct_member_annotations"> </td>
913 </tr>
914 </tbody>
915 </table></div>
916 </div>
917 </div>
918 <hr>
919 <div class="refsect2">
920 <a name="lglBarcodeShapeRing"></a><h3>lglBarcodeShapeRing</h3>
921 <pre class="programlisting">typedef struct {
922         /* Begin Common Fields */
923         lglBarcodeShapeType  type; /* Always LGL_BARCODE_SHAPE_RING. */
924         gdouble              x;
925         gdouble              y;
926         /* End Common Fields */
927
928         gdouble              radius;
929         gdouble              line_width;
930 } lglBarcodeShapeRing;
931 </pre>
932 <p>A ring (an open circle) drawing primitive.</p>
933 <pre class="programlisting">
934
935 @ = origin (x,y) is centre of circle
936
937                v  line_width
938           _.-""""-._
939         .'   ____   `.
940        /   .'  ^ `.   \
941       |   /        \   |
942       |   |    @---|---|------
943       |   \        /   |     ^
944        \   `.____.'   /      | radius
945         `._    ...._.'.......|
946            `-....-'
947
948 </pre>
949 <p>All units are in points ( 1 point = 1/72 inch ).</p>
950 <div class="refsect3">
951 <a name="id-1.3.2.8.10.7"></a><h4>Members</h4>
952 <div class="informaltable"><table width="100%" border="0">
953 <colgroup>
954 <col width="300px" class="struct_members_name">
955 <col class="struct_members_description">
956 <col width="200px" class="struct_members_annotations">
957 </colgroup>
958 <tbody>
959 <tr>
960 <td class="struct_member_name"><p><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeType" title="enum lglBarcodeShapeType"><span class="type">lglBarcodeShapeType</span></a> <em class="structfield"><code><a name="lglBarcodeShapeRing.type"></a>type</code></em>;</p></td>
961 <td class="struct_member_description"><p>Always <a class="link" href="libglbarcode-3.0-lgl-barcode.html#LGL-BARCODE-SHAPE-RING:CAPS"><code class="literal">LGL_BARCODE_SHAPE_RING</code></a></p></td>
962 <td class="struct_member_annotations"> </td>
963 </tr>
964 <tr>
965 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeRing.x"></a>x</code></em>;</p></td>
966 <td class="struct_member_description"><p>x coordinate of center of circle</p></td>
967 <td class="struct_member_annotations"> </td>
968 </tr>
969 <tr>
970 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeRing.y"></a>y</code></em>;</p></td>
971 <td class="struct_member_description"><p>y coordinate of center of circle</p></td>
972 <td class="struct_member_annotations"> </td>
973 </tr>
974 <tr>
975 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeRing.radius"></a>radius</code></em>;</p></td>
976 <td class="struct_member_description"><p>Radius of ring (center of line)</p></td>
977 <td class="struct_member_annotations"> </td>
978 </tr>
979 <tr>
980 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeRing.line-width"></a>line_width</code></em>;</p></td>
981 <td class="struct_member_description"><p>Width of line</p></td>
982 <td class="struct_member_annotations"> </td>
983 </tr>
984 </tbody>
985 </table></div>
986 </div>
987 </div>
988 <hr>
989 <div class="refsect2">
990 <a name="lglBarcodeShapeHexagon"></a><h3>lglBarcodeShapeHexagon</h3>
991 <pre class="programlisting">typedef struct {
992         /* Begin Common Fields */
993         lglBarcodeShapeType  type; /* Always LGL_BARCODE_SHAPE_HEXAGON. */
994         gdouble              x;
995         gdouble              y;
996         /* End Common Fields */
997
998         gdouble              height;
999 } lglBarcodeShapeHexagon;
1000 </pre>
1001 <p>A solid regular hexagon (oriented with vertexes at top and bottom) drawing primitive.</p>
1002 <pre class="programlisting">
1003
1004 @ = origin (x,y) is top of hexagon
1005
1006                  @ ------------------
1007              _-"   "-_              ^
1008          _-"           "-_          |
1009       +"                   "+       |
1010       |                     |       |
1011       |                     |       |
1012       |                     |       | height
1013       |                     |       |
1014       |                     |       |
1015       +_                   _+       |
1016         "-_             _-"         |
1017            "-_       _-"            |
1018               "-_ _-"               v
1019                  " ------------------
1020
1021 </pre>
1022 <p>All units are in points ( 1 point = 1/72 inch ).</p>
1023 <div class="refsect3">
1024 <a name="id-1.3.2.8.11.7"></a><h4>Members</h4>
1025 <div class="informaltable"><table width="100%" border="0">
1026 <colgroup>
1027 <col width="300px" class="struct_members_name">
1028 <col class="struct_members_description">
1029 <col width="200px" class="struct_members_annotations">
1030 </colgroup>
1031 <tbody>
1032 <tr>
1033 <td class="struct_member_name"><p><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeType" title="enum lglBarcodeShapeType"><span class="type">lglBarcodeShapeType</span></a> <em class="structfield"><code><a name="lglBarcodeShapeHexagon.type"></a>type</code></em>;</p></td>
1034 <td class="struct_member_description"><p>Always <a class="link" href="libglbarcode-3.0-lgl-barcode.html#LGL-BARCODE-SHAPE-HEXAGON:CAPS"><code class="literal">LGL_BARCODE_SHAPE_HEXAGON</code></a></p></td>
1035 <td class="struct_member_annotations"> </td>
1036 </tr>
1037 <tr>
1038 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeHexagon.x"></a>x</code></em>;</p></td>
1039 <td class="struct_member_description"><p>x coordinate of top point of hexagon</p></td>
1040 <td class="struct_member_annotations"> </td>
1041 </tr>
1042 <tr>
1043 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeHexagon.y"></a>y</code></em>;</p></td>
1044 <td class="struct_member_description"><p>y coordinate of top point of hexagon</p></td>
1045 <td class="struct_member_annotations"> </td>
1046 </tr>
1047 <tr>
1048 <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="lglBarcodeShapeHexagon.height"></a>height</code></em>;</p></td>
1049 <td class="struct_member_description"><p>Height of hexagon</p></td>
1050 <td class="struct_member_annotations"> </td>
1051 </tr>
1052 </tbody>
1053 </table></div>
1054 </div>
1055 </div>
1056 </div>
1057 </div>
1058 <div class="footer">
1059 <hr>Generated by GTK-Doc V1.24</div>
1060 </body>
1061 </html>