<!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>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.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">libthai <span id="projectnumber">0.1.14</span></div> </td> </tr> </tbody> </table> </div> <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>Data 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 List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#define-members">Defines</a> | <a href="#typedef-members">Typedefs</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <h1>thai/thrend.h File Reference</h1> </div> </div> <div class="contents"> <p>Thai string rendering. <a href="#_details">More...</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="define-members"></a> Defines</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a230e027a648fe41f66765ad8a4c2cca1"></a><!-- doxytag: member="thrend.h::TH_BLANK_BASE_GLYPH" ref="a230e027a648fe41f66765ad8a4c2cca1" args="" --> #define </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a230e027a648fe41f66765ad8a4c2cca1">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"><h2><a name="typedef-members"></a> Typedefs</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a81f77b5967d97872c26c3bf1932ff9e1"></a><!-- doxytag: member="thrend.h::thglyph_t" ref="a81f77b5967d97872c26c3bf1932ff9e1" args="" --> typedef unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">thglyph_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Glyph code type. <br/></td></tr> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a829ae4812fb90113534c1d15e35f2976">th_render_cell_tis</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> cell, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">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="#a829ae4812fb90113534c1d15e35f2976"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a2c102eadc6eb85de5362d373ca5b5440">th_render_cell_win</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> cell, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">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="#a2c102eadc6eb85de5362d373ca5b5440"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#afe620f7ddbc5bee3190cda31b59fe79f">th_render_cell_mac</a> (struct <a class="el" href="structthcell__t.html">thcell_t</a> cell, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">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="#afe620f7ddbc5bee3190cda31b59fe79f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a1de504f744df81b7f795d549aafc9f8e">th_render_text_tis</a> (const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">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="#a1de504f744df81b7f795d549aafc9f8e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#a07a852723de308342ee65737c281b749">th_render_text_win</a> (const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">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="#a07a852723de308342ee65737c281b749"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="thrend_8h.html#ab8158d124fb2d92e7f364c18bc09e28a">th_render_text_mac</a> (const <a class="el" href="thailib_8h.html#a75138f51cef42c2e0d8bc3e6ce691f51">thchar_t</a> *s, <a class="el" href="thrend_8h.html#a81f77b5967d97872c26c3bf1932ff9e1">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="#ab8158d124fb2d92e7f364c18bc09e28a"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Thai string rendering. </p> </div><hr/><h2>Function Documentation</h2> <a class="anchor" id="afe620f7ddbc5bee3190cda31b59fe79f"></a><!-- doxytag: member="thrend.h::th_render_cell_mac" ref="afe620f7ddbc5bee3190cda31b59fe79f" 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#a81f77b5967d97872c26c3bf1932ff9e1">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> </tr> <tr> <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><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">cell</td><td>: the cell to render </td></tr> <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr> <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr> <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> <p>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. </p> </div> </div> <a class="anchor" id="a829ae4812fb90113534c1d15e35f2976"></a><!-- doxytag: member="thrend.h::th_render_cell_tis" ref="a829ae4812fb90113534c1d15e35f2976" 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#a81f77b5967d97872c26c3bf1932ff9e1">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> </tr> <tr> <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><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">cell</td><td>: the cell to render </td></tr> <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr> <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr> <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> <p>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. </p> </div> </div> <a class="anchor" id="a2c102eadc6eb85de5362d373ca5b5440"></a><!-- doxytag: member="thrend.h::th_render_cell_win" ref="a2c102eadc6eb85de5362d373ca5b5440" 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#a81f77b5967d97872c26c3bf1932ff9e1">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> </tr> <tr> <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><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">cell</td><td>: the cell to render </td></tr> <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr> <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr> <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> <p>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. </p> </div> </div> <a class="anchor" id="ab8158d124fb2d92e7f364c18bc09e28a"></a><!-- doxytag: member="thrend.h::th_render_text_mac" ref="ab8158d124fb2d92e7f364c18bc09e28a" 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#a75138f51cef42c2e0d8bc3e6ce691f51">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#a81f77b5967d97872c26c3bf1932ff9e1">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> </tr> <tr> <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><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">s</td><td>: the string to render </td></tr> <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr> <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr> <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> <p>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. </p> </div> </div> <a class="anchor" id="a1de504f744df81b7f795d549aafc9f8e"></a><!-- doxytag: member="thrend.h::th_render_text_tis" ref="a1de504f744df81b7f795d549aafc9f8e" 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#a75138f51cef42c2e0d8bc3e6ce691f51">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#a81f77b5967d97872c26c3bf1932ff9e1">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> </tr> <tr> <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><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">s</td><td>: the string to render </td></tr> <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr> <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr> <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> <p>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. </p> </div> </div> <a class="anchor" id="a07a852723de308342ee65737c281b749"></a><!-- doxytag: member="thrend.h::th_render_text_win" ref="a07a852723de308342ee65737c281b749" 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#a75138f51cef42c2e0d8bc3e6ce691f51">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#a81f77b5967d97872c26c3bf1932ff9e1">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> </tr> <tr> <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><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">s</td><td>: the string to render </td></tr> <tr><td class="paramname">res</td><td>: the buffer for storing output glyph string </td></tr> <tr><td class="paramname">res_sz</td><td>: the size of <em>res</em> buffer </td></tr> <tr><td class="paramname">is_decomp_am</td><td>: whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>total number of glyphs written to <em>res</em>[]</dd></dl> <p>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. </p> </div> </div> </div> <hr size="1"><address style="text-align: right;"><small> Generated for libthai by <a href="http://www.doxygen.org/ index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.7.3</small></address> </body> </html>