| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| <title>FTGL: FTSize.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.3.6 --> |
| <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div> |
| <h1>FTSize.h</h1><a href="FTSize_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef __FTSize__</span> |
| 00002 <span class="preprocessor"></span><span class="preprocessor">#define __FTSize__</span> |
| 00003 <span class="preprocessor"></span> |
| 00004 |
| 00005 <span class="preprocessor">#include <ft2build.h></span> |
| 00006 <span class="preprocessor">#include FT_FREETYPE_H</span> |
| 00007 <span class="preprocessor"></span> |
| 00008 <span class="preprocessor">#include "<a class="code" href="FTGL_8h.html">FTGL.h</a>"</span> |
| 00009 |
| 00010 |
| 00011 |
| <a name="l00018"></a><a class="code" href="classFTSize.html">00018</a> <span class="keyword">class </span><a class="code" href="FTGL_8h.html#a3">FTGL_EXPORT</a> FTSize |
| 00019 { |
| 00020 <span class="keyword">public</span>: |
| 00024 FTSize(); |
| 00025 |
| 00029 <span class="keyword">virtual</span> ~FTSize(); |
| 00030 |
| 00043 <span class="keywordtype">bool</span> CharSize( FT_Face* face, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> point_size, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> x_resolution, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> y_resolution); |
| 00044 |
| 00050 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> CharSize() <span class="keyword">const</span>; |
| 00051 |
| 00057 <span class="keywordtype">float</span> Ascender() <span class="keyword">const</span>; |
| 00058 |
| 00064 <span class="keywordtype">float</span> Descender() <span class="keyword">const</span>; |
| 00065 |
| 00076 <span class="keywordtype">float</span> Height() <span class="keyword">const</span>; |
| 00077 |
| 00088 <span class="keywordtype">float</span> Width() <span class="keyword">const</span>; |
| 00089 |
| 00095 <span class="keywordtype">float</span> Underline() <span class="keyword">const</span>; |
| 00096 |
| <a name="l00102"></a><a class="code" href="classFTSize.html#a9">00102</a> FT_Error Error()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> err; } |
| 00103 |
| 00104 <span class="keyword">private</span>: |
| 00108 FT_Face* ftFace; |
| 00109 |
| 00113 FT_Size ftSize; |
| 00114 |
| 00118 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size; |
| 00119 |
| 00123 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> xResolution; |
| 00124 |
| 00128 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> yResolution; |
| 00129 |
| 00133 FT_Error err; |
| 00134 |
| 00135 }; |
| 00136 |
| 00137 <span class="preprocessor">#endif // __FTSize__</span> |
| 00138 <span class="preprocessor"></span> |
| </pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Dec 5 22:24:06 2004 for FTGL by |
| <a href="http://www.doxygen.org/index.html"> |
| <img src="doxygen.png" alt="doxygen" align="middle" border=0 > |
| </a>1.3.6 </small></address> |
| </body> |
| </html> |