<!-- This comment will put IE 6, 7 and 8 in quirks mode --> <!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>ICU 4.4.1: FontRuns Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javaScript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.6.2-20100208 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <img id="MSearchSelect" src="search/search.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)"/> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </div> </li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="classes.html"><span>Data Structure Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> </div> <div class="contents"> <h1>FontRuns Class Reference</h1><!-- doxytag: class="FontRuns" --><!-- doxytag: inherits="RunArray" --> <p>The <code><a class="el" href="classFontRuns.html" title="The FontRuns class associates pointers to LEFontInstance objects with runs of text...">FontRuns</a></code> class associates pointers to <code><a class="el" href="classLEFontInstance.html" title="This is a virtual base class that serves as the interface between a LayoutEngine...">LEFontInstance</a></code> objects with runs of text. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>></code></p> <div class="dynheader"> Inheritance diagram for FontRuns:</div> <div class="dynsection"> <div class="center"> <img src="classFontRuns.png" usemap="#FontRuns_map" alt=""/> <map id="FontRuns_map" name="FontRuns_map"> <area href="classRunArray.html" alt="RunArray" shape="rect" coords="0,112,67,136"/> <area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,67,80"/> <area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,67,24"/> </map> </div> </div> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFontRuns.html#abed9bd234037ff00ab329b4b32db46c6">FontRuns</a> (const <a class="el" href="classLEFontInstance.html">LEFontInstance</a> **fonts, const <a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> *limits, <a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> count)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a <code><a class="el" href="classFontRuns.html" title="The FontRuns class associates pointers to LEFontInstance objects with runs of text...">FontRuns</a></code> object from pre-existing arrays of fonts and limit indices. <a href="#abed9bd234037ff00ab329b4b32db46c6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFontRuns.html#a6762a2a5c25ecd1bd1859231ae03df10">FontRuns</a> (<a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> initialCapacity)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct an empty <code><a class="el" href="classFontRuns.html" title="The FontRuns class associates pointers to LEFontInstance objects with runs of text...">FontRuns</a></code> object. <a href="#a6762a2a5c25ecd1bd1859231ae03df10"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classFontRuns.html#a72aa025756c91fc3642231ac39709b04">~FontRuns</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The destructor; virtual so that subclass destructors are invoked as well. <a href="#a72aa025756c91fc3642231ac39709b04"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classLEFontInstance.html">LEFontInstance</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classFontRuns.html#aa6ebcbf3a862e8c56748ead5af1b66f9">getFont</a> (<a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> run) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the <code><a class="el" href="classLEFontInstance.html" title="This is a virtual base class that serves as the interface between a LayoutEngine...">LEFontInstance</a></code> object assoicated with the given run of text. <a href="#aa6ebcbf3a862e8c56748ead5af1b66f9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFontRuns.html#a3dcbb98d93f65611ff3385f65852e44e">add</a> (const <a class="el" href="classLEFontInstance.html">LEFontInstance</a> *font, <a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> limit)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add an <code><a class="el" href="classLEFontInstance.html" title="This is a virtual base class that serves as the interface between a LayoutEngine...">LEFontInstance</a></code> and limit index pair to the data arrays and return the run index where the data was stored. <a href="#a3dcbb98d93f65611ff3385f65852e44e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFontRuns.html#a25081829cead67f5bea9f4713ed1bc0d">getDynamicClassID</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class. <a href="#a25081829cead67f5bea9f4713ed1bc0d"></a><br/></td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFontRuns.html#aec8bc3b6506ef15bb628ca85bc3bee03">getStaticClassID</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class. <a href="#aec8bc3b6506ef15bb628ca85bc3bee03"></a><br/></td></tr> <tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classFontRuns.html#a54b467a29c09e1a9a05c4da12c1553d9">init</a> (<a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> capacity)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a data array with the given initial size. <a href="#a54b467a29c09e1a9a05c4da12c1553d9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classFontRuns.html#aafd123d2d077d7ce16e2760f70c905df">grow</a> (<a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> capacity)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Grow a data array to the given initial size. <a href="#aafd123d2d077d7ce16e2760f70c905df"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>The <code><a class="el" href="classFontRuns.html" title="The FontRuns class associates pointers to LEFontInstance objects with runs of text...">FontRuns</a></code> class associates pointers to <code><a class="el" href="classLEFontInstance.html" title="This is a virtual base class that serves as the interface between a LayoutEngine...">LEFontInstance</a></code> objects with runs of text. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable004185">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl> <p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00270">270</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="abed9bd234037ff00ab329b4b32db46c6"></a><!-- doxytag: member="FontRuns::FontRuns" ref="abed9bd234037ff00ab329b4b32db46c6" args="(const LEFontInstance **fonts, const le_int32 *limits, le_int32 count)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FontRuns::FontRuns </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLEFontInstance.html">LEFontInstance</a> ** </td> <td class="paramname"> <em>fonts</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> * </td> <td class="paramname"> <em>limits</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> </td> <td class="paramname"> <em>count</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Construct a <code><a class="el" href="classFontRuns.html" title="The FontRuns class associates pointers to LEFontInstance objects with runs of text...">FontRuns</a></code> object from pre-existing arrays of fonts and limit indices. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>fonts</em> </td><td>is the address of an array of pointers to <code><a class="el" href="classLEFontInstance.html" title="This is a virtual base class that serves as the interface between a LayoutEngine...">LEFontInstance</a></code> objects. This array, and the <code><a class="el" href="classLEFontInstance.html" title="This is a virtual base class that serves as the interface between a LayoutEngine...">LEFontInstance</a></code> objects to which it points must remain valid until the <code><a class="el" href="classFontRuns.html" title="The FontRuns class associates pointers to LEFontInstance objects with runs of text...">FontRuns</a></code> object is destroyed.</td></tr> <tr><td valign="top"></td><td valign="top"><em>limits</em> </td><td>is the address of an array of limit indices. This array must remain valid until the <code><a class="el" href="classFontRuns.html" title="The FontRuns class associates pointers to LEFontInstance objects with runs of text...">FontRuns</a></code> object is destroyed.</td></tr> <tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>is the number of entries in the two arrays.</td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable004201">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl> <p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00395">395</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p> <p>References <a class="el" href="RunArrays_8h_source.html#l00395">FontRuns()</a>.</p> <p>Referenced by <a class="el" href="RunArrays_8h_source.html#l00395">FontRuns()</a>.</p> </div> </div> <a class="anchor" id="a6762a2a5c25ecd1bd1859231ae03df10"></a><!-- doxytag: member="FontRuns::FontRuns" ref="a6762a2a5c25ecd1bd1859231ae03df10" args="(le_int32 initialCapacity)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FontRuns::FontRuns </td> <td>(</td> <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> </td> <td class="paramname"> <em>initialCapacity</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Construct an empty <code><a class="el" href="classFontRuns.html" title="The FontRuns class associates pointers to LEFontInstance objects with runs of text...">FontRuns</a></code> object. </p> <p>Clients can add font and limit indices arrays using the <code>add</code> method.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>initialCapacity</em> </td><td>is the initial size of the font and limit indices arrays. If this value is zero, no arrays will be allocated.</td></tr> </table> </dd> </dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classFontRuns.html#a3dcbb98d93f65611ff3385f65852e44e" title="Add an LEFontInstance and limit index pair to the data arrays and return the run...">add</a></dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable004202">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl> </div> </div> <a class="anchor" id="a72aa025756c91fc3642231ac39709b04"></a><!-- doxytag: member="FontRuns::~FontRuns" ref="a72aa025756c91fc3642231ac39709b04" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual FontRuns::~FontRuns </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>The destructor; virtual so that subclass destructors are invoked as well. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable004203">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a3dcbb98d93f65611ff3385f65852e44e"></a><!-- doxytag: member="FontRuns::add" ref="a3dcbb98d93f65611ff3385f65852e44e" args="(const LEFontInstance *font, le_int32 limit)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> FontRuns::add </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLEFontInstance.html">LEFontInstance</a> * </td> <td class="paramname"> <em>font</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> </td> <td class="paramname"> <em>limit</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Add an <code><a class="el" href="classLEFontInstance.html" title="This is a virtual base class that serves as the interface between a LayoutEngine...">LEFontInstance</a></code> and limit index pair to the data arrays and return the run index where the data was stored. </p> <p>This method calls <code>RunArray::add(limit)</code> which will create or grow the arrays as needed.</p> <p>If the <code><a class="el" href="classFontRuns.html" title="The FontRuns class associates pointers to LEFontInstance objects with runs of text...">FontRuns</a></code> object was created with a client-supplied font and limit indices arrays, this method will return a run index of -1.</p> <p>Subclasses should not override this method. Rather they should provide a new <code>add</code> method which takes a font and a limit index along with whatever other data they implement. The new <code>add</code> method should first call this method to grow the font and limit indices arrays, and use the returned run index to store data their own arrays.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>is the address of the <code><a class="el" href="classLEFontInstance.html" title="This is a virtual base class that serves as the interface between a LayoutEngine...">LEFontInstance</a></code> to add. This object must remain valid until the <code><a class="el" href="classFontRuns.html" title="The FontRuns class associates pointers to LEFontInstance objects with runs of text...">FontRuns</a></code> object is destroyed.</td></tr> <tr><td valign="top"></td><td valign="top"><em>limit</em> </td><td>is the limit index to add</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the run index where the font and limit index were stored, or -1 if the data cannot be stored.</dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable004205">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl> </div> </div> <a class="anchor" id="a25081829cead67f5bea9f4713ed1bc0d"></a><!-- doxytag: member="FontRuns::getDynamicClassID" ref="a25081829cead67f5bea9f4713ed1bc0d" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> FontRuns::getDynamicClassID </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>ICU "poor man's RTTI", returns a UClassID for the actual class. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable004207">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl> <p>Reimplemented from <a class="el" href="classRunArray.html#a7f74856ce5a362740299a359dc945a45">RunArray</a>.</p> <p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00362">362</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p> <p>References <a class="el" href="RunArrays_8h_source.html#l00155">RunArray::getStaticClassID()</a>.</p> </div> </div> <a class="anchor" id="aa6ebcbf3a862e8c56748ead5af1b66f9"></a><!-- doxytag: member="FontRuns::getFont" ref="aa6ebcbf3a862e8c56748ead5af1b66f9" args="(le_int32 run) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classLEFontInstance.html">LEFontInstance</a>* FontRuns::getFont </td> <td>(</td> <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> </td> <td class="paramname"> <em>run</em></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Get the <code><a class="el" href="classLEFontInstance.html" title="This is a virtual base class that serves as the interface between a LayoutEngine...">LEFontInstance</a></code> object assoicated with the given run of text. </p> <p>Use <code>RunArray::getLimit(run)</code> to get the corresponding limit index.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>run</em> </td><td>is the index into the font and limit indices arrays.</td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the <code><a class="el" href="classLEFontInstance.html" title="This is a virtual base class that serves as the interface between a LayoutEngine...">LEFontInstance</a></code> associated with the given text run.</dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classRunArray.html#a428e9f6f1ade14e5cc33c6bb0f911ab3" title="Get the last limit index.">RunArray::getLimit</a></dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable004204">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl> </div> </div> <a class="anchor" id="aec8bc3b6506ef15bb628ca85bc3bee03"></a><!-- doxytag: member="FontRuns::getStaticClassID" ref="aec8bc3b6506ef15bb628ca85bc3bee03" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> FontRuns::getStaticClassID </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>ICU "poor man's RTTI", returns a UClassID for this class. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable004206">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl> <p>Reimplemented from <a class="el" href="classRunArray.html#ab9bc82428042aa0ab416de2cf5ece3df">RunArray</a>.</p> <p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00355">355</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p> </div> </div> <a class="anchor" id="aafd123d2d077d7ce16e2760f70c905df"></a><!-- doxytag: member="FontRuns::grow" ref="aafd123d2d077d7ce16e2760f70c905df" args="(le_int32 capacity)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void FontRuns::grow </td> <td>(</td> <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> </td> <td class="paramname"> <em>capacity</em></td> <td> ) </td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Grow a data array to the given initial size. </p> <p>This method will be called by the <code>add</code> method if the limit indices array is full. Subclasses which override this method must also call it from the overriding method to grow the limit indices array.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>capacity</em> </td><td>is the initial size of the data array.</td></tr> </table> </dd> </dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classFontRuns.html#a3dcbb98d93f65611ff3385f65852e44e" title="Add an LEFontInstance and limit index pair to the data arrays and return the run...">add</a></dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable004199">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl> <p>Reimplemented from <a class="el" href="classRunArray.html#ac09e01408d8afa1272027a8937a4e1a1">RunArray</a>.</p> </div> </div> <a class="anchor" id="a54b467a29c09e1a9a05c4da12c1553d9"></a><!-- doxytag: member="FontRuns::init" ref="a54b467a29c09e1a9a05c4da12c1553d9" args="(le_int32 capacity)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void FontRuns::init </td> <td>(</td> <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> </td> <td class="paramname"> <em>capacity</em></td> <td> ) </td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Create a data array with the given initial size. </p> <p>This method will be called by the <code>add</code> method if there is no limit indices array. Subclasses which override this method must also call it from the overriding method to create the limit indices array.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>capacity</em> </td><td>is the initial size of the data array.</td></tr> </table> </dd> </dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classFontRuns.html#a3dcbb98d93f65611ff3385f65852e44e" title="Add an LEFontInstance and limit index pair to the data arrays and return the run...">add</a></dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable004198">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl> <p>Reimplemented from <a class="el" href="classRunArray.html#a4a4822936fdabd6c9336134fb659a32d">RunArray</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="RunArrays_8h_source.html">RunArrays.h</a></li> </ul> </div> <!--- 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>Data Structures</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>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>