<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: csplugincommon/canvas/fontcache.h Source File (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <h1>csplugincommon/canvas/fontcache.h</h1><a href="fontcache_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 (C) 2003 by Jorrit Tyberghein</span> <a name="l00003"></a>00003 <span class="comment"> (C) 2003 by Frank Richter</span> <a name="l00004"></a>00004 <span class="comment"></span> <a name="l00005"></a>00005 <span class="comment"> This library is free software; you can redistribute it and/or</span> <a name="l00006"></a>00006 <span class="comment"> modify it under the terms of the GNU Library General Public</span> <a name="l00007"></a>00007 <span class="comment"> License as published by the Free Software Foundation; either</span> <a name="l00008"></a>00008 <span class="comment"> version 2 of the License, or (at your option) any later version.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This library is distributed in the hope that it will be useful,</span> <a name="l00011"></a>00011 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00012"></a>00012 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00013"></a>00013 <span class="comment"> Library General Public License for more details.</span> <a name="l00014"></a>00014 <span class="comment"></span> <a name="l00015"></a>00015 <span class="comment"> You should have received a copy of the GNU Library General Public</span> <a name="l00016"></a>00016 <span class="comment"> License along with this library; if not, write to the Free</span> <a name="l00017"></a>00017 <span class="comment"> Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span> <a name="l00018"></a>00018 <span class="comment">*/</span> <a name="l00019"></a>00019 <a name="l00020"></a>00020 <span class="preprocessor">#ifndef __CS_CSPLUGINCOMMON_CANVAS_FONTCACHE_H__</span> <a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define __CS_CSPLUGINCOMMON_CANVAS_FONTCACHE_H__</span> <a name="l00022"></a>00022 <span class="preprocessor"></span> <a name="l00027"></a>00027 <span class="preprocessor">#include "csextern.h"</span> <a name="l00028"></a>00028 <a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="blockallocator_8h.html" title="Generic Memory Block Allocator.">csutil/blockallocator.h</a>"</span> <a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="csunicode_8h.html" title="Unicode types and macros.">csutil/csunicode.h</a>"</span> <a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="scf__implementation_8h.html" title="Crystal Space Shared Class Facility (SCF) - implementation creation support.">csutil/scf_implementation.h</a>"</span> <a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="set_8h.html" title="Basic set for objects.">csutil/set.h</a>"</span> <a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="fontserv_8h.html" title="Font server interface.">ivideo/fontserv.h</a>"</span> <a name="l00034"></a>00034 <a name="l00035"></a>00035 <a name="l00040"></a><a class="code" href="group__plugincommon.html#gd8bff11d9fbd4837ebf95d81e3a7ed49">00040</a> <span class="preprocessor">#define GLYPH_INDEX_UPPER_SHIFT 9</span> <a name="l00041"></a><a class="code" href="group__plugincommon.html#gcde26a5809ed6f8dde22397552e2b786">00041</a> <span class="preprocessor"></span><span class="preprocessor">#define GLYPH_INDEX_LOWER_COUNT 512</span> <a name="l00042"></a><a class="code" href="group__plugincommon.html#gad3dab6535c3b4475f55ae381a613644">00042</a> <span class="preprocessor"></span><span class="preprocessor">#define GLYPH_INDEX_LOWER_MASK 0x1ff</span> <a name="l00043"></a>00043 <span class="preprocessor"></span> <a name="l00044"></a><a class="code" href="group__plugincommon.html#g3b6f4f6eec9948663b3507ca45fc71ee">00044</a> <span class="preprocessor">#define RELEVANT_WRITE_FLAGS CS_WRITE_NOANTIALIAS</span> <a name="l00045"></a>00045 <span class="preprocessor"></span> <a name="l00053"></a><a class="code" href="classcsFontCache.html">00053</a> <span class="keyword">class </span>CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsFontCache.html" title="A cache for font glyphs.">csFontCache</a> <a name="l00054"></a>00054 { <a name="l00055"></a>00055 <span class="keyword">public</span>: <a name="l00056"></a>00056 <span class="keyword">struct </span><a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a>; <a name="l00060"></a><a class="code" href="structcsFontCache_1_1GlyphCacheData.html">00060</a> <span class="keyword">struct </span><a class="code" href="structcsFontCache_1_1GlyphCacheData.html" title="Some basic data associated with a glyph.">GlyphCacheData</a> <a name="l00061"></a>00061 { <a name="l00063"></a><a class="code" href="structcsFontCache_1_1GlyphCacheData.html#ea4f514740abadf5b31c87e5f4cc5fc3">00063</a> <a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a>* font; <a name="l00065"></a><a class="code" href="structcsFontCache_1_1GlyphCacheData.html#d5749295f1ec73ded5f9f92656c7c63c">00065</a> <a class="code" href="group__util.html#g47e911f87ff568b2779f26cf226f5070" title="A single char in a UTF32 encoded string.">utf32_char</a> glyph; <a name="l00067"></a><a class="code" href="structcsFontCache_1_1GlyphCacheData.html#8590499841ca8f452c9fd23515e6123a">00067</a> <a class="code" href="structcsGlyphMetrics.html" title="Metrics for a glyph that are independent from whether a simple or antialiased image...">csGlyphMetrics</a> glyphMetrics; <a name="l00069"></a><a class="code" href="structcsFontCache_1_1GlyphCacheData.html#110992ec2310e52196321b8deffb76ab">00069</a> <span class="keywordtype">bool</span> hasGlyph; <a name="l00071"></a><a class="code" href="structcsFontCache_1_1GlyphCacheData.html#505668c86e50f412c33b99a25a63bc72">00071</a> <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> flags; <a name="l00072"></a>00072 }; <a name="l00073"></a>00073 <a name="l00074"></a>00074 <span class="keyword">protected</span>: <a name="l00078"></a><a class="code" href="structcsFontCache_1_1LRUEntry.html">00078</a> <span class="keyword">struct </span><a class="code" href="structcsFontCache_1_1LRUEntry.html" title="An entry in the LRU list.">LRUEntry</a> <a name="l00079"></a>00079 { <a name="l00081"></a><a class="code" href="structcsFontCache_1_1LRUEntry.html#6cf0f6ce135703c2643251a3092e83c8">00081</a> <a class="code" href="structcsFontCache_1_1LRUEntry.html" title="An entry in the LRU list.">LRUEntry</a>* next; <a name="l00083"></a><a class="code" href="structcsFontCache_1_1LRUEntry.html#7f14649f5a2138347b069517841d031e">00083</a> <a class="code" href="structcsFontCache_1_1LRUEntry.html" title="An entry in the LRU list.">LRUEntry</a>* prev; <a name="l00084"></a>00084 <a name="l00086"></a><a class="code" href="structcsFontCache_1_1LRUEntry.html#0ec7a30406b0ba576089b07534e8c915">00086</a> <a class="code" href="structcsFontCache_1_1GlyphCacheData.html" title="Some basic data associated with a glyph.">GlyphCacheData</a>* cacheData; <a name="l00087"></a>00087 }; <a name="l00089"></a><a class="code" href="classcsFontCache.html#a811819f72578db0901953a2eb5e609e">00089</a> <a class="code" href="structcsFontCache_1_1LRUEntry.html" title="An entry in the LRU list.">LRUEntry</a>* head; <a name="l00091"></a><a class="code" href="classcsFontCache.html#bc976adaee0274898070014152a97b9e">00091</a> <a class="code" href="structcsFontCache_1_1LRUEntry.html" title="An entry in the LRU list.">LRUEntry</a>* tail; <a name="l00092"></a>00092 <a name="l00094"></a><a class="code" href="classcsFontCache.html#fdbb66fc13b04b7eee1a2dba01d4acbd">00094</a> <a class="code" href="classcsBlockAllocator.html" title="This class implements a memory allocator which can efficiently allocate objects that...">csBlockAllocator<LRUEntry></a> LRUAlloc; <a name="l00095"></a>00095 <a name="l00102"></a><a class="code" href="structcsFontCache_1_1PlaneGlyphs.html">00102</a> <span class="keyword">struct </span><a class="code" href="structcsFontCache_1_1PlaneGlyphs.html" title="Array of a number of glyphs.">PlaneGlyphs</a> <a name="l00103"></a>00103 { <a name="l00105"></a><a class="code" href="structcsFontCache_1_1PlaneGlyphs.html#2381f50b4665017458d361cfc722a02e">00105</a> <a class="code" href="structcsFontCache_1_1LRUEntry.html" title="An entry in the LRU list.">LRUEntry</a>* entries[<a class="code" href="group__plugincommon.html#gcde26a5809ed6f8dde22397552e2b786">GLYPH_INDEX_LOWER_COUNT</a>]; <a name="l00106"></a><a class="code" href="structcsFontCache_1_1PlaneGlyphs.html#06c164a9ba69d4d318e7f51d1f2370ef">00106</a> <span class="keywordtype">int</span> usedGlyphs; <a name="l00107"></a>00107 <a name="l00108"></a><a class="code" href="structcsFontCache_1_1PlaneGlyphs.html#d51d13bbfe733bd0bac815085867f7e8">00108</a> <a class="code" href="structcsFontCache_1_1PlaneGlyphs.html" title="Array of a number of glyphs.">PlaneGlyphs</a> () <a name="l00109"></a>00109 { <a name="l00110"></a>00110 memset (entries, 0, <span class="keyword">sizeof</span> (entries)); <a name="l00111"></a>00111 usedGlyphs = 0; <a name="l00112"></a>00112 } <a name="l00113"></a>00113 }; <a name="l00114"></a>00114 <a name="l00115"></a><a class="code" href="classcsFontCache_1_1PlaneGlyphElementHandler.html">00115</a> <span class="keyword">class </span><a class="code" href="classcsFontCache_1_1PlaneGlyphElementHandler.html">PlaneGlyphElementHandler</a> : <span class="keyword">public</span> <a class="code" href="classcsArrayElementHandler.html" title="The default element handler for csArray.">csArrayElementHandler</a><PlaneGlyphs*> <a name="l00116"></a>00116 { <a name="l00117"></a>00117 <span class="keyword">public</span>: <a name="l00118"></a><a class="code" href="classcsFontCache_1_1PlaneGlyphElementHandler.html#dfe76bdac563f32365d6b88f3e3da769">00118</a> <span class="keyword">static</span> <span class="keywordtype">void</span> Construct (<a class="code" href="structcsFontCache_1_1PlaneGlyphs.html" title="Array of a number of glyphs.">PlaneGlyphs</a>** address, <a class="code" href="structcsFontCache_1_1PlaneGlyphs.html" title="Array of a number of glyphs.">PlaneGlyphs</a>* <span class="keyword">const</span>& src) <a name="l00119"></a>00119 { <a name="l00120"></a>00120 *address = src; <a name="l00121"></a>00121 } <a name="l00122"></a>00122 <a name="l00123"></a><a class="code" href="classcsFontCache_1_1PlaneGlyphElementHandler.html#2301e23ae3df0ca343e594f4069513c5">00123</a> <span class="keyword">static</span> <span class="keywordtype">void</span> Destroy (<a class="code" href="structcsFontCache_1_1PlaneGlyphs.html" title="Array of a number of glyphs.">PlaneGlyphs</a>** <span class="comment">/*address*/</span>) <a name="l00124"></a>00124 { <a name="l00125"></a>00125 } <a name="l00126"></a>00126 <a name="l00127"></a><a class="code" href="classcsFontCache_1_1PlaneGlyphElementHandler.html#3ba50c9efbf9dfdbb4a1366344c09324">00127</a> <span class="keyword">static</span> <span class="keywordtype">void</span> InitRegion (<a class="code" href="structcsFontCache_1_1PlaneGlyphs.html" title="Array of a number of glyphs.">PlaneGlyphs</a>** address, <span class="keywordtype">size_t</span> count) <a name="l00128"></a>00128 { <a name="l00129"></a>00129 memset (address, 0, count * <span class="keyword">sizeof</span> (<a class="code" href="structcsFontCache_1_1PlaneGlyphs.html" title="Array of a number of glyphs.">PlaneGlyphs</a>*)); <a name="l00130"></a>00130 } <a name="l00131"></a>00131 }; <a name="l00132"></a>00132 <a name="l00139"></a><a class="code" href="classcsFontCache.html#57ae3eb01a631d2e120b7245489ca0b9">00139</a> <span class="keyword">typedef</span> <a class="code" href="classcsArray.html" title="A templated array class.">csArray<PlaneGlyphs*, PlaneGlyphElementHandler></a> <a class="code" href="classcsArray.html" title="A templated array class.">PlaneGlyphsArray</a>; <a name="l00140"></a>00140 <span class="keyword">public</span>: <a name="l00144"></a><a class="code" href="structcsFontCache_1_1KnownFont.html">00144</a> <span class="keyword">struct </span><a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a> <a name="l00145"></a>00145 { <a name="l00146"></a><a class="code" href="structcsFontCache_1_1KnownFont.html#a0c5947948c36439f6584cbd1c6ec7b2">00146</a> <a class="code" href="structiFont.html" title="A font object.">iFont</a>* font; <a name="l00148"></a><a class="code" href="structcsFontCache_1_1KnownFont.html#915f21a738b3a7119bde25aaaf068788">00148</a> <span class="keywordtype">float</span> fontSize; <a name="l00149"></a><a class="code" href="structcsFontCache_1_1KnownFont.html#9c58748273b46d61bc30f6918493a233">00149</a> <a class="code" href="classcsArray.html" title="A templated array class.">PlaneGlyphsArray</a> planeGlyphs; <a name="l00150"></a>00150 }; <a name="l00152"></a><a class="code" href="classcsFontCache.html#cfa9dd29fb4e01a6d3f420f9b4c9ee02">00152</a> <span class="keywordtype">int</span> ClipX1, ClipY1, ClipX2, ClipY2; <a name="l00153"></a>00153 <span class="keyword">protected</span>: <a name="l00154"></a>00154 <a name="l00156"></a><a class="code" href="classcsFontCache.html#a1667870c89a536f4dd61d9179540b19">00156</a> <a class="code" href="classcsArray.html" title="A templated array class.">csArray<KnownFont*></a> knownFonts; <a name="l00157"></a><a class="code" href="classcsFontCache.html#4b5bf16d7d4139c737b484e1c54af389">00157</a> <a class="code" href="classcsSet.html" title="This class implements a basic set for objects.">csSet<csPtrKey<KnownFont></a> > purgeableFonts; <a name="l00158"></a>00158 <a name="l00160"></a>00160 <a class="code" href="structcsFontCache_1_1LRUEntry.html" title="An entry in the LRU list.">LRUEntry</a>* FindLRUEntry (<a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a>* font, <a class="code" href="group__util.html#g47e911f87ff568b2779f26cf226f5070" title="A single char in a UTF32 encoded string.">utf32_char</a> glyph); <a name="l00162"></a>00162 <a class="code" href="structcsFontCache_1_1LRUEntry.html" title="An entry in the LRU list.">LRUEntry</a>* FindLRUEntry (<a class="code" href="structcsFontCache_1_1GlyphCacheData.html" title="Some basic data associated with a glyph.">GlyphCacheData</a>* cacheData); <a name="l00163"></a>00163 <a name="l00164"></a>00164 <span class="keyword">static</span> <span class="keywordtype">int</span> KnownFontArrayCompareItems (<a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a>* <span class="keyword">const</span>& item1, <a name="l00165"></a>00165 <a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a>* <span class="keyword">const</span>& item2); <a name="l00166"></a>00166 <span class="keyword">static</span> <span class="keywordtype">int</span> KnownFontArrayCompareToKey (<a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a>* <span class="keyword">const</span>& item1, <a name="l00167"></a>00167 <a class="code" href="structiFont.html" title="A font object.">iFont</a>* <span class="keyword">const</span>& item2); <a name="l00168"></a><a class="code" href="classcsFontCache.html#376a79f801d4abf62bcec3244366ff8c">00168</a> <span class="keyword">static</span> <a class="code" href="classcsArrayCmp.html" title="A functor template which encapsulates a key and a comparison function for use with...">csArrayCmp<KnownFont*,iFont*></a> KnownFontArrayKeyFunctor(<a class="code" href="structiFont.html" title="A font object.">iFont</a>* f) <a name="l00169"></a>00169 { <span class="keywordflow">return</span> <a class="code" href="classcsArrayCmp.html" title="A functor template which encapsulates a key and a comparison function for use with...">csArrayCmp<KnownFont*,iFont*></a>(f, KnownFontArrayCompareToKey); } <a name="l00170"></a>00170 <a name="l00172"></a>00172 <span class="keyword">virtual</span> GlyphCacheData* InternalCacheGlyph (KnownFont* font, <a name="l00173"></a>00173 <a class="code" href="group__util.html#g47e911f87ff568b2779f26cf226f5070" title="A single char in a UTF32 encoded string.">utf32_char</a> glyph, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> flags); <a name="l00175"></a>00175 <span class="keyword">virtual</span> <span class="keywordtype">void</span> InternalUncacheGlyph (GlyphCacheData* cacheData); <a name="l00176"></a>00176 <a name="l00178"></a>00178 GlyphCacheData* CacheGlyphUnsafe (KnownFont* font, <a name="l00179"></a>00179 <a class="code" href="group__util.html#g47e911f87ff568b2779f26cf226f5070" title="A single char in a UTF32 encoded string.">utf32_char</a> glyph, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> flags); <a name="l00181"></a>00181 <span class="keywordtype">void</span> SetupCacheData (GlyphCacheData* cacheData, <a name="l00182"></a>00182 KnownFont* font, <a class="code" href="group__util.html#g47e911f87ff568b2779f26cf226f5070" title="A single char in a UTF32 encoded string.">utf32_char</a> glyph, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> flags); <a name="l00183"></a>00183 <a name="l00185"></a>00185 <span class="keywordtype">void</span> AddCacheData (KnownFont* font, <a class="code" href="group__util.html#g47e911f87ff568b2779f26cf226f5070" title="A single char in a UTF32 encoded string.">utf32_char</a> glyph, GlyphCacheData* cacheData); <a name="l00187"></a>00187 <span class="keywordtype">void</span> RemoveCacheData (GlyphCacheData* cacheData); <a name="l00189"></a>00189 <span class="keywordtype">void</span> RemoveLRUEntry (LRUEntry* entry); <a name="l00191"></a>00191 GlyphCacheData* InternalGetCacheData (KnownFont* font, <a class="code" href="group__util.html#g47e911f87ff568b2779f26cf226f5070" title="A single char in a UTF32 encoded string.">utf32_char</a> glyph); <a name="l00192"></a>00192 <a name="l00196"></a><a class="code" href="structcsFontCache_1_1FontDeleteNotify.html">00196</a> <span class="keyword">struct </span><a class="code" href="structcsFontCache_1_1FontDeleteNotify.html" title="Font deletion callback.">FontDeleteNotify</a> : <span class="keyword">public</span> <a class="code" href="classscfImplementation1.html">scfImplementation1</a><FontDeleteNotify, <a name="l00197"></a>00197 iFontDeleteNotify> <a name="l00198"></a>00198 { <a name="l00199"></a><a class="code" href="structcsFontCache_1_1FontDeleteNotify.html#0a846ba11d9cbaf02d2ee46e77c14ead">00199</a> <a class="code" href="classcsFontCache.html" title="A cache for font glyphs.">csFontCache</a>* cache; <a name="l00200"></a>00200 <a name="l00201"></a>00201 <a class="code" href="structcsFontCache_1_1FontDeleteNotify.html" title="Font deletion callback.">FontDeleteNotify</a> (<a class="code" href="classcsFontCache.html" title="A cache for font glyphs.">csFontCache</a>* cache); <a name="l00202"></a>00202 <span class="keyword">virtual</span> ~<a class="code" href="structcsFontCache_1_1FontDeleteNotify.html" title="Font deletion callback.">FontDeleteNotify</a> (); <a name="l00203"></a>00203 <a name="l00204"></a>00204 <span class="keyword">virtual</span> <span class="keywordtype">void</span> BeforeDelete (<a class="code" href="structiFont.html" title="A font object.">iFont</a>* font); <a name="l00205"></a>00205 }; <a name="l00206"></a><a class="code" href="classcsFontCache.html#217f9252818ee5270a1853e5e77a5eff">00206</a> <a class="code" href="structcsFontCache_1_1FontDeleteNotify.html" title="Font deletion callback.">FontDeleteNotify</a>* deleteCallback; <a name="l00207"></a>00207 <a name="l00208"></a>00208 <span class="keywordtype">void</span> CleanupCache (); <a name="l00209"></a>00209 <span class="keyword">public</span>: <a name="l00210"></a>00210 <a class="code" href="classcsFontCache.html" title="A cache for font glyphs.">csFontCache</a> (); <a name="l00211"></a>00211 <span class="keyword">virtual</span> ~<a class="code" href="classcsFontCache.html" title="A cache for font glyphs.">csFontCache</a> (); <a name="l00212"></a>00212 <a name="l00214"></a>00214 <a class="code" href="structcsFontCache_1_1GlyphCacheData.html" title="Some basic data associated with a glyph.">GlyphCacheData</a>* CacheGlyph (<a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a>* font, <a class="code" href="group__util.html#g47e911f87ff568b2779f26cf226f5070" title="A single char in a UTF32 encoded string.">utf32_char</a> glyph, <a name="l00215"></a>00215 <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> flags); <a name="l00217"></a>00217 <span class="keywordtype">void</span> UncacheGlyph (<a class="code" href="structcsFontCache_1_1GlyphCacheData.html" title="Some basic data associated with a glyph.">GlyphCacheData</a>* cacheData); <a name="l00218"></a>00218 <a name="l00220"></a>00220 <a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a>* GetCachedFont (<a class="code" href="structiFont.html" title="A font object.">iFont</a>* font); <a name="l00222"></a>00222 <a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a>* CacheFont (<a class="code" href="structiFont.html" title="A font object.">iFont</a>* font); <a name="l00224"></a>00224 <span class="keywordtype">void</span> UncacheFont (<a class="code" href="structiFont.html" title="A font object.">iFont</a>* font); <a name="l00226"></a>00226 <a class="code" href="structcsFontCache_1_1GlyphCacheData.html" title="Some basic data associated with a glyph.">GlyphCacheData</a>* GetCacheData (<a class="code" href="structcsFontCache_1_1KnownFont.html" title="A font known to the cache.">KnownFont</a>* font, <a class="code" href="group__util.html#g47e911f87ff568b2779f26cf226f5070" title="A single char in a UTF32 encoded string.">utf32_char</a> glyph, <a name="l00227"></a>00227 <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> flags); <a name="l00229"></a>00229 <a class="code" href="structcsFontCache_1_1GlyphCacheData.html" title="Some basic data associated with a glyph.">GlyphCacheData</a>* GetLeastUsed (); <a name="l00230"></a>00230 <a name="l00232"></a>00232 <span class="keywordtype">void</span> PurgeEmptyPlanes (); <a name="l00233"></a>00233 <a name="l00234"></a><a class="code" href="classcsFontCache.html#8c7be0aed86d5ea4004b5c867a8be2e0">00234</a> <span class="keywordtype">void</span> SetClipRect (<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2) <a name="l00235"></a>00235 { <a name="l00236"></a>00236 ClipX1 = x1; ClipY1 = y1; ClipX2 = x2; ClipY2 = y2; <a name="l00237"></a>00237 } <a name="l00238"></a>00238 <a name="l00240"></a>00240 <a name="l00243"></a>00243 <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteString (<a class="code" href="structiFont.html" title="A font object.">iFont</a> *font, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> fg, <span class="keywordtype">int</span> bg, <a name="l00244"></a>00244 <span class="keyword">const</span> <span class="keywordtype">void</span>* text, <span class="keywordtype">bool</span> isWide, <a class="code" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14" title="Shortcut for default unsigned int.">uint</a> flags); <a name="l00246"></a>00246 }; <a name="l00247"></a>00247 <a name="l00250"></a>00250 <span class="preprocessor">#endif // __CS_CSPLUGINCOMMON_CANVAS_FONTCACHE_H__</span> </pre></div><hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>