Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/drawfile_8h_source.html
changeset 10 d4524d6a4472
parent 9 59758314f811
child 11 5072524fcc79
--- a/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/drawfile_8h_source.html	Fri Jun 11 15:24:34 2010 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,449 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<title>TB9.2 Example Applications: examples/PIPS/antiword/inc/drawfile.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<link href="doxygen.css" rel="stylesheet" type="text/css"/>
-</head>
-<body>
-<!-- Generated by Doxygen 1.6.2 -->
-<h1>examples/PIPS/antiword/inc/drawfile.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
-<a name="l00002"></a>00002 <span class="comment"> * drawfile.h</span>
-<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2005 A.J. van Os; Released under GNU GPL</span>
-<a name="l00004"></a>00004 <span class="comment"> *</span>
-<a name="l00005"></a>00005 <span class="comment"> * Description:</span>
-<a name="l00006"></a>00006 <span class="comment"> * Include file to deal with drawfiles</span>
-<a name="l00007"></a>00007 <span class="comment"> *</span>
-<a name="l00008"></a>00008 <span class="comment"> * Based on:</span>
-<a name="l00009"></a>00009 <span class="comment"> * C header file for DrawFile</span>
-<a name="l00010"></a>00010 <span class="comment"> * written by DefMod (May  4 2004) on Tue May  4 13:34:17 2004</span>
-<a name="l00011"></a>00011 <span class="comment"> * Jonathan Coxhead, jonathan@doves.demon.co.uk, 21 Aug 1995</span>
-<a name="l00012"></a>00012 <span class="comment"> * OSLib---efficient, type-safe, transparent, extensible,</span>
-<a name="l00013"></a>00013 <span class="comment"> * register-safe A P I coverage of RISC O S</span>
-<a name="l00014"></a>00014 <span class="comment"> * Copyright (C) 1994 Jonathan Coxhead</span>
-<a name="l00015"></a>00015 <span class="comment"> *</span>
-<a name="l00016"></a>00016 <span class="comment"> * All credit should go to him, but all the bugs are mine</span>
-<a name="l00017"></a>00017 <span class="comment"> */</span>
-<a name="l00018"></a>00018 
-<a name="l00019"></a>00019 <span class="preprocessor">#if !defined(__drawfile_h)</span>
-<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define __drawfile_h</span>
-<a name="l00021"></a>00021 <span class="preprocessor"></span>
-<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;DeskLib:Sprite.h&quot;</span>
-<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;DeskLib:Wimp.h&quot;</span>
-<a name="l00024"></a>00024 
-<a name="l00025"></a>00025 <span class="preprocessor">#if !defined(BOOL)</span>
-<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define BOOL int</span>
-<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define TRUE 1</span>
-<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define FALSE 0</span>
-<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* !BOOL */</span>
-<a name="l00030"></a>00030 
-<a name="l00031"></a>00031 <span class="comment">/*********************</span>
-<a name="l00032"></a>00032 <span class="comment"> * Conversion macros *</span>
-<a name="l00033"></a>00033 <span class="comment"> *********************/</span>
-<a name="l00034"></a>00034 <span class="preprocessor">#define Drawfile_DrawToScreen(i) ((i) / 256)</span>
-<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#define Drawfile_ScreenToDraw(i) ((i) * 256)</span>
-<a name="l00036"></a>00036 <span class="preprocessor"></span>
-<a name="l00037"></a>00037 <span class="comment">/**********************************</span>
-<a name="l00038"></a>00038 <span class="comment"> * SWI names and SWI reason codes *</span>
-<a name="l00039"></a>00039 <span class="comment"> **********************************/</span>
-<a name="l00040"></a>00040 <span class="preprocessor">#define DrawFile_Render                         0x45540</span>
-<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define DrawFile_BBox                           0x45541</span>
-<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#define DrawFile_DeclareFonts                   0x45542</span>
-<a name="l00043"></a>00043 <span class="preprocessor"></span>
-<a name="l00044"></a>00044 <span class="comment">/********************</span>
-<a name="l00045"></a>00045 <span class="comment"> * Type definitions *</span>
-<a name="l00046"></a>00046 <span class="comment"> ********************/</span>
-<a name="l00047"></a>00047 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>                            bits;
-<a name="l00048"></a>00048 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>                           byte;
-<a name="l00049"></a>00049 
-<a name="l00050"></a>00050 <span class="keyword">typedef</span> byte drawfile_fontref;
-<a name="l00051"></a>00051 
-<a name="l00052"></a>00052 <span class="keyword">typedef</span> byte drawfile_path_style_flags;
-<a name="l00053"></a>00053 
-<a name="l00054"></a>00054 <span class="keyword">typedef</span> bits drawfile_text_flags;
-<a name="l00055"></a>00055 
-<a name="l00056"></a>00056 <span class="keyword">typedef</span> bits drawfile_render_flags;
-<a name="l00057"></a>00057 
-<a name="l00058"></a>00058 <span class="keyword">typedef</span> bits drawfile_declare_fonts_flags;
-<a name="l00059"></a>00059 
-<a name="l00060"></a>00060 <span class="keyword">typedef</span> bits drawfile_paper_options;
-<a name="l00061"></a>00061 
-<a name="l00062"></a>00062 <span class="keyword">typedef</span> bits drawfile_entry_mode;
-<a name="l00063"></a>00063 
-<a name="l00064"></a>00064 <span class="keyword">typedef</span> <span class="keyword">enum</span> {
-<a name="l00065"></a>00065   drawfile_TYPE_FONT_TABLE = 0,
-<a name="l00066"></a>00066   drawfile_TYPE_TEXT = 1,
-<a name="l00067"></a>00067   drawfile_TYPE_PATH = 2,
-<a name="l00068"></a>00068   drawfile_TYPE_SPRITE = 5,
-<a name="l00069"></a>00069   drawfile_TYPE_GROUP = 6,
-<a name="l00070"></a>00070   drawfile_TYPE_TAGGED = 7,
-<a name="l00071"></a>00071   drawfile_TYPE_TEXT_AREA = 9,
-<a name="l00072"></a>00072   drawfile_TYPE_TEXT_COLUMN = 10,
-<a name="l00073"></a>00073   drawfile_TYPE_OPTIONS = 11,
-<a name="l00074"></a>00074   drawfile_TYPE_TRFM_TEXT = 12,
-<a name="l00075"></a>00075   drawfile_TYPE_TRFM_SPRITE = 13,
-<a name="l00076"></a>00076   drawfile_TYPE_JPEG = 16
-<a name="l00077"></a>00077 } drawfile_type;
-<a name="l00078"></a>00078 
-<a name="l00079"></a>00079 <span class="keyword">typedef</span> <span class="keyword">enum</span> {
-<a name="l00080"></a>00080   drawfile_PATH_END_PATH = 0,
-<a name="l00081"></a>00081   drawfile_PATH_CONTINUATION = 1,
-<a name="l00082"></a>00082   drawfile_PATH_MOVE_TO = 2,
-<a name="l00083"></a>00083   drawfile_PATH_SPECIAL_MOVE_TO = 3,
-<a name="l00084"></a>00084   drawfile_PATH_CLOSE_GAP = 4,
-<a name="l00085"></a>00085   drawfile_PATH_CLOSE_LINE = 5,
-<a name="l00086"></a>00086   drawfile_PATH_BEZIER_TO = 6,
-<a name="l00087"></a>00087   drawfile_PATH_GAP_TO = 7,
-<a name="l00088"></a>00088   drawfile_PATH_LINE_TO = 8
-<a name="l00089"></a>00089 } drawfile_path_type;
-<a name="l00090"></a>00090 
-<a name="l00091"></a><a class="code" href="structdraw__dash__pattern.html">00091</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00092"></a>00092   <span class="keywordtype">int</span> start;
-<a name="l00093"></a>00093   <span class="keywordtype">int</span> element_count;
-<a name="l00094"></a>00094   <span class="keywordtype">int</span> elements [6];
-<a name="l00095"></a>00095 } <a class="code" href="structdraw__dash__pattern.html">draw_dash_pattern</a>;
-<a name="l00096"></a>00096 
-<a name="l00097"></a><a class="code" href="structos__trfm.html">00097</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00098"></a>00098   <span class="keywordtype">int</span> entries [3] [2];
-<a name="l00099"></a>00099 } <a class="code" href="structos__trfm.html">os_trfm</a>;
-<a name="l00100"></a>00100 
-<a name="l00101"></a><a class="code" href="structdrawfile__info.html">00101</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00102"></a>00102   <span class="keywordtype">void</span> *data;
-<a name="l00103"></a>00103   <span class="keywordtype">size_t</span> length;
-<a name="l00104"></a>00104 } <a class="code" href="structdrawfile__info.html">drawfile_info</a>;
-<a name="l00105"></a>00105 
-<a name="l00106"></a><a class="code" href="structdrawfile__font__def.html">00106</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00107"></a>00107   drawfile_fontref font_ref;
-<a name="l00108"></a>00108   <span class="keywordtype">char</span> font_name [1];
-<a name="l00109"></a>00109 } <a class="code" href="structdrawfile__font__def.html">drawfile_font_def</a>;
-<a name="l00110"></a>00110 
-<a name="l00111"></a><a class="code" href="structdrawfile__text__style.html">00111</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00112"></a>00112   drawfile_fontref font_ref;
-<a name="l00113"></a>00113   byte reserved [3];
-<a name="l00114"></a>00114 } <a class="code" href="structdrawfile__text__style.html">drawfile_text_style</a>;
-<a name="l00115"></a>00115 
-<a name="l00116"></a><a class="code" href="structdrawfile__path__style.html">00116</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00117"></a>00117   drawfile_path_style_flags flags;
-<a name="l00118"></a>00118   byte reserved;
-<a name="l00119"></a>00119   byte cap_width;
-<a name="l00120"></a>00120   byte cap_length;
-<a name="l00121"></a>00121 } <a class="code" href="structdrawfile__path__style.html">drawfile_path_style</a>;
-<a name="l00122"></a>00122 
-<a name="l00123"></a><a class="code" href="structdrawfile__font__table.html">00123</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00124"></a>00124   <a class="code" href="structdrawfile__font__def.html">drawfile_font_def</a> font_def[1];
-<a name="l00125"></a>00125 } <a class="code" href="structdrawfile__font__table.html">drawfile_font_table</a>;
-<a name="l00126"></a>00126 
-<a name="l00127"></a><a class="code" href="structdrawfile__text.html">00127</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00128"></a>00128   wimp_box bbox;
-<a name="l00129"></a>00129   palette_entry fill;
-<a name="l00130"></a>00130   palette_entry bg_hint;
-<a name="l00131"></a>00131   <a class="code" href="structdrawfile__text__style.html">drawfile_text_style</a> style;
-<a name="l00132"></a>00132   <span class="keywordtype">int</span> xsize;
-<a name="l00133"></a>00133   <span class="keywordtype">int</span> ysize;
-<a name="l00134"></a>00134   wimp_coord base;
-<a name="l00135"></a>00135   <span class="keywordtype">char</span> text [1];
-<a name="l00136"></a>00136 } <a class="code" href="structdrawfile__text.html">drawfile_text</a>;
-<a name="l00137"></a>00137 
-<a name="l00138"></a><a class="code" href="structdrawfile__path.html">00138</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00139"></a>00139   wimp_box bbox;
-<a name="l00140"></a>00140   palette_entry fill;
-<a name="l00141"></a>00141   palette_entry outline;
-<a name="l00142"></a>00142   <span class="keywordtype">int</span> width;
-<a name="l00143"></a>00143   <a class="code" href="structdrawfile__path__style.html">drawfile_path_style</a> style;
-<a name="l00144"></a>00144   <span class="keywordtype">int</span> path [1];
-<a name="l00145"></a>00145 } <a class="code" href="structdrawfile__path.html">drawfile_path</a>;
-<a name="l00146"></a>00146 
-<a name="l00147"></a><a class="code" href="structdrawfile__path__with__pattern.html">00147</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00148"></a>00148   wimp_box bbox;
-<a name="l00149"></a>00149   palette_entry fill;
-<a name="l00150"></a>00150   palette_entry outline;
-<a name="l00151"></a>00151   <span class="keywordtype">int</span> width;
-<a name="l00152"></a>00152   <a class="code" href="structdrawfile__path__style.html">drawfile_path_style</a> style;
-<a name="l00153"></a>00153   <a class="code" href="structdraw__dash__pattern.html">draw_dash_pattern</a> pattern;
-<a name="l00154"></a>00154   <span class="keywordtype">int</span> path [1];
-<a name="l00155"></a>00155 } <a class="code" href="structdrawfile__path__with__pattern.html">drawfile_path_with_pattern</a>;
-<a name="l00156"></a>00156 
-<a name="l00157"></a><a class="code" href="structdrawfile__sprite.html">00157</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00158"></a>00158   wimp_box bbox;
-<a name="l00159"></a>00159   sprite_header header;
-<a name="l00160"></a>00160   byte data [1];
-<a name="l00161"></a>00161 } <a class="code" href="structdrawfile__sprite.html">drawfile_sprite</a>;
-<a name="l00162"></a>00162 
-<a name="l00163"></a><a class="code" href="structdrawfile__group.html">00163</a> <span class="keyword">typedef</span> <span class="keyword">struct  </span>{
-<a name="l00164"></a>00164   wimp_box bbox;
-<a name="l00165"></a>00165   <span class="keywordtype">char</span> name [12];
-<a name="l00166"></a>00166   <span class="keywordtype">int</span> objects [1];
-<a name="l00167"></a>00167 } <a class="code" href="structdrawfile__group.html">drawfile_group</a>;
-<a name="l00168"></a>00168 
-<a name="l00169"></a><a class="code" href="structdrawfile__tagged.html">00169</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00170"></a>00170   wimp_box bbox;
-<a name="l00171"></a>00171   drawfile_type tag;
-<a name="l00172"></a>00172   <span class="keywordtype">int</span> <span class="keywordtype">object</span> [1];
-<a name="l00173"></a>00173 } <a class="code" href="structdrawfile__tagged.html">drawfile_tagged</a>;
-<a name="l00174"></a>00174 
-<a name="l00175"></a><a class="code" href="structdrawfile__text__column.html">00175</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00176"></a>00176   wimp_box box;
-<a name="l00177"></a>00177 } <a class="code" href="structdrawfile__text__column.html">drawfile_text_column</a>;
-<a name="l00178"></a>00178 
-<a name="l00179"></a><a class="code" href="structdrawfile__text__column__list.html">00179</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00180"></a>00180   <span class="keyword">struct </span>{
-<a name="l00181"></a>00181     drawfile_type type;
-<a name="l00182"></a>00182     <span class="keywordtype">int</span> size;
-<a name="l00183"></a>00183     <a class="code" href="structdrawfile__text__column.html">drawfile_text_column</a> data;
-<a name="l00184"></a>00184   } columns [1];
-<a name="l00185"></a>00185 } <a class="code" href="structdrawfile__text__column__list.html">drawfile_text_column_list</a>;
-<a name="l00186"></a>00186 
-<a name="l00187"></a><a class="code" href="structdrawfile__area__text.html">00187</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00188"></a>00188   drawfile_type type;
-<a name="l00189"></a>00189   <span class="keywordtype">int</span> reserved [2];
-<a name="l00190"></a>00190   palette_entry fill;
-<a name="l00191"></a>00191   palette_entry bg_hint;
-<a name="l00192"></a>00192   <span class="keywordtype">char</span> text [1];
-<a name="l00193"></a>00193 } <a class="code" href="structdrawfile__area__text.html">drawfile_area_text</a>;
-<a name="l00194"></a>00194 
-<a name="l00195"></a><a class="code" href="structdrawfile__text__area.html">00195</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00196"></a>00196   wimp_box bbox;
-<a name="l00197"></a>00197   <a class="code" href="structdrawfile__text__column__list.html">drawfile_text_column_list</a> header;
-<a name="l00198"></a>00198   <a class="code" href="structdrawfile__area__text.html">drawfile_area_text</a> area_text;
-<a name="l00199"></a>00199 } <a class="code" href="structdrawfile__text__area.html">drawfile_text_area</a>;
-<a name="l00200"></a>00200 
-<a name="l00201"></a><a class="code" href="structdrawfile__options.html">00201</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00202"></a>00202   wimp_box bbox;
-<a name="l00203"></a>00203   <span class="keywordtype">int</span> paper_size;
-<a name="l00204"></a>00204   drawfile_paper_options paper_options;
-<a name="l00205"></a>00205   <span class="keywordtype">double</span> grid_spacing;
-<a name="l00206"></a>00206   <span class="keywordtype">int</span> grid_division;
-<a name="l00207"></a>00207   BOOL isometric;
-<a name="l00208"></a>00208   BOOL auto_adjust;
-<a name="l00209"></a>00209   BOOL show;
-<a name="l00210"></a>00210   BOOL lock;
-<a name="l00211"></a>00211   BOOL cm;
-<a name="l00212"></a>00212   <span class="keywordtype">int</span> zoom_mul;
-<a name="l00213"></a>00213   <span class="keywordtype">int</span> zoom_div;
-<a name="l00214"></a>00214   BOOL zoom_lock;
-<a name="l00215"></a>00215   BOOL toolbox;
-<a name="l00216"></a>00216   drawfile_entry_mode entry_mode;
-<a name="l00217"></a>00217   <span class="keywordtype">int</span> undo_size;
-<a name="l00218"></a>00218 } <a class="code" href="structdrawfile__options.html">drawfile_options</a>;
-<a name="l00219"></a>00219 
-<a name="l00220"></a><a class="code" href="structdrawfile__trfm__text.html">00220</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00221"></a>00221   wimp_box bbox;
-<a name="l00222"></a>00222   <a class="code" href="structos__trfm.html">os_trfm</a> trfm;
-<a name="l00223"></a>00223   drawfile_text_flags flags;
-<a name="l00224"></a>00224   palette_entry fill;
-<a name="l00225"></a>00225   palette_entry bg_hint;
-<a name="l00226"></a>00226   <a class="code" href="structdrawfile__text__style.html">drawfile_text_style</a> style;
-<a name="l00227"></a>00227   <span class="keywordtype">int</span> xsize;
-<a name="l00228"></a>00228   <span class="keywordtype">int</span> ysize;
-<a name="l00229"></a>00229   wimp_coord base;
-<a name="l00230"></a>00230   <span class="keywordtype">char</span> text [1];
-<a name="l00231"></a>00231 } <a class="code" href="structdrawfile__trfm__text.html">drawfile_trfm_text</a>;
-<a name="l00232"></a>00232 
-<a name="l00233"></a><a class="code" href="structdrawfile__trfm__sprite.html">00233</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00234"></a>00234   wimp_box bbox;
-<a name="l00235"></a>00235   <a class="code" href="structos__trfm.html">os_trfm</a> trfm;
-<a name="l00236"></a>00236   sprite_header header;
-<a name="l00237"></a>00237   byte data [1];
-<a name="l00238"></a>00238 } <a class="code" href="structdrawfile__trfm__sprite.html">drawfile_trfm_sprite</a>;
-<a name="l00239"></a>00239 
-<a name="l00240"></a><a class="code" href="structdrawfile__jpeg.html">00240</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00241"></a>00241   wimp_box bbox;
-<a name="l00242"></a>00242   <span class="keywordtype">int</span> width;
-<a name="l00243"></a>00243   <span class="keywordtype">int</span> height;
-<a name="l00244"></a>00244   <span class="keywordtype">int</span> xdpi;
-<a name="l00245"></a>00245   <span class="keywordtype">int</span> ydpi;
-<a name="l00246"></a>00246   <a class="code" href="structos__trfm.html">os_trfm</a> trfm;
-<a name="l00247"></a>00247   <span class="keywordtype">int</span> len;
-<a name="l00248"></a>00248   byte data [1];
-<a name="l00249"></a>00249 } <a class="code" href="structdrawfile__jpeg.html">drawfile_jpeg</a>;
-<a name="l00250"></a>00250 
-<a name="l00251"></a>00251 <span class="comment">/* ------------------------------------------------------------------------</span>
-<a name="l00252"></a>00252 <span class="comment"> * Type:          drawfile_object</span>
-<a name="l00253"></a>00253 <span class="comment"> *</span>
-<a name="l00254"></a>00254 <span class="comment"> * Description:   This type is used to declare pointers rather than objects</span>
-<a name="l00255"></a>00255 <span class="comment"> */</span>
-<a name="l00256"></a>00256 
-<a name="l00257"></a><a class="code" href="structdrawfile__object.html">00257</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00258"></a>00258   drawfile_type type;
-<a name="l00259"></a>00259   <span class="keywordtype">int</span> size;
-<a name="l00260"></a>00260   <span class="keyword">union </span>{
-<a name="l00261"></a>00261     <a class="code" href="structdrawfile__font__table.html">drawfile_font_table</a> font_table;
-<a name="l00262"></a>00262     <a class="code" href="structdrawfile__text.html">drawfile_text</a> text;
-<a name="l00263"></a>00263     <a class="code" href="structdrawfile__path.html">drawfile_path</a> path;
-<a name="l00264"></a>00264     <a class="code" href="structdrawfile__path__with__pattern.html">drawfile_path_with_pattern</a> path_with_pattern;
-<a name="l00265"></a>00265     <a class="code" href="structdrawfile__sprite.html">drawfile_sprite</a> sprite;
-<a name="l00266"></a>00266     <a class="code" href="structdrawfile__group.html">drawfile_group</a> group;
-<a name="l00267"></a>00267     <a class="code" href="structdrawfile__tagged.html">drawfile_tagged</a> tagged;
-<a name="l00268"></a>00268     <a class="code" href="structdrawfile__text__column.html">drawfile_text_column</a> text_column;
-<a name="l00269"></a>00269     <a class="code" href="structdrawfile__text__area.html">drawfile_text_area</a> text_area;
-<a name="l00270"></a>00270     <a class="code" href="structdrawfile__options.html">drawfile_options</a> options;
-<a name="l00271"></a>00271     <a class="code" href="structdrawfile__trfm__text.html">drawfile_trfm_text</a> trfm_text;
-<a name="l00272"></a>00272     <a class="code" href="structdrawfile__trfm__sprite.html">drawfile_trfm_sprite</a> trfm_sprite;
-<a name="l00273"></a>00273     <a class="code" href="structdrawfile__jpeg.html">drawfile_jpeg</a> jpeg;
-<a name="l00274"></a>00274   } data;
-<a name="l00275"></a>00275 } <a class="code" href="structdrawfile__object.html">drawfile_object</a>;
-<a name="l00276"></a>00276 
-<a name="l00277"></a><a class="code" href="structdrawfile__diagram.html">00277</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00278"></a>00278   <span class="keywordtype">char</span> tag [4];
-<a name="l00279"></a>00279   <span class="keywordtype">int</span> major_version;
-<a name="l00280"></a>00280   <span class="keywordtype">int</span> minor_version;
-<a name="l00281"></a>00281   <span class="keywordtype">char</span> source [12];
-<a name="l00282"></a>00282   wimp_box bbox;
-<a name="l00283"></a>00283   <a class="code" href="structdrawfile__object.html">drawfile_object</a> objects [1];
-<a name="l00284"></a>00284 } <a class="code" href="structdrawfile__diagram.html">drawfile_diagram</a>;
-<a name="l00285"></a>00285 
-<a name="l00286"></a>00286 <span class="keyword">typedef</span> bits drawfile_bbox_flags;
-<a name="l00287"></a>00287 
-<a name="l00288"></a><a class="code" href="structdrawfile__declare__fonts__state.html">00288</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
-<a name="l00289"></a>00289   <a class="code" href="structdrawfile__object.html">drawfile_object</a> *object;
-<a name="l00290"></a>00290   <a class="code" href="structdrawfile__diagram.html">drawfile_diagram</a> *diagram;
-<a name="l00291"></a>00291   <a class="code" href="structdrawfile__object.html">drawfile_object</a> *font_table;
-<a name="l00292"></a>00292   drawfile_declare_fonts_flags flags;
-<a name="l00293"></a>00293   os_error *error;
-<a name="l00294"></a>00294 } <a class="code" href="structdrawfile__declare__fonts__state.html">drawfile_declare_fonts_state</a>;
-<a name="l00295"></a>00295 
-<a name="l00296"></a>00296 <span class="comment">/************************</span>
-<a name="l00297"></a>00297 <span class="comment"> * Constant definitions *</span>
-<a name="l00298"></a>00298 <span class="comment"> ************************/</span>
-<a name="l00299"></a>00299 <span class="preprocessor">#define error_DRAW_FILE_NOT_DRAW                0x20C00u</span>
-<a name="l00300"></a>00300 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_VERSION                 0x20C01u</span>
-<a name="l00301"></a>00301 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_FONT_TAB                0x20C02u</span>
-<a name="l00302"></a>00302 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_BAD_FONT_NO             0x20C03u</span>
-<a name="l00303"></a>00303 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_BAD_MODE                0x20C04u</span>
-<a name="l00304"></a>00304 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_BAD_FILE                0x20C05u</span>
-<a name="l00305"></a>00305 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_BAD_GROUP               0x20C06u</span>
-<a name="l00306"></a>00306 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_BAD_TAG                 0x20C07u</span>
-<a name="l00307"></a>00307 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_SYNTAX                  0x20C08u</span>
-<a name="l00308"></a>00308 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_FONT_NO                 0x20C09u</span>
-<a name="l00309"></a>00309 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_AREA_VER                0x20C0Au</span>
-<a name="l00310"></a>00310 <span class="preprocessor"></span><span class="preprocessor">#define error_DRAW_FILE_NO_AREA_VER             0x20C0Bu</span>
-<a name="l00311"></a>00311 <span class="preprocessor"></span>
-<a name="l00312"></a>00312 <span class="preprocessor">#define drawfile_PATH_MITRED                    ((drawfile_path_style_flags) 0x0u)</span>
-<a name="l00313"></a>00313 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_ROUND                     ((drawfile_path_style_flags) 0x1u)</span>
-<a name="l00314"></a>00314 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_BEVELLED                  ((drawfile_path_style_flags) 0x2u)</span>
-<a name="l00315"></a>00315 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_BUTT                      ((drawfile_path_style_flags) 0x0u)</span>
-<a name="l00316"></a>00316 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_SQUARE                    ((drawfile_path_style_flags) 0x2u)</span>
-<a name="l00317"></a>00317 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_TRIANGLE                  ((drawfile_path_style_flags) 0x3u)</span>
-<a name="l00318"></a>00318 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_JOIN_SHIFT                0</span>
-<a name="l00319"></a>00319 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_JOIN                      ((drawfile_path_style_flags) 0x3u)</span>
-<a name="l00320"></a>00320 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_END_SHIFT                 2</span>
-<a name="l00321"></a>00321 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_END                       ((drawfile_path_style_flags) 0xCu)</span>
-<a name="l00322"></a>00322 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_START_SHIFT               4</span>
-<a name="l00323"></a>00323 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_START                     ((drawfile_path_style_flags) 0x30u)</span>
-<a name="l00324"></a>00324 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_WINDING_EVEN_ODD          ((drawfile_path_style_flags) 0x40u)</span>
-<a name="l00325"></a>00325 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_DASHED                    ((drawfile_path_style_flags) 0x80u)</span>
-<a name="l00326"></a>00326 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_CAP_WIDTH_SHIFT           16</span>
-<a name="l00327"></a>00327 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_CAP_WIDTH                 ((drawfile_path_style_flags) 0xFF0000u)</span>
-<a name="l00328"></a>00328 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_CAP_LENGTH_SHIFT          24</span>
-<a name="l00329"></a>00329 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PATH_CAP_LENGTH                ((drawfile_path_style_flags) 0xFF000000u)</span>
-<a name="l00330"></a>00330 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_TEXT_KERN                      ((drawfile_text_flags) 0x1u)</span>
-<a name="l00331"></a>00331 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_TEXT_RIGHT_TO_LEFT             ((drawfile_text_flags) 0x2u)</span>
-<a name="l00332"></a>00332 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_TEXT_UNDERLINE                 ((drawfile_text_flags) 0x4u)</span>
-<a name="l00333"></a>00333 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_RENDER_BBOXES                  ((drawfile_render_flags) 0x1u)</span>
-<a name="l00334"></a>00334 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_RENDER_SUPPRESS                ((drawfile_render_flags) 0x2u)</span>
-<a name="l00335"></a>00335 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_RENDER_GIVEN_FLATNESS          ((drawfile_render_flags) 0x4u)</span>
-<a name="l00336"></a>00336 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_RENDER_GIVEN_COLOUR_MAPPING    ((drawfile_render_flags) 0x8u)</span>
-<a name="l00337"></a>00337 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_NO_DOWNLOAD                    ((drawfile_declare_fonts_flags) 0x1u)</span>
-<a name="l00338"></a>00338 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PAPER_SHOW                     ((drawfile_paper_options) 0x1u)</span>
-<a name="l00339"></a>00339 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PAPER_LANDSCAPE                ((drawfile_paper_options) 0x10u)</span>
-<a name="l00340"></a>00340 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_PAPER_DEFAULT                  ((drawfile_paper_options) 0x100u)</span>
-<a name="l00341"></a>00341 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_ENTRY_MODE_LINE                ((drawfile_entry_mode) 0x1u)</span>
-<a name="l00342"></a>00342 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_ENTRY_MODE_CLOSED_LINE         ((drawfile_entry_mode) 0x2u)</span>
-<a name="l00343"></a>00343 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_ENTRY_MODE_CURVE               ((drawfile_entry_mode) 0x4u)</span>
-<a name="l00344"></a>00344 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_ENTRY_MODE_CLOSED_CURVE        ((drawfile_entry_mode) 0x8u)</span>
-<a name="l00345"></a>00345 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_ENTRY_MODE_RECTANGLE           ((drawfile_entry_mode) 0x10u)</span>
-<a name="l00346"></a>00346 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_ENTRY_MODE_ELLIPSE             ((drawfile_entry_mode) 0x20u)</span>
-<a name="l00347"></a>00347 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_ENTRY_MODE_TEXT_LINE           ((drawfile_entry_mode) 0x40u)</span>
-<a name="l00348"></a>00348 <span class="preprocessor"></span><span class="preprocessor">#define drawfile_ENTRY_MODE_SELECT              ((drawfile_entry_mode) 0x80u)</span>
-<a name="l00349"></a>00349 <span class="preprocessor"></span>
-<a name="l00350"></a>00350 <span class="comment">/*************************</span>
-<a name="l00351"></a>00351 <span class="comment"> * Function declarations *</span>
-<a name="l00352"></a>00352 <span class="comment"> *************************/</span>
-<a name="l00353"></a>00353 
-<a name="l00354"></a>00354 <span class="preprocessor">#if defined(__cplusplus)</span>
-<a name="l00355"></a>00355 <span class="preprocessor"></span>   <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
-<a name="l00356"></a>00356 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>
-<a name="l00357"></a>00357 
-<a name="l00358"></a>00358 <span class="comment">/* ------------------------------------------------------------------------</span>
-<a name="l00359"></a>00359 <span class="comment"> * Function:      drawfile_render()</span>
-<a name="l00360"></a>00360 <span class="comment"> *</span>
-<a name="l00361"></a>00361 <span class="comment"> * Description:   Calls SWI 0x45540</span>
-<a name="l00362"></a>00362 <span class="comment"> *</span>
-<a name="l00363"></a>00363 <span class="comment"> * Input:         flags - value of R0 on entry</span>
-<a name="l00364"></a>00364 <span class="comment"> *                diagram - value of R1 on entry</span>
-<a name="l00365"></a>00365 <span class="comment"> *                size - value of R2 on entry</span>
-<a name="l00366"></a>00366 <span class="comment"> *                trfm - value of R3 on entry</span>
-<a name="l00367"></a>00367 <span class="comment"> *                clip - value of R4 on entry</span>
-<a name="l00368"></a>00368 <span class="comment"> *                flatness - value of R5 on entry</span>
-<a name="l00369"></a>00369 <span class="comment"> */</span>
-<a name="l00370"></a>00370 
-<a name="l00371"></a>00371 <span class="keyword">extern</span> os_error *Drawfile_Render (drawfile_render_flags flags,
-<a name="l00372"></a>00372       <a class="code" href="structdrawfile__diagram.html">drawfile_diagram</a> <span class="keyword">const</span> *diagram,
-<a name="l00373"></a>00373       <span class="keywordtype">int</span> size,
-<a name="l00374"></a>00374       <a class="code" href="structos__trfm.html">os_trfm</a> <span class="keyword">const</span> *trfm,
-<a name="l00375"></a>00375       wimp_box <span class="keyword">const</span> *clip,
-<a name="l00376"></a>00376       <span class="keywordtype">int</span> flatness);
-<a name="l00377"></a>00377 
-<a name="l00378"></a>00378 <span class="comment">/* ------------------------------------------------------------------------</span>
-<a name="l00379"></a>00379 <span class="comment"> * Function:      drawfile_bbox()</span>
-<a name="l00380"></a>00380 <span class="comment"> *</span>
-<a name="l00381"></a>00381 <span class="comment"> * Description:   Calls SWI 0x45541</span>
-<a name="l00382"></a>00382 <span class="comment"> *</span>
-<a name="l00383"></a>00383 <span class="comment"> * Input:         flags - value of R0 on entry</span>
-<a name="l00384"></a>00384 <span class="comment"> *                diagram - value of R1 on entry</span>
-<a name="l00385"></a>00385 <span class="comment"> *                size - value of R2 on entry</span>
-<a name="l00386"></a>00386 <span class="comment"> *                trfm - value of R3 on entry</span>
-<a name="l00387"></a>00387 <span class="comment"> *                bbox - value of R4 on entry</span>
-<a name="l00388"></a>00388 <span class="comment"> */</span>
-<a name="l00389"></a>00389 
-<a name="l00390"></a>00390 <span class="keyword">extern</span> os_error *Drawfile_Bbox (drawfile_bbox_flags flags,
-<a name="l00391"></a>00391       <a class="code" href="structdrawfile__diagram.html">drawfile_diagram</a> <span class="keyword">const</span> *diagram,
-<a name="l00392"></a>00392       <span class="keywordtype">int</span> size,
-<a name="l00393"></a>00393       <a class="code" href="structos__trfm.html">os_trfm</a> <span class="keyword">const</span> *trfm,
-<a name="l00394"></a>00394       wimp_box *bbox);
-<a name="l00395"></a>00395 
-<a name="l00396"></a>00396 <span class="comment">/* ------------------------------------------------------------------------</span>
-<a name="l00397"></a>00397 <span class="comment"> * Function:      Drawfile_DeclareFonts()</span>
-<a name="l00398"></a>00398 <span class="comment"> *</span>
-<a name="l00399"></a>00399 <span class="comment"> * Description:   Calls SWI 0x45542</span>
-<a name="l00400"></a>00400 <span class="comment"> *</span>
-<a name="l00401"></a>00401 <span class="comment"> * Input:         flags - value of R0 on entry</span>
-<a name="l00402"></a>00402 <span class="comment"> *                diagram - value of R1 on entry</span>
-<a name="l00403"></a>00403 <span class="comment"> *                size - value of R2 on entry</span>
-<a name="l00404"></a>00404 <span class="comment"> */</span>
-<a name="l00405"></a>00405 
-<a name="l00406"></a>00406 <span class="keyword">extern</span> os_error *Drawfile_DeclareFonts (drawfile_declare_fonts_flags flags,
-<a name="l00407"></a>00407       <a class="code" href="structdrawfile__diagram.html">drawfile_diagram</a> <span class="keyword">const</span> *diagram,
-<a name="l00408"></a>00408       <span class="keywordtype">int</span> size);
-<a name="l00409"></a>00409 
-<a name="l00410"></a>00410 <span class="comment">/* ------------------------------------------------------------------------</span>
-<a name="l00411"></a>00411 <span class="comment"> * Function:      Drawfile_CreateDiagram()</span>
-<a name="l00412"></a>00412 <span class="comment"> *</span>
-<a name="l00413"></a>00413 <span class="comment"> */</span>
-<a name="l00414"></a>00414 
-<a name="l00415"></a>00415 <span class="keyword">extern</span> os_error * Drawfile_CreateDiagram(<a class="code" href="structdrawfile__info.html">drawfile_info</a> *info, <span class="keywordtype">size_t</span> memory,
-<a name="l00416"></a>00416         <span class="keyword">const</span> <span class="keywordtype">char</span> *creator, wimp_box box);
-<a name="l00417"></a>00417 
-<a name="l00418"></a>00418 <span class="keyword">extern</span> os_error *Drawfile_AppendObject(<a class="code" href="structdrawfile__info.html">drawfile_info</a> *info, <span class="keywordtype">size_t</span> memory,
-<a name="l00419"></a>00419         <span class="keyword">const</span> <a class="code" href="structdrawfile__object.html">drawfile_object</a> *<span class="keywordtype">object</span>, BOOL rebind);
-<a name="l00420"></a>00420 
-<a name="l00421"></a>00421 <span class="keyword">extern</span> os_error *Drawfile_RenderDiagram(<a class="code" href="structdrawfile__info.html">drawfile_info</a> *info,
-<a name="l00422"></a>00422         window_redrawblock *redraw, <span class="keywordtype">double</span> scale);
-<a name="l00423"></a>00423 
-<a name="l00424"></a>00424 <span class="keyword">extern</span> os_error *Drawfile_VerifyDiagram(<a class="code" href="structdrawfile__info.html">drawfile_info</a> *info);
-<a name="l00425"></a>00425 
-<a name="l00426"></a>00426 <span class="keyword">extern</span> <span class="keywordtype">void</span>     Drawfile_QueryBox(<a class="code" href="structdrawfile__info.html">drawfile_info</a> *info,
-<a name="l00427"></a>00427         wimp_box *rect, BOOL screenUnits);
-<a name="l00428"></a>00428 
-<a name="l00429"></a>00429 <span class="preprocessor">#if defined(__cplusplus)</span>
-<a name="l00430"></a>00430 <span class="preprocessor"></span>   }
-<a name="l00431"></a>00431 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>
-<a name="l00432"></a>00432 
-<a name="l00433"></a>00433 <span class="preprocessor">#endif </span><span class="comment">/* __drawfile.h */</span>
-</pre></div></div>
-<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
-<a href="http://www.doxygen.org/index.html">
-<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
-</body>
-</html>