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>lglBarcode</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.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.17 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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="2">
17 <td><a accesskey="p" href="api.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="api.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">LibGlbarcode 3.0 Reference Manual</th>
21 <td><a accesskey="n" href="libglbarcode-3.0-lgl-barcode-create.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#libglbarcode-3.0-lgl-barcode.synopsis" class="shortcut">Top</a>
26 <a href="#libglbarcode-3.0-lgl-barcode.description" class="shortcut">Description</a>
29 <div class="refentry">
30 <a name="libglbarcode-3.0-lgl-barcode"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
33 <h2><span class="refentrytitle"><a name="libglbarcode-3.0-lgl-barcode.top_of_page"></a>lglBarcode</span></h2>
34 <p>lglBarcode — Barcode structure</p>
36 <td valign="top" align="right"></td>
38 <div class="refsynopsisdiv">
39 <a name="libglbarcode-3.0-lgl-barcode.synopsis"></a><h2>Synopsis</h2>
40 <pre class="synopsis">
41 #include <libglbarcode/lgl-barcode.h>
43 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode">lglBarcode</a>;
45 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="returnvalue">lglBarcode</span></a> * <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-new" title="lgl_barcode_new ()">lgl_barcode_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
46 <span class="returnvalue">void</span> <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-free" title="lgl_barcode_free ()">lgl_barcode_free</a> (<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>);
48 enum <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeType" title="enum lglBarcodeShapeType">lglBarcodeShapeType</a>;
49 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShape" title="lglBarcodeShape">lglBarcodeShape</a>;
50 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeAny" title="lglBarcodeShapeAny">lglBarcodeShapeAny</a>;
51 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeLine" title="lglBarcodeShapeLine">lglBarcodeShapeLine</a>;
52 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeBox" title="lglBarcodeShapeBox">lglBarcodeShapeBox</a>;
53 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeChar" title="lglBarcodeShapeChar">lglBarcodeShapeChar</a>;
54 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeString" title="lglBarcodeShapeString">lglBarcodeShapeString</a>;
55 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeRing" title="lglBarcodeShapeRing">lglBarcodeShapeRing</a>;
56 <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShapeHexagon" title="lglBarcodeShapeHexagon">lglBarcodeShapeHexagon</a>;
58 <span class="returnvalue">void</span> <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-line" title="lgl_barcode_add_line ()">lgl_barcode_add_line</a> (<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>,
59 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
60 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
61 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> length</code></em>,
62 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>);
63 <span class="returnvalue">void</span> <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-box" title="lgl_barcode_add_box ()">lgl_barcode_add_box</a> (<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>,
64 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
65 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
66 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
67 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);
68 <span class="returnvalue">void</span> <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-char" title="lgl_barcode_add_char ()">lgl_barcode_add_char</a> (<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>,
69 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
70 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
71 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> fsize</code></em>,
72 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> c</code></em>);
73 <span class="returnvalue">void</span> <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-string" title="lgl_barcode_add_string ()">lgl_barcode_add_string</a> (<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>,
74 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
75 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
76 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> fsize</code></em>,
77 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *string</code></em>,
78 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> length</code></em>);
79 <span class="returnvalue">void</span> <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-ring" title="lgl_barcode_add_ring ()">lgl_barcode_add_ring</a> (<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>,
80 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
81 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
82 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> radius</code></em>,
83 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> line_width</code></em>);
84 <span class="returnvalue">void</span> <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lgl-barcode-add-hexagon" title="lgl_barcode_add_hexagon ()">lgl_barcode_add_hexagon</a> (<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>,
85 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
86 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
87 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);
90 <div class="refsect1">
91 <a name="libglbarcode-3.0-lgl-barcode.description"></a><h2>Description</h2>
93 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.
94 These structures form the basic intermediate barcode representation used by libglbarcode.
95 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.
98 <div class="refsect1">
99 <a name="libglbarcode-3.0-lgl-barcode.details"></a><h2>Details</h2>
100 <div class="refsect2">
101 <a name="lglBarcode"></a><h3>lglBarcode</h3>
102 <pre class="programlisting">typedef struct {
106 GList *shapes; /* List of lglBarcodeShape drawing primitives */
110 This structure contains the libglbarcode intermediate barcode format. This
111 structure contains a simple vectorized representation of the barcode. This
112 vectorized representation is easy to interpret by a rendering backend for
113 either vector or raster formats. A simple API is provided for constructing
114 barcodes in this format.
116 <div class="variablelist"><table border="0">
117 <col align="left" valign="top">
120 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
121 <td>Width of barcode bounding box (points)</td>
124 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
125 <td>Height of barcode bounding box (points)</td>
128 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
129 <td>List of <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcodeShape" title="lglBarcodeShape"><span class="type">lglBarcodeShape</span></a> drawing primitives</td>
135 <div class="refsect2">
136 <a name="lgl-barcode-new"></a><h3>lgl_barcode_new ()</h3>
137 <pre class="programlisting"><a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="returnvalue">lglBarcode</span></a> * lgl_barcode_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
139 Allocate a new <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure.
142 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.
146 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
147 <h3 class="title">Note</h3>
149 This function is intended to be used internally by barcode implementations.
150 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.
155 <div class="variablelist"><table border="0">
156 <col align="left" valign="top">
158 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
159 <td>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
165 <div class="refsect2">
166 <a name="lgl-barcode-free"></a><h3>lgl_barcode_free ()</h3>
167 <pre class="programlisting"><span class="returnvalue">void</span> 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>
169 Free a previously allocated <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure.
171 <div class="variablelist"><table border="0">
172 <col align="left" valign="top">
174 <td><p><span class="term"><em class="parameter"><code>bc</code></em> :</span></p></td>
175 <td>The <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure to free</td>
180 <div class="refsect2">
181 <a name="lglBarcodeShapeType"></a><h3>enum lglBarcodeShapeType</h3>
182 <pre class="programlisting">typedef enum {
183 LGL_BARCODE_SHAPE_LINE,
184 LGL_BARCODE_SHAPE_BOX,
185 LGL_BARCODE_SHAPE_CHAR,
186 LGL_BARCODE_SHAPE_STRING,
187 LGL_BARCODE_SHAPE_RING,
188 LGL_BARCODE_SHAPE_HEXAGON
189 } lglBarcodeShapeType;
195 <div class="refsect2">
196 <a name="lglBarcodeShape"></a><h3>lglBarcodeShape</h3>
197 <pre class="programlisting">typedef union {
199 lglBarcodeShapeType type;
200 lglBarcodeShapeAny any;
202 lglBarcodeShapeLine line;
203 lglBarcodeShapeBox box;
204 lglBarcodeShapeChar bchar;
205 lglBarcodeShapeString string;
206 lglBarcodeShapeRing ring;
207 lglBarcodeShapeHexagon hexagon;
215 <div class="refsect2">
216 <a name="lglBarcodeShapeAny"></a><h3>lglBarcodeShapeAny</h3>
217 <pre class="programlisting">typedef struct {
218 /* Begin Common Fields */
219 lglBarcodeShapeType type;
222 /* End Common Fields */
223 } lglBarcodeShapeAny;
229 <div class="refsect2">
230 <a name="lglBarcodeShapeLine"></a><h3>lglBarcodeShapeLine</h3>
231 <pre class="programlisting">typedef struct {
232 /* Begin Common Fields */
233 lglBarcodeShapeType type; /* Always LGL_BARCODE_SHAPE_LINE. */
236 /* End Common Fields */
240 } lglBarcodeShapeLine;
243 A vertical line drawing primitive.
247 <pre class="programlisting">
249 @ = origin (x,y) from top left corner of barcode
266 All units are in points ( 1 point = 1/72 inch ).
268 <div class="variablelist"><table border="0">
269 <col align="left" valign="top">
272 <td><p><span class="term"><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>;</span></p></td>
273 <td>Always <code class="literal">LGL_BARCODE_SHAPE_LINE</code>
277 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
278 <td>x coordinate of top of line</td>
281 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
282 <td>y coordinate of top of line</td>
285 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
286 <td>Length of line</td>
289 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
290 <td>Width of line</td>
296 <div class="refsect2">
297 <a name="lglBarcodeShapeBox"></a><h3>lglBarcodeShapeBox</h3>
298 <pre class="programlisting">typedef struct {
299 /* Begin Common Fields */
300 lglBarcodeShapeType type; /* Always LGL_BARCODE_SHAPE_BOX. */
303 /* End Common Fields */
307 } lglBarcodeShapeBox;
310 A solid box drawing primitive.
314 <pre class="programlisting">
316 @ = origin (x,y) from top left corner of barcode
333 All units are in points ( 1 point = 1/72 inch ).
335 <div class="variablelist"><table border="0">
336 <col align="left" valign="top">
339 <td><p><span class="term"><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>;</span></p></td>
340 <td>Always <code class="literal">LGL_BARCODE_SHAPE_BOX</code>
344 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
345 <td>x coordinate of top left corner of box</td>
348 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
349 <td>y coordinate of top left corner of box</td>
352 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
353 <td>Width of box</td>
356 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
357 <td>Height of box</td>
363 <div class="refsect2">
364 <a name="lglBarcodeShapeChar"></a><h3>lglBarcodeShapeChar</h3>
365 <pre class="programlisting">typedef struct {
366 /* Begin Common Fields */
367 lglBarcodeShapeType type; /* Always LGL_BARCODE_SHAPE_CHAR. */
370 /* End Common Fields */
374 } lglBarcodeShapeChar;
377 An single byte character drawing primitive.
381 <pre class="programlisting">
383 @ = origin (x,y) from top left corner of barcode
393 @ ----------------------
399 All units are in points ( 1 point = 1/72 inch ).
401 <div class="variablelist"><table border="0">
402 <col align="left" valign="top">
405 <td><p><span class="term"><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>;</span></p></td>
406 <td>Always <code class="literal">LGL_BARCODE_SHAPE_CHAR</code>
410 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
411 <td>x coordinate of left baseline of character</td>
414 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
415 <td>y coordinate of left baseline of character</td>
418 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
422 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
423 <td>Character to add</td>
429 <div class="refsect2">
430 <a name="lglBarcodeShapeString"></a><h3>lglBarcodeShapeString</h3>
431 <pre class="programlisting">typedef struct {
432 /* Begin Common Fields */
433 lglBarcodeShapeType type; /* Always LGL_BARCODE_SHAPE_STRING. */
436 /* End Common Fields */
440 } lglBarcodeShapeString;
443 A character string drawing primitive.
447 <pre class="programlisting">
449 @ = origin (x,y) from top left corner of barcode
451 ____ _ ------------------
454 / /__\ \ | |___ ____ |
455 / ______ \ | ._ \ / __| | ~fsize
456 / / \ \ | |_) | | (__ |
457 /__/ \__\ |_.___/ \____| |
460 x = horizontal center
466 All units are in points ( 1 point = 1/72 inch ).
468 <div class="variablelist"><table border="0">
469 <col align="left" valign="top">
472 <td><p><span class="term"><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>;</span></p></td>
473 <td>Always <code class="literal">LGL_BARCODE_SHAPE_STRING</code>
477 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
478 <td>x coordinate of horizontal center of baseline of string</td>
481 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
482 <td>y coordinate of horizontal center of baseline of string</td>
485 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
489 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
490 <td>String to add</td>
496 <div class="refsect2">
497 <a name="lglBarcodeShapeRing"></a><h3>lglBarcodeShapeRing</h3>
498 <pre class="programlisting">typedef struct {
499 /* Begin Common Fields */
500 lglBarcodeShapeType type; /* Always LGL_BARCODE_SHAPE_RING. */
503 /* End Common Fields */
507 } lglBarcodeShapeRing;
510 A ring (an open circle) drawing primitive.
514 <pre class="programlisting">
516 @ = origin (x,y) is centre of circle
525 \ `.____.' / | radius
533 All units are in points ( 1 point = 1/72 inch ).
535 <div class="variablelist"><table border="0">
536 <col align="left" valign="top">
539 <td><p><span class="term"><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>;</span></p></td>
540 <td>Always <code class="literal">LGL_BARCODE_SHAPE_RING</code>
544 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
545 <td>x coordinate of center of circle</td>
548 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
549 <td>y coordinate of center of circle</td>
552 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
553 <td>Radius of ring (center of line)</td>
556 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
557 <td>Width of line</td>
563 <div class="refsect2">
564 <a name="lglBarcodeShapeHexagon"></a><h3>lglBarcodeShapeHexagon</h3>
565 <pre class="programlisting">typedef struct {
566 /* Begin Common Fields */
567 lglBarcodeShapeType type; /* Always LGL_BARCODE_SHAPE_HEXAGON. */
570 /* End Common Fields */
573 } lglBarcodeShapeHexagon;
576 A solid regular hexagon (oriented with vertexes at top and bottom) drawing primitive.
580 <pre class="programlisting">
582 @ = origin (x,y) is top of hexagon
603 All units are in points ( 1 point = 1/72 inch ).
605 <div class="variablelist"><table border="0">
606 <col align="left" valign="top">
609 <td><p><span class="term"><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>;</span></p></td>
610 <td>Always <code class="literal">LGL_BARCODE_SHAPE_HEXAGON</code>
614 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
615 <td>x coordinate of top point of hexagon</td>
618 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
619 <td>y coordinate of top point of hexagon</td>
622 <td><p><span class="term"><a href="http://library.gnome.org/devel/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>;</span></p></td>
623 <td>Height of hexagon</td>
629 <div class="refsect2">
630 <a name="lgl-barcode-add-line"></a><h3>lgl_barcode_add_line ()</h3>
631 <pre class="programlisting"><span class="returnvalue">void</span> 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>,
632 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
633 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
634 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> length</code></em>,
635 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>);</pre>
637 Add a vertical line to barcode. Coordinates are relative to top left corner
638 of barcode. All units are in points ( 1 point = 1/72 inch ).
642 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
643 <h3 class="title">Note</h3>
645 This function is intended to be used internally by barcode implementations.
650 <div class="variablelist"><table border="0">
651 <col align="left" valign="top">
654 <td><p><span class="term"><em class="parameter"><code>bc</code></em> :</span></p></td>
655 <td>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</td>
658 <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
659 <td>x coordinate of top of line</td>
662 <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
663 <td>y coordinate of top of line</td>
666 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
667 <td>Length of line</td>
670 <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
671 <td>Width of line</td>
677 <div class="refsect2">
678 <a name="lgl-barcode-add-box"></a><h3>lgl_barcode_add_box ()</h3>
679 <pre class="programlisting"><span class="returnvalue">void</span> 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>,
680 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
681 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
682 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
683 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
685 Add a box to barcode. Coordinates are relative to top left corner
686 of barcode. All units are in points ( 1 point = 1/72 inch ).
690 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
691 <h3 class="title">Note</h3>
693 This function is intended to be used internally by barcode implementations.
698 <div class="variablelist"><table border="0">
699 <col align="left" valign="top">
702 <td><p><span class="term"><em class="parameter"><code>bc</code></em> :</span></p></td>
703 <td>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</td>
706 <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
707 <td>x coordinate of top left corner of box</td>
710 <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
711 <td>y coordinate of top left corner of box</td>
714 <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
715 <td>Width of box</td>
718 <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
719 <td>Height of box</td>
725 <div class="refsect2">
726 <a name="lgl-barcode-add-char"></a><h3>lgl_barcode_add_char ()</h3>
727 <pre class="programlisting"><span class="returnvalue">void</span> 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>,
728 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
729 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
730 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> fsize</code></em>,
731 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> c</code></em>);</pre>
733 Add an ASCII character to barcode. Coordinates are relative to top left corner
734 of barcode. All units are in points ( 1 point = 1/72 inch ).
738 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
739 <h3 class="title">Note</h3>
741 This function is intended to be used internally by barcode implementations.
746 <div class="variablelist"><table border="0">
747 <col align="left" valign="top">
750 <td><p><span class="term"><em class="parameter"><code>bc</code></em> :</span></p></td>
751 <td>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</td>
754 <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
755 <td>x coordinate of left baseline of character</td>
758 <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
759 <td>y coordinate of left baseline of character</td>
762 <td><p><span class="term"><em class="parameter"><code>fsize</code></em> :</span></p></td>
766 <td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
767 <td>Character to add</td>
773 <div class="refsect2">
774 <a name="lgl-barcode-add-string"></a><h3>lgl_barcode_add_string ()</h3>
775 <pre class="programlisting"><span class="returnvalue">void</span> 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>,
776 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
777 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
778 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> fsize</code></em>,
779 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *string</code></em>,
780 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> length</code></em>);</pre>
782 Add a character string to barcode. Coordinates are relative to top left corner
783 of barcode. All units are in points ( 1 point = 1/72 inch ).
787 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
788 <h3 class="title">Note</h3>
790 This function is intended to be used internally by barcode implementations.
795 <div class="variablelist"><table border="0">
796 <col align="left" valign="top">
799 <td><p><span class="term"><em class="parameter"><code>bc</code></em> :</span></p></td>
800 <td>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</td>
803 <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
804 <td>x coordinate of horizontal center of baseline of string</td>
807 <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
808 <td>y coordinate of horizontal center of baseline of string</td>
811 <td><p><span class="term"><em class="parameter"><code>fsize</code></em> :</span></p></td>
815 <td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
816 <td>String to add</td>
819 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
820 <td>Number of bytes in string</td>
826 <div class="refsect2">
827 <a name="lgl-barcode-add-ring"></a><h3>lgl_barcode_add_ring ()</h3>
828 <pre class="programlisting"><span class="returnvalue">void</span> 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>,
829 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
830 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
831 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> radius</code></em>,
832 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> line_width</code></em>);</pre>
834 Add a ring to barcode. Coordinates are relative to top left corner
835 of barcode. All units are in points ( 1 point = 1/72 inch ).
839 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
840 <h3 class="title">Note</h3>
842 This function is intended to be used internally by barcode implementations.
847 <div class="variablelist"><table border="0">
848 <col align="left" valign="top">
851 <td><p><span class="term"><em class="parameter"><code>bc</code></em> :</span></p></td>
852 <td>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</td>
855 <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
856 <td>x coordinate of center of circle</td>
859 <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
860 <td>y coordinate of center of circle</td>
863 <td><p><span class="term"><em class="parameter"><code>radius</code></em> :</span></p></td>
864 <td>Radius of ring (center of line)</td>
867 <td><p><span class="term"><em class="parameter"><code>line_width</code></em> :</span></p></td>
868 <td>Width of line</td>
874 <div class="refsect2">
875 <a name="lgl-barcode-add-hexagon"></a><h3>lgl_barcode_add_hexagon ()</h3>
876 <pre class="programlisting"><span class="returnvalue">void</span> 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>,
877 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
878 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
879 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
881 Add a regular hexagon (oriented with vertexes at top and bottom) to barcode.
882 Coordinates are relative to top left corner of barcode. All units are in
883 points ( 1 point = 1/72 inch ).
887 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
888 <h3 class="title">Note</h3>
890 This function is intended to be used internally by barcode implementations.
895 <div class="variablelist"><table border="0">
896 <col align="left" valign="top">
899 <td><p><span class="term"><em class="parameter"><code>bc</code></em> :</span></p></td>
900 <td>An <a class="link" href="libglbarcode-3.0-lgl-barcode.html#lglBarcode" title="lglBarcode"><span class="type">lglBarcode</span></a> structure</td>
903 <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
904 <td>x coordinate of top point of hexagon</td>
907 <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
908 <td>y coordinate of top point of hexagon</td>
911 <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
912 <td>Height of hexagon</td>
921 Generated by GTK-Doc V1.17</div>