<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>MagickCore: type.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.4 --> <div class="nav"> <a class="el" href="dir_b44b349db36f8365f5234e57d3038770.html">magick</a></div> <h1>type.h</h1><a href="type_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization</span> <a name="l00003"></a>00003 <span class="comment"> dedicated to making software imaging solutions freely available.</span> <a name="l00004"></a>00004 <span class="comment"> </span> <a name="l00005"></a>00005 <span class="comment"> You may not use this file except in compliance with the License.</span> <a name="l00006"></a>00006 <span class="comment"> obtain a copy of the License at</span> <a name="l00007"></a>00007 <span class="comment"> </span> <a name="l00008"></a>00008 <span class="comment"> http://www.imagemagick.org/script/license.php</span> <a name="l00009"></a>00009 <span class="comment"> </span> <a name="l00010"></a>00010 <span class="comment"> Unless required by applicable law or agreed to in writing, software</span> <a name="l00011"></a>00011 <span class="comment"> distributed under the License is distributed on an "AS IS" BASIS,</span> <a name="l00012"></a>00012 <span class="comment"> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span> <a name="l00013"></a>00013 <span class="comment"> See the License for the specific language governing permissions and</span> <a name="l00014"></a>00014 <span class="comment"> limitations under the License.</span> <a name="l00015"></a>00015 <span class="comment"></span> <a name="l00016"></a>00016 <span class="comment"> MagickCore image type methods.</span> <a name="l00017"></a>00017 <span class="comment">*/</span> <a name="l00018"></a>00018 <span class="preprocessor">#ifndef _MAGICKCORE_TYPE_H</span> <a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _MAGICKCORE_TYPE_H</span> <a name="l00020"></a>00020 <span class="preprocessor"></span> <a name="l00021"></a>00021 <span class="preprocessor">#if defined(__cplusplus) || defined(c_plusplus)</span> <a name="l00022"></a>00022 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00023"></a>00023 <span class="preprocessor">#endif</span> <a name="l00024"></a>00024 <span class="preprocessor"></span> <a name="l00025"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb">00025</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a name="l00026"></a>00026 { <a name="l00027"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbd7200c89afef39373da58f36b2431c7c">00027</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbd7200c89afef39373da58f36b2431c7c">UndefinedStretch</a>, <a name="l00028"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb00218204ce616610e95ee511bc77543e">00028</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb00218204ce616610e95ee511bc77543e">NormalStretch</a>, <a name="l00029"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbe088cd8507f68258b6321eafc816a09c">00029</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbe088cd8507f68258b6321eafc816a09c">UltraCondensedStretch</a>, <a name="l00030"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb2a3bb5283d8e553d3c017665f4aa65f7">00030</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb2a3bb5283d8e553d3c017665f4aa65f7">ExtraCondensedStretch</a>, <a name="l00031"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb5d44e6fbd5e2e55f1628e5767908dcb1">00031</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb5d44e6fbd5e2e55f1628e5767908dcb1">CondensedStretch</a>, <a name="l00032"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbb6a0917cd2e4ef547eea5e1b24bd8926">00032</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbb6a0917cd2e4ef547eea5e1b24bd8926">SemiCondensedStretch</a>, <a name="l00033"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbbfb1d9fb246ada63f044127e10fe53f4">00033</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbbfb1d9fb246ada63f044127e10fe53f4">SemiExpandedStretch</a>, <a name="l00034"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbb468ef5df15a90f22823a781be3061fd">00034</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbb468ef5df15a90f22823a781be3061fd">ExpandedStretch</a>, <a name="l00035"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb4cf5c7c7851233dd629219ddedbe2bdf">00035</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb4cf5c7c7851233dd629219ddedbe2bdf">ExtraExpandedStretch</a>, <a name="l00036"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbf0092cc5560166db9ff173eda580e283">00036</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdbf0092cc5560166db9ff173eda580e283">UltraExpandedStretch</a>, <a name="l00037"></a><a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb2c592e67f1fe84e6b2de03bf93b9bffb">00037</a> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb2c592e67f1fe84e6b2de03bf93b9bffb">AnyStretch</a> <a name="l00038"></a>00038 } <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb">StretchType</a>; <a name="l00039"></a>00039 <a name="l00040"></a><a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220d">00040</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a name="l00041"></a>00041 { <a name="l00042"></a><a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220d1d7f9dd10c3c829790ad0273b6fe7876">00042</a> <a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220d1d7f9dd10c3c829790ad0273b6fe7876">UndefinedStyle</a>, <a name="l00043"></a><a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220d63b4f52522afef00b3bf7f04ad5a16ef">00043</a> <a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220d63b4f52522afef00b3bf7f04ad5a16ef">NormalStyle</a>, <a name="l00044"></a><a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220de9906f3ad5bcedd8e7cff11daafcdd13">00044</a> <a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220de9906f3ad5bcedd8e7cff11daafcdd13">ItalicStyle</a>, <a name="l00045"></a><a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220db515c002f56917c0ac3cf209ac4c856b">00045</a> <a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220db515c002f56917c0ac3cf209ac4c856b">ObliqueStyle</a>, <a name="l00046"></a><a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220dc0b3cb0acb1fefd55f29b07eeba7bfcc">00046</a> <a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220dc0b3cb0acb1fefd55f29b07eeba7bfcc">AnyStyle</a> <a name="l00047"></a>00047 } <a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220d">StyleType</a>; <a name="l00048"></a>00048 <a name="l00049"></a><a class="code" href="struct__TypeInfo.html">00049</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__TypeInfo.html">_TypeInfo</a> <a name="l00050"></a>00050 { <a name="l00051"></a>00051 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a name="l00052"></a><a class="code" href="struct__TypeInfo.html#757b71eb791e879b5dbb33945b964a1b">00052</a> <a class="code" href="struct__TypeInfo.html#757b71eb791e879b5dbb33945b964a1b">face</a>; <a name="l00053"></a>00053 <a name="l00054"></a>00054 <span class="keywordtype">char</span> <a name="l00055"></a><a class="code" href="struct__TypeInfo.html#72892c6b15f542296953172086c08952">00055</a> *<a class="code" href="struct__TypeInfo.html#72892c6b15f542296953172086c08952">path</a>, <a name="l00056"></a>00056 *<a class="code" href="struct__TypeInfo.html#e2616948284354383074764d209ee513">name</a>, <a name="l00057"></a>00057 *<a class="code" href="struct__TypeInfo.html#e5e83f99cbb86fbb6f84aa45ed88cbba">description</a>, <a name="l00058"></a>00058 *<a class="code" href="struct__TypeInfo.html#b84042c69a614b519fd623fe1b98e4c0">family</a>; <a name="l00059"></a>00059 <a name="l00060"></a>00060 <a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220d">StyleType</a> <a name="l00061"></a><a class="code" href="struct__TypeInfo.html#eaee42060a924899379831eb1821fbd3">00061</a> <a class="code" href="struct__TypeInfo.html#eaee42060a924899379831eb1821fbd3">style</a>; <a name="l00062"></a>00062 <a name="l00063"></a>00063 <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb">StretchType</a> <a name="l00064"></a><a class="code" href="struct__TypeInfo.html#a1d43781302c8764fa0be73c9df13831">00064</a> <a class="code" href="struct__TypeInfo.html#a1d43781302c8764fa0be73c9df13831">stretch</a>; <a name="l00065"></a>00065 <a name="l00066"></a>00066 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a name="l00067"></a><a class="code" href="struct__TypeInfo.html#a48a75022ec2830bc1c05e6bb792deb6">00067</a> <a class="code" href="struct__TypeInfo.html#a48a75022ec2830bc1c05e6bb792deb6">weight</a>; <a name="l00068"></a>00068 <a name="l00069"></a>00069 <span class="keywordtype">char</span> <a name="l00070"></a><a class="code" href="struct__TypeInfo.html#091b26f094f77c73450bd2704da742f0">00070</a> *<a class="code" href="struct__TypeInfo.html#cb8c7f1c02a8ae73f503a855589e40c4">encoding</a>, <a name="l00071"></a>00071 *<a class="code" href="struct__TypeInfo.html#e6861d2bd3005b9160239cfb3735c450">foundry</a>, <a name="l00072"></a>00072 *<a class="code" href="struct__TypeInfo.html#6fe1dde78362052631192c217911862b">format</a>, <a name="l00073"></a>00073 *<a class="code" href="struct__TypeInfo.html#091b26f094f77c73450bd2704da742f0">metrics</a>, <a name="l00074"></a>00074 *<a class="code" href="struct__TypeInfo.html#6b1704ffedd554f4cceb414e4909b303">glyphs</a>; <a name="l00075"></a>00075 <a name="l00076"></a>00076 <a class="code" href="magick-type_8h.html#c740cbce6e8928a679ae3767b49428dd">MagickBooleanType</a> <a name="l00077"></a><a class="code" href="struct__TypeInfo.html#719be154de9ad1484d4796dc60fe1b61">00077</a> <a class="code" href="struct__TypeInfo.html#719be154de9ad1484d4796dc60fe1b61">stealth</a>; <a name="l00078"></a>00078 <a name="l00079"></a><a class="code" href="struct__TypeInfo.html#0717a8978c6372367611786ac0e9c06c">00079</a> <span class="keyword">struct </span><a class="code" href="struct__TypeInfo.html">_TypeInfo</a> <a name="l00080"></a>00080 *<a class="code" href="struct__TypeInfo.html#0717a8978c6372367611786ac0e9c06c">previous</a>, <a name="l00081"></a>00081 *<a class="code" href="struct__TypeInfo.html#076192ddea4328fcf7ee7ae8b8b13238">next</a>; <span class="comment">/* deprecated, use GetTypeInfoList() */</span> <a name="l00082"></a>00082 <a name="l00083"></a>00083 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a name="l00084"></a><a class="code" href="struct__TypeInfo.html#ffa55beaf5fe3e4526042d25327a6f79">00084</a> <a class="code" href="struct__TypeInfo.html#ffa55beaf5fe3e4526042d25327a6f79">signature</a>; <a name="l00085"></a>00085 } <a class="code" href="struct__TypeInfo.html">TypeInfo</a>; <a name="l00086"></a>00086 <a name="l00087"></a>00087 <span class="keyword">extern</span> <a class="code" href="MagickCore_8h.html#487cee8f0dff0607e77f6b51d6403651">MagickExport</a> <span class="keywordtype">char</span> <a name="l00088"></a>00088 **<a class="code" href="type_8c.html#cd58049be8616bdc5f78489069dd1e9d">GetTypeList</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *,<a class="code" href="struct__ExceptionInfo.html">ExceptionInfo</a> *); <a name="l00089"></a>00089 <a name="l00090"></a>00090 <span class="keyword">extern</span> <a class="code" href="MagickCore_8h.html#487cee8f0dff0607e77f6b51d6403651">MagickExport</a> <a class="code" href="magick-type_8h.html#c740cbce6e8928a679ae3767b49428dd">MagickBooleanType</a> <a name="l00091"></a>00091 <a class="code" href="type_8c.html#96e36274039ee95f987d677f4e06d5af">ListTypeInfo</a>(FILE *,<a class="code" href="struct__ExceptionInfo.html">ExceptionInfo</a> *); <a name="l00092"></a>00092 <a name="l00093"></a>00093 <span class="keyword">extern</span> <a class="code" href="MagickCore_8h.html#487cee8f0dff0607e77f6b51d6403651">MagickExport</a> <span class="keyword">const</span> <a class="code" href="struct__TypeInfo.html">TypeInfo</a> <a name="l00094"></a>00094 *<a class="code" href="type_8c.html#f704977000d72a0965af8c76dd1ee541">GetTypeInfo</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *,<a class="code" href="struct__ExceptionInfo.html">ExceptionInfo</a> *), <a name="l00095"></a>00095 *<a class="code" href="type_8c.html#cb014d92ed4374cdee8a8103d368b1c8">GetTypeInfoByFamily</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *,<span class="keyword">const</span> <a class="code" href="type_8h.html#d87abf2741463b7ab84e9e214240220d">StyleType</a>,<span class="keyword">const</span> <a class="code" href="type_8h.html#bdf6bb23a1fdb150bb86496d5a8bafdb">StretchType</a>, <a name="l00096"></a>00096 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>,<a class="code" href="struct__ExceptionInfo.html">ExceptionInfo</a> *), <a name="l00097"></a>00097 **<a class="code" href="type_8c.html#31cf4c2b4a69292a26e8bcbcae3b34cf">GetTypeInfoList</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *,<a class="code" href="struct__ExceptionInfo.html">ExceptionInfo</a> *); <a name="l00098"></a>00098 <a name="l00099"></a>00099 <a class="code" href="MagickCore_8h.html#487cee8f0dff0607e77f6b51d6403651">MagickExport</a> <span class="keywordtype">void</span> <a name="l00100"></a>00100 <a class="code" href="type_8c.html#9a6f4d0b22ac45f0d899d640877e41e7">DestroyTypeList</a>(<span class="keywordtype">void</span>); <a name="l00101"></a>00101 <a name="l00102"></a>00102 <span class="preprocessor">#if defined(__cplusplus) || defined(c_plusplus)</span> <a name="l00103"></a>00103 <span class="preprocessor"></span>} <a name="l00104"></a>00104 <span class="preprocessor">#endif</span> <a name="l00105"></a>00105 <span class="preprocessor"></span> <a name="l00106"></a>00106 <span class="preprocessor">#endif</span> </pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sat Jan 26 14:50:29 2008 for MagickCore by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address> </body> </html>