diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-05-31 14:46:27 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2012-05-31 14:46:27 +0000 |
commit | 8898ad9b25fca6afe2374d293a981db02a83d7e9 (patch) | |
tree | 8041e6eb069b6da70b83e82efdb998662140e716 /Doc/doxygen/html/_font_8h_source.html | |
parent | 985b945e4b49b5d5a1394e93fc3a95289c05e449 (diff) | |
download | starshatter-8898ad9b25fca6afe2374d293a981db02a83d7e9.zip starshatter-8898ad9b25fca6afe2374d293a981db02a83d7e9.tar.gz starshatter-8898ad9b25fca6afe2374d293a981db02a83d7e9.tar.bz2 |
Committing the documentation to svn to have it accessible online
Diffstat (limited to 'Doc/doxygen/html/_font_8h_source.html')
-rw-r--r-- | Doc/doxygen/html/_font_8h_source.html | 260 |
1 files changed, 260 insertions, 0 deletions
diff --git a/Doc/doxygen/html/_font_8h_source.html b/Doc/doxygen/html/_font_8h_source.html new file mode 100644 index 0000000..5f386a6 --- /dev/null +++ b/Doc/doxygen/html/_font_8h_source.html @@ -0,0 +1,260 @@ +<!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"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<title>Starshatter_Open: D:/SRC/StarshatterSVN/nGenEx/Font.h Source File</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="navtree.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="resize.js"></script> +<script type="text/javascript" src="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { searchBox.OnSelectItem(0); }); +</script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Starshatter_Open + </div> + <div id="projectbrief">Open source Starshatter engine</div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.1 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li> + <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> + </li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('_font_8h.html','');}); +</script> +<div id="doc-content"> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a></div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div class="header"> + <div class="headertitle"> +<div class="title">Font.h</div> </div> +</div><!--header--> +<div class="contents"> +<a href="_font_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Project nGenEx</span></div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Destroyer Studios LLC</span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright © 1997-2004. All Rights Reserved.</span></div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span></div> +<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> SUBSYSTEM: nGenEx.lib</span></div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> FILE: Font.h</span></div> +<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> AUTHOR: John DiCamillo</span></div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div> +<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> OVERVIEW</span></div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ========</span></div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> Font Resource class</span></div> +<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">*/</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#ifndef Font_h</span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"></span><span class="preprocessor">#define Font_h</span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="_types_8h.html">Types.h</a>"</span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="_bitmap_8h.html">Bitmap.h</a>"</span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="_color_8h.html">Color.h</a>"</span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="_geometry_8h.html">Geometry.h</a>"</span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">struct </span><a class="code" href="struct_poly.html">Poly</a>;</div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">struct </span><a class="code" href="struct_material.html">Material</a>;</div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">struct </span><a class="code" href="struct_vertex_set.html">VertexSet</a>;</div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">class </span><a class="code" href="class_video.html">Video</a>;</div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div> +<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="struct_font_char.html"> 32</a></span> <span class="keyword">struct </span><a class="code" href="struct_font_char.html">FontChar</a></div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div> +<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="struct_font_char.html#aef945782225c18ee8a28116fc1869dd6"> 34</a></span>  <span class="keywordtype">short</span> <a class="code" href="struct_font_char.html#aef945782225c18ee8a28116fc1869dd6">offset</a>;</div> +<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="struct_font_char.html#a71060f9ad1bcfbad64311514b42384c8"> 35</a></span>  <span class="keywordtype">short</span> <a class="code" href="struct_font_char.html#a71060f9ad1bcfbad64311514b42384c8">width</a>;</div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> };</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> +<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="class_font.html"> 40</a></span> <span class="keyword">class </span><a class="code" href="class_font.html">Font</a></div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> {</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="class_font.html#a209fd1bcb224365022ed74ebeb805f67"> 43</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_font.html#a209fd1bcb224365022ed74ebeb805f67">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"Font"</span>; }</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> +<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="class_font.html#a1116e8074b385e4c6843fe01c2723ff3acd6df914b5ba90f6847f186a8a43049e"> 45</a></span>  <span class="keyword">enum</span> <a class="code" href="class_font.html#a1116e8074b385e4c6843fe01c2723ff3">FLAGS</a> { <a class="code" href="class_font.html#a1116e8074b385e4c6843fe01c2723ff3acd6df914b5ba90f6847f186a8a43049e">FONT_FIXED_PITCH</a> = 1,</div> +<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="class_font.html#a1116e8074b385e4c6843fe01c2723ff3ada3271fbc19724fc8c772be596957cd9"> 46</a></span>  <a class="code" href="class_font.html#a1116e8074b385e4c6843fe01c2723ff3ada3271fbc19724fc8c772be596957cd9">FONT_ALL_CAPS</a> = 2,</div> +<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="class_font.html#a1116e8074b385e4c6843fe01c2723ff3a9c366db52f74c9fe6a6098399d6918ff"> 47</a></span>  <a class="code" href="class_font.html#a1116e8074b385e4c6843fe01c2723ff3a9c366db52f74c9fe6a6098399d6918ff">FONT_NO_KERN</a> = 4</div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  };</div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> +<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edebaa1b18d5c89f00368e1245eacee27cca2"> 50</a></span>  <span class="keyword">enum</span> <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeb">CHARS</a> { <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edebaa1b18d5c89f00368e1245eacee27cca2">PIPE_NBSP</a> = 16,</div> +<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba33e74c113f8dacef25cf709d3d7217ee"> 51</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba33e74c113f8dacef25cf709d3d7217ee">PIPE_VERT</a> = 17, </div> +<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edebac292ffa6296f4577bcd301fc0aca15d5"> 52</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edebac292ffa6296f4577bcd301fc0aca15d5">PIPE_LT</a> = 18,</div> +<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba730d338c4c96c85cc8189e7f04d06632"> 53</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba730d338c4c96c85cc8189e7f04d06632">PIPE_TEE</a> = 19,</div> +<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba7728d8b98ad30bae8c499030656aff21"> 54</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba7728d8b98ad30bae8c499030656aff21">PIPE_UL</a> = 20,</div> +<div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edebaf16a3bc0369194c809bb6b83c74f2016"> 55</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edebaf16a3bc0369194c809bb6b83c74f2016">PIPE_LL</a> = 21,</div> +<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba5eb64de075f0b67a0a82c0aae4639494"> 56</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba5eb64de075f0b67a0a82c0aae4639494">PIPE_HORZ</a> = 22,</div> +<div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edebae22e4165f30f47ab5f947f409dfcf6bc"> 57</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edebae22e4165f30f47ab5f947f409dfcf6bc">PIPE_PLUS</a> = 23,</div> +<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba72d2fbb23f4f2d8ae7c1205d0cf1e45e"> 58</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba72d2fbb23f4f2d8ae7c1205d0cf1e45e">PIPE_MINUS</a> = 24,</div> +<div class="line"><a name="l00059"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edebad766bad6c1d37fc01e4d7d08265a8411"> 59</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edebad766bad6c1d37fc01e4d7d08265a8411">ARROW_UP</a> = 25,</div> +<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba9fc7c11b47c2746aa374a132d27d333d"> 60</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba9fc7c11b47c2746aa374a132d27d333d">ARROW_DOWN</a> = 26,</div> +<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba907ad21ff4d4da5f403d7f9015c42346"> 61</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba907ad21ff4d4da5f403d7f9015c42346">ARROW_LEFT</a> = 27,</div> +<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba73421f9813176bebdda80ebb2dce99ba"> 62</a></span>  <a class="code" href="class_font.html#a56a04a9bb9a8417409aa073eb681edeba73421f9813176bebdda80ebb2dce99ba">ARROW_RIGHT</a> = 28</div> +<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  };</div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">// default constructor:</span></div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="class_font.html#a4e6a119206f505522100221c1fafde45">Font</a>();</div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="class_font.html#a4e6a119206f505522100221c1fafde45">Font</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="class_font.html#a134aaa2f78af0c12d3ce504957169768">~Font</a>();</div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordtype">bool</span> <a class="code" href="class_font.html#a2df7c8b586c4cf8ab0c366cacca36ae8">Load</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordtype">int</span> <a class="code" href="class_font.html#a87e2d64945474abc0a5de0dc668b74ac">CharWidth</a>(<span class="keywordtype">char</span> c) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">int</span> <a class="code" href="class_font.html#a592f7cebb56b93aa535f0f7b06b84e5e">SpaceWidth</a>() <span class="keyword">const</span>;</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">int</span> <a class="code" href="class_font.html#aa6cc6b4a2fd5998dc17f21f868b05e05">KernWidth</a>(<span class="keywordtype">char</span> left, <span class="keywordtype">char</span> right) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordtype">int</span> <a class="code" href="class_font.html#ab7bd7901b50a5681317a72ed921f0f7d">StringWidth</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str, <span class="keywordtype">int</span> len=0) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">void</span> <a class="code" href="class_font.html#a5b500094b86c1b9a0b92d52531009943">DrawText</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* txt, <span class="keywordtype">int</span> count, <a class="code" href="struct_rect.html">Rect</a>& txt_rect, DWORD flags, <a class="code" href="class_bitmap.html">Bitmap</a>* tgt_bitmap=0);</div> +<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordtype">int</span> <a class="code" href="class_font.html#a0f92f674ef46616da89ab11a29cc50d0">DrawString</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* txt, <span class="keywordtype">int</span> len, <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keyword">const</span> <a class="code" href="struct_rect.html">Rect</a>& clip, <a class="code" href="class_bitmap.html">Bitmap</a>* tgt_bitmap=0);</div> +<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div> +<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="class_font.html#aed6ef4aca9ae8199566fe4508e21315e"> 80</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_font.html#aed6ef4aca9ae8199566fe4508e21315e">Height</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> height; }</div> +<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="class_font.html#af7f02083fb428d711c794e1ed59f1864"> 81</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_font.html#af7f02083fb428d711c794e1ed59f1864">Baseline</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> baseline; }</div> +<div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="class_font.html#af80112ebfef920a9792b683aed3ae3ea"> 82</a></span>  WORD <a class="code" href="class_font.html#af80112ebfef920a9792b683aed3ae3ea">GetFlags</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> flags; }</div> +<div class="line"><a name="l00083"></a><span class="lineno"><a class="code" href="class_font.html#a2396fe6042b1fccd922141cbe05ba85b"> 83</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_font.html#a2396fe6042b1fccd922141cbe05ba85b">SetFlags</a>(WORD s) { flags = s; }</div> +<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="class_font.html#a634b137164d3f2b7531317a75812b6e3"> 84</a></span>  <a class="code" href="class_color.html">Color</a> <a class="code" href="class_font.html#a634b137164d3f2b7531317a75812b6e3">GetColor</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> color; }</div> +<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="class_font.html#a264907a4e3a204f1371b46b25bc5ed09"> 85</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_font.html#a264907a4e3a204f1371b46b25bc5ed09">SetColor</a>(<span class="keyword">const</span> <a class="code" href="class_color.html">Color</a>& c) { color = c; }</div> +<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="class_font.html#a66a6174760128624a0570b902bae0786"> 86</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_font.html#a66a6174760128624a0570b902bae0786">GetExpansion</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> expansion; }</div> +<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="class_font.html#a2a88ffba7850fcc86954362ba80f76f7"> 87</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_font.html#a2a88ffba7850fcc86954362ba80f76f7">SetExpansion</a>(<span class="keywordtype">double</span> e) { expansion = (float) e; }</div> +<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="class_font.html#a351097495e2ddf9169cff55ef86c5938"> 88</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_font.html#a351097495e2ddf9169cff55ef86c5938">GetAlpha</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> alpha; }</div> +<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="class_font.html#a3662c4dee7f112697654922a2540dce5"> 89</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_font.html#a3662c4dee7f112697654922a2540dce5">SetAlpha</a>(<span class="keywordtype">double</span> a) { alpha = (float) a; }</div> +<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="class_font.html#afb746df9170d2f0ca4e2069aad6295fc"> 90</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_font.html#afb746df9170d2f0ca4e2069aad6295fc">GetBlend</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> blend; }</div> +<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="class_font.html#a067d67f15810fcc11aff5f4a08b90d5c"> 91</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_font.html#a067d67f15810fcc11aff5f4a08b90d5c">SetBlend</a>(<span class="keywordtype">int</span> b) { blend = b; }</div> +<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordtype">void</span> <a class="code" href="class_font.html#ac49ca2388b66f369fc33fc5c84440725">SetKern</a>(<span class="keywordtype">char</span> left, <span class="keywordtype">char</span> right, <span class="keywordtype">int</span> k=0);</div> +<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> +<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="class_font.html#a4beb0217ab7e252d4cacea46b1f530ed"> 95</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_font.html#a4beb0217ab7e252d4cacea46b1f530ed">GetCaretIndex</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> caret_index; }</div> +<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="class_font.html#a2940a50eda9cedfcb89b6b05f87983c5"> 96</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_font.html#a2940a50eda9cedfcb89b6b05f87983c5">SetCaretIndex</a>(<span class="keywordtype">int</span> n) { caret_index = n; }</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">private</span>:</div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">void</span> AutoKern();</div> +<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">void</span> FindEdges(BYTE c, <span class="keywordtype">double</span>* l, <span class="keywordtype">double</span>* r);</div> +<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">int</span> CalcWidth(BYTE c) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">int</span> GlyphOffset(BYTE c) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">int</span> GlyphLocationX(BYTE c) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordtype">int</span> GlyphLocationY(BYTE c) <span class="keyword">const</span>;</div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">void</span> DrawTextSingle(<span class="keyword">const</span> <span class="keywordtype">char</span>* txt, <span class="keywordtype">int</span> count, <span class="keyword">const</span> <a class="code" href="struct_rect.html">Rect</a>& txt_rect, <a class="code" href="struct_rect.html">Rect</a>& clip_rect, DWORD flags);</div> +<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordtype">void</span> DrawTextWrap(<span class="keyword">const</span> <span class="keywordtype">char</span>* txt, <span class="keywordtype">int</span> count, <span class="keyword">const</span> <a class="code" href="struct_rect.html">Rect</a>& txt_rect, <a class="code" href="struct_rect.html">Rect</a>& clip_rect, DWORD flags);</div> +<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordtype">void</span> DrawTextMulti(<span class="keyword">const</span> <span class="keywordtype">char</span>* txt, <span class="keywordtype">int</span> count, <span class="keyword">const</span> <a class="code" href="struct_rect.html">Rect</a>& txt_rect, <a class="code" href="struct_rect.html">Rect</a>& clip_rect, DWORD flags);</div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordtype">void</span> LoadDef(<span class="keywordtype">char</span>* defname, <span class="keywordtype">char</span>* imgname);</div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div> +<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordtype">char</span> name[64];</div> +<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  WORD flags;</div> +<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  BYTE height;</div> +<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  BYTE baseline;</div> +<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  BYTE interspace;</div> +<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  BYTE spacewidth;</div> +<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordtype">float</span> expansion;</div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordtype">float</span> alpha;</div> +<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordtype">int</span> blend;</div> +<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordtype">int</span> scale;</div> +<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div> +<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordtype">int</span> caret_index;</div> +<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordtype">int</span> caret_x;</div> +<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordtype">int</span> caret_y;</div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordtype">int</span> imagewidth;</div> +<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  BYTE* image;</div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="class_bitmap.html">Bitmap</a> bitmap;</div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="class_bitmap.html">Bitmap</a>* tgt_bitmap;</div> +<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="struct_material.html">Material</a>* material;</div> +<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="struct_vertex_set.html">VertexSet</a>* vset;</div> +<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="struct_poly.html">Poly</a>* polys;</div> +<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordtype">int</span> npolys;</div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div> +<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="struct_font_char.html">FontChar</a> glyph[256];</div> +<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="class_color.html">Color</a> color;</div> +<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div> +<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordtype">char</span> kern[256][256];</div> +<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> };</div> +<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div> +<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="preprocessor">#endif Font_h</span></div> +<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="preprocessor"></span></div> +</div><!-- fragment --></div><!-- contents --> +</div><!-- doc-content --> +<!-- start footer part --> +<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> + <ul> + <li class="navelem"><a class="el" href="dir_d6625d0f3efd9eb70ff961583505095b.html">nGenEx</a></li><li class="navelem"><a class="el" href="_font_8h.html">Font.h</a></li> + <li class="footer">Generated on Thu May 31 2012 16:30:53 for Starshatter_Open by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1 </li> + </ul> +</div> +</body> +</html> |