Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 695723f45a219d8b1253352d6e8b7d4a > files > 42

ftgl-docs-2.1.3-0.4.rc5.fc15.i686.rpm

<!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>FTGL: FTSimpleLayout.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.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">FTGL&#160;<span id="projectnumber">2.1.3~rc5</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>FTSimpleLayout.h</h1>  </div>
</div>
<div class="contents">
<a href="FTSimpleLayout_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"> * FTGL - OpenGL font library</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2001-2004 Henry Maddocks &lt;ftgl@opengl.geek.nz&gt;</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (c) 2008 Sam Hocevar &lt;sam@zoy.org&gt;</span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2008 Sean Morrison &lt;learner@brlcad.org&gt;</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining</span>
<a name="l00009"></a>00009 <span class="comment"> * a copy of this software and associated documentation files (the</span>
<a name="l00010"></a>00010 <span class="comment"> * &quot;Software&quot;), to deal in the Software without restriction, including</span>
<a name="l00011"></a>00011 <span class="comment"> * without limitation the rights to use, copy, modify, merge, publish,</span>
<a name="l00012"></a>00012 <span class="comment"> * distribute, sublicense, and/or sell copies of the Software, and to</span>
<a name="l00013"></a>00013 <span class="comment"> * permit persons to whom the Software is furnished to do so, subject to</span>
<a name="l00014"></a>00014 <span class="comment"> * the following conditions:</span>
<a name="l00015"></a>00015 <span class="comment"> *</span>
<a name="l00016"></a>00016 <span class="comment"> * The above copyright notice and this permission notice shall be</span>
<a name="l00017"></a>00017 <span class="comment"> * included in all copies or substantial portions of the Software.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,</span>
<a name="l00020"></a>00020 <span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span>
<a name="l00021"></a>00021 <span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</span>
<a name="l00022"></a>00022 <span class="comment"> * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY</span>
<a name="l00023"></a>00023 <span class="comment"> * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,</span>
<a name="l00024"></a>00024 <span class="comment"> * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE</span>
<a name="l00025"></a>00025 <span class="comment"> * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span>
<a name="l00026"></a>00026 <span class="comment"> */</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef __ftgl__</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#   warning This header is deprecated. Please use &lt;FTGL/ftgl.h&gt; from now.</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#   include &lt;FTGL/ftgl.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#endif</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a>00033 <span class="preprocessor">#ifndef __FTSimpleLayout__</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define __FTSimpleLayout__</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a>;
<a name="l00040"></a>00040 
<a name="l00049"></a><a class="code" href="classFTSimpleLayout.html">00049</a> <span class="keyword">class </span><a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <a class="code" href="classFTSimpleLayout.html" title="FTSimpleLayout is a specialisation of FTLayout for simple text boxes.">FTSimpleLayout</a> : <span class="keyword">public</span> <a class="code" href="classFTLayout.html" title="FTLayout is the interface for layout managers that render text.">FTLayout</a>
<a name="l00050"></a>00050 {
<a name="l00051"></a>00051     <span class="keyword">public</span>:
<a name="l00056"></a>00056         <a class="code" href="classFTLayout.html#ae27eaa779922d14c8eb0f476456c7099">FTSimpleLayout</a>();
<a name="l00057"></a>00057 
<a name="l00061"></a>00061         ~<a class="code" href="classFTSimpleLayout.html" title="FTSimpleLayout is a specialisation of FTLayout for simple text boxes.">FTSimpleLayout</a>();
<a name="l00062"></a>00062 
<a name="l00073"></a>00073         <span class="keyword">virtual</span> <a class="code" href="classFTBBox.html" title="FTBBox is a convenience class for handling bounding boxes.">FTBBox</a> <a class="code" href="classFTLayout.html#ae79561f22ee39e69ce27d84b1d47fe2e" title="Get the bounding box for a formatted string.">BBox</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> len = -1,
<a name="l00074"></a>00074                             <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> position = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>());
<a name="l00075"></a>00075 
<a name="l00086"></a>00086         <span class="keyword">virtual</span> <a class="code" href="classFTBBox.html" title="FTBBox is a convenience class for handling bounding boxes.">FTBBox</a> <a class="code" href="classFTLayout.html#ae79561f22ee39e69ce27d84b1d47fe2e" title="Get the bounding box for a formatted string.">BBox</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span>* <span class="keywordtype">string</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> len = -1,
<a name="l00087"></a>00087                             <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> position = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>());
<a name="l00088"></a>00088 
<a name="l00099"></a>00099         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFTLayout.html#a0e18bf877bbfe871e93ec0ebf1437a0f" title="Render a string of characters.">Render</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keywordtype">string</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> len = -1,
<a name="l00100"></a>00100                             <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> position = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>(),
<a name="l00101"></a>00101                             <span class="keywordtype">int</span> renderMode = <a class="code" href="namespaceFTGL.html#a9916822cb1247bd2e1aae26f7bfec74ea2966ccc38996af16a67387177a8c6a62">FTGL::RENDER_ALL</a>);
<a name="l00102"></a>00102 
<a name="l00113"></a>00113         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFTLayout.html#a0e18bf877bbfe871e93ec0ebf1437a0f" title="Render a string of characters.">Render</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *<span class="keywordtype">string</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> len = -1,
<a name="l00114"></a>00114                             <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a> position = <a class="code" href="classFTPoint.html" title="FTPoint class is a basic 3-dimensional point or vector.">FTPoint</a>(),
<a name="l00115"></a>00115                             <span class="keywordtype">int</span> renderMode = <a class="code" href="namespaceFTGL.html#a9916822cb1247bd2e1aae26f7bfec74ea2966ccc38996af16a67387177a8c6a62">FTGL::RENDER_ALL</a>);
<a name="l00116"></a>00116 
<a name="l00124"></a>00124         <span class="keywordtype">void</span> SetFont(<a class="code" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a> *fontInit);
<a name="l00125"></a>00125 
<a name="l00129"></a>00129         <a class="code" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a> *GetFont();
<a name="l00130"></a>00130 
<a name="l00136"></a>00136         <span class="keywordtype">void</span> SetLineLength(<span class="keyword">const</span> <span class="keywordtype">float</span> LineLength);
<a name="l00137"></a>00137 
<a name="l00141"></a>00141         <span class="keywordtype">float</span> GetLineLength() <span class="keyword">const</span>;
<a name="l00142"></a>00142 
<a name="l00149"></a>00149         <span class="keywordtype">void</span> SetAlignment(<span class="keyword">const</span> <a class="code" href="namespaceFTGL.html#a646f2ba64dbd9fb3da4d17ae93a5dd22">FTGL::TextAlignment</a> Alignment);
<a name="l00150"></a>00150 
<a name="l00154"></a>00154         <a class="code" href="namespaceFTGL.html#a646f2ba64dbd9fb3da4d17ae93a5dd22">FTGL::TextAlignment</a> GetAlignment() <span class="keyword">const</span>;
<a name="l00155"></a>00155 
<a name="l00162"></a>00162         <span class="keywordtype">void</span> SetLineSpacing(<span class="keyword">const</span> <span class="keywordtype">float</span> LineSpacing);
<a name="l00163"></a>00163 
<a name="l00167"></a>00167         <span class="keywordtype">float</span> GetLineSpacing() <span class="keyword">const</span>;
<a name="l00168"></a>00168 };
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 <span class="preprocessor">#endif //__cplusplus</span>
<a name="l00171"></a>00171 <span class="preprocessor"></span>
<a name="l00172"></a>00172 <a class="code" href="ftgl_8h.html#a1543f6485dcd3ef6db0a10396071a6f6">FTGL_BEGIN_C_DECLS</a>
<a name="l00173"></a>00173 
<a name="l00174"></a>00174 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <a class="code" href="FTLayout_8h.html#a0aeec097978c2d2c070cf463b6d2a00f">FTGLlayout</a> *<a class="code" href="FTSimpleLayout_8h.html#ad7f352444217b1cc19ed28546a3aa7b7">ftglCreateSimpleLayout</a>(<span class="keywordtype">void</span>);
<a name="l00175"></a>00175 
<a name="l00176"></a>00176 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">void</span> <a class="code" href="FTSimpleLayout_8h.html#ad02decaf16aa69392e9c70cf9819b77f">ftglSetLayoutFont</a>(<a class="code" href="FTLayout_8h.html#a0aeec097978c2d2c070cf463b6d2a00f">FTGLlayout</a> *, <a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a>*);
<a name="l00177"></a>00177 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <a class="code" href="FTFont_8h.html#af121f8e0374785b92e3155992d703b17">FTGLfont</a> *<a class="code" href="FTSimpleLayout_8h.html#aa7b85c9fb41e3f35e4ef3850205c15ec">ftglGetLayoutFont</a>(<a class="code" href="FTLayout_8h.html#a0aeec097978c2d2c070cf463b6d2a00f">FTGLlayout</a> *);
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">void</span> <a class="code" href="FTSimpleLayout_8h.html#a556b3cfd429094919b58d4545ff4ea6c">ftglSetLayoutLineLength</a>(<a class="code" href="FTLayout_8h.html#a0aeec097978c2d2c070cf463b6d2a00f">FTGLlayout</a> *, <span class="keyword">const</span> <span class="keywordtype">float</span>);
<a name="l00180"></a>00180 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">float</span> <a class="code" href="FTSimpleLayout_8h.html#aa2b86ccde8838104c8c0594955b31af3">ftglGetLayoutLineLength</a>(<a class="code" href="FTLayout_8h.html#a0aeec097978c2d2c070cf463b6d2a00f">FTGLlayout</a> *);
<a name="l00181"></a>00181 
<a name="l00182"></a>00182 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">void</span> <a class="code" href="FTSimpleLayout_8h.html#a103e1437db97d5609e28064b7e3c466c">ftglSetLayoutAlignment</a>(<a class="code" href="FTLayout_8h.html#a0aeec097978c2d2c070cf463b6d2a00f">FTGLlayout</a> *, <span class="keyword">const</span> <span class="keywordtype">int</span>);
<a name="l00183"></a>00183 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">int</span> <a class="code" href="FTSimpleLayout_8h.html#a12fbc2d3a77ef03b627140a084dcedd2">ftglGetLayoutAlignement</a>(<a class="code" href="FTLayout_8h.html#a0aeec097978c2d2c070cf463b6d2a00f">FTGLlayout</a> *);
<a name="l00184"></a>00184 
<a name="l00185"></a>00185 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">void</span> <a class="code" href="FTSimpleLayout_8h.html#a862933643046aa43d0bf34411d0716b1">ftglSetLayoutLineSpacing</a>(<a class="code" href="FTLayout_8h.html#a0aeec097978c2d2c070cf463b6d2a00f">FTGLlayout</a> *, <span class="keyword">const</span> <span class="keywordtype">float</span>);
<a name="l00186"></a>00186 <a class="code" href="ftgl_8h.html#ae472b08d77a4ead09abe74fe37220270">FTGL_EXPORT</a> <span class="keywordtype">float</span> <a class="code" href="FTSimpleLayout_8h.html#a89e57308c40a9be11adae773b7b60e54">ftglGetLayoutLineSpacing</a>(<a class="code" href="FTLayout_8h.html#a0aeec097978c2d2c070cf463b6d2a00f">FTGLlayout</a> *);
<a name="l00187"></a>00187 
<a name="l00188"></a>00188 <a class="code" href="ftgl_8h.html#aba8b33a81b5c655eb7c4b358419a17d5">FTGL_END_C_DECLS</a>
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 <span class="preprocessor">#endif  </span><span class="comment">/* __FTSimpleLayout__ */</span>
<a name="l00191"></a>00191 
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Feb 9 2011 for FTGL by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>