<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>libthai: thai/thrend.h File Reference</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.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="contents"> <h1>thai/thrend.h File Reference</h1>Thai string rendering. <a href="#_details">More...</a> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Defines</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="230e027a648fe41f66765ad8a4c2cca1"></a><!-- doxytag: member="thrend.h::TH_BLANK_BASE_GLYPH" ref="230e027a648fe41f66765ad8a4c2cca1" args="" --> #define </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#230e027a648fe41f66765ad8a4c2cca1">TH_BLANK_BASE_GLYPH</a> 0xdd</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Blank base glyph, for floating upper/lower vowel. <br></td></tr> <tr><td colspan="2"><br><h2>Typedefs</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="81f77b5967d97872c26c3bf1932ff9e1"></a><!-- doxytag: member="thrend.h::thglyph_t" ref="81f77b5967d97872c26c3bf1932ff9e1" args="" --> typedef unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Glyph code type. <br></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#829ae4812fb90113534c1d15e35f2976">th_render_cell_tis</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> cell, <a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Render the given cell using TIS-620 glyph set. <a href="#829ae4812fb90113534c1d15e35f2976"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#2c102eadc6eb85de5362d373ca5b5440">th_render_cell_win</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> cell, <a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Render the given cell using Thai Windows glyph set. <a href="#2c102eadc6eb85de5362d373ca5b5440"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#fe620f7ddbc5bee3190cda31b59fe79f">th_render_cell_mac</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> cell, <a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Render the given cell using Mac Thai glyph set. <a href="#fe620f7ddbc5bee3190cda31b59fe79f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#1de504f744df81b7f795d549aafc9f8e">th_render_text_tis</a> (const <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, <a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Render the given text using TIS-620 glyph set. <a href="#1de504f744df81b7f795d549aafc9f8e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#07a852723de308342ee65737c281b749">th_render_text_win</a> (const <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, <a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Render the given text using Thai Windows glyph set. <a href="#07a852723de308342ee65737c281b749"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#b8158d124fb2d92e7f364c18bc09e28a">th_render_text_mac</a> (const <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, <a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> res[], size_t res_sz, int is_decomp_am)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Render the given text using Mac Thai glyph set. <a href="#b8158d124fb2d92e7f364c18bc09e28a"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Thai string rendering. <p> <hr><h2>Function Documentation</h2> <a class="anchor" name="fe620f7ddbc5bee3190cda31b59fe79f"></a><!-- doxytag: member="thrend.h::th_render_cell_mac" ref="fe620f7ddbc5bee3190cda31b59fe79f" args="(struct thcell_t cell, thglyph_t res[], size_t res_sz, int is_decomp_am)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int th_render_cell_mac </td> <td>(</td> <td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a> </td> <td class="paramname"> <em>cell</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> </td> <td class="paramname"> <em>res</em>[], </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>res_sz</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>is_decomp_am</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Render the given cell using Mac Thai glyph set. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>cell</em> </td><td>: the cell to render </td></tr> <tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>: the buffer for storing output glyph string </td></tr> <tr><td valign="top"></td><td valign="top"><em>res_sz</em> </td><td>: the size of <em>res</em> buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>is_decomp_am</em> </td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> Calculates glyphs from Mac Thai glyph set for the given <em>cell</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </div> </div><p> <a class="anchor" name="829ae4812fb90113534c1d15e35f2976"></a><!-- doxytag: member="thrend.h::th_render_cell_tis" ref="829ae4812fb90113534c1d15e35f2976" args="(struct thcell_t cell, thglyph_t res[], size_t res_sz, int is_decomp_am)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int th_render_cell_tis </td> <td>(</td> <td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a> </td> <td class="paramname"> <em>cell</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> </td> <td class="paramname"> <em>res</em>[], </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>res_sz</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>is_decomp_am</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Render the given cell using TIS-620 glyph set. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>cell</em> </td><td>: the cell to render </td></tr> <tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>: the buffer for storing output glyph string </td></tr> <tr><td valign="top"></td><td valign="top"><em>res_sz</em> </td><td>: the size of <em>res</em> buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>is_decomp_am</em> </td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> Calculates glyphs from TIS-620 glyph set for the given <em>cell</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </div> </div><p> <a class="anchor" name="2c102eadc6eb85de5362d373ca5b5440"></a><!-- doxytag: member="thrend.h::th_render_cell_win" ref="2c102eadc6eb85de5362d373ca5b5440" args="(struct thcell_t cell, thglyph_t res[], size_t res_sz, int is_decomp_am)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int th_render_cell_win </td> <td>(</td> <td class="paramtype">struct <a class="el" href="structthcell__t.html">thcell_t</a> </td> <td class="paramname"> <em>cell</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> </td> <td class="paramname"> <em>res</em>[], </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>res_sz</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>is_decomp_am</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Render the given cell using Thai Windows glyph set. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>cell</em> </td><td>: the cell to render </td></tr> <tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>: the buffer for storing output glyph string </td></tr> <tr><td valign="top"></td><td valign="top"><em>res_sz</em> </td><td>: the size of <em>res</em> buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>is_decomp_am</em> </td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> Calculates glyphs from Thai Windows glyph set for the given <em>cell</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </div> </div><p> <a class="anchor" name="b8158d124fb2d92e7f364c18bc09e28a"></a><!-- doxytag: member="thrend.h::th_render_text_mac" ref="b8158d124fb2d92e7f364c18bc09e28a" args="(const thchar_t *s, thglyph_t res[], size_t res_sz, int is_decomp_am)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int th_render_text_mac </td> <td>(</td> <td class="paramtype">const <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> * </td> <td class="paramname"> <em>s</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> </td> <td class="paramname"> <em>res</em>[], </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>res_sz</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>is_decomp_am</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Render the given text using Mac Thai glyph set. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>: the string to render </td></tr> <tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>: the buffer for storing output glyph string </td></tr> <tr><td valign="top"></td><td valign="top"><em>res_sz</em> </td><td>: the size of <em>res</em> buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>is_decomp_am</em> </td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> Calculates glyphs from Mac Thai glyph set for the given string <em>s</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </div> </div><p> <a class="anchor" name="1de504f744df81b7f795d549aafc9f8e"></a><!-- doxytag: member="thrend.h::th_render_text_tis" ref="1de504f744df81b7f795d549aafc9f8e" args="(const thchar_t *s, thglyph_t res[], size_t res_sz, int is_decomp_am)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int th_render_text_tis </td> <td>(</td> <td class="paramtype">const <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> * </td> <td class="paramname"> <em>s</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> </td> <td class="paramname"> <em>res</em>[], </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>res_sz</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>is_decomp_am</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Render the given text using TIS-620 glyph set. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>: the string to render </td></tr> <tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>: the buffer for storing output glyph string </td></tr> <tr><td valign="top"></td><td valign="top"><em>res_sz</em> </td><td>: the size of <em>res</em> buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>is_decomp_am</em> </td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> Calculates glyphs from TIS-620 glyph set for the given string <em>s</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </div> </div><p> <a class="anchor" name="07a852723de308342ee65737c281b749"></a><!-- doxytag: member="thrend.h::th_render_text_win" ref="07a852723de308342ee65737c281b749" args="(const thchar_t *s, thglyph_t res[], size_t res_sz, int is_decomp_am)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int th_render_text_win </td> <td>(</td> <td class="paramtype">const <a class="el" href="thailib_8h.html#75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> * </td> <td class="paramname"> <em>s</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="thrend_8h.html#81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a> </td> <td class="paramname"> <em>res</em>[], </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>res_sz</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>is_decomp_am</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Render the given text using Thai Windows glyph set. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>: the string to render </td></tr> <tr><td valign="top"></td><td valign="top"><em>res</em> </td><td>: the buffer for storing output glyph string </td></tr> <tr><td valign="top"></td><td valign="top"><em>res_sz</em> </td><td>: the size of <em>res</em> buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>is_decomp_am</em> </td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> Calculates glyphs from Thai Windows glyph set for the given string <em>s</em>, and store the glyph string in <em>res</em>, terminated with '\0'. If resulting glyphs are longer than the provided buffer, only the first <em>res_sz</em> glyphs are stored. </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Sat Jan 16 10:00:17 2010 for libthai by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> </body> </html>