1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7    <title>TextBox</title>
8  </head>
9  <body>
10    <h1>nw::lyt::TextBox::TextBox Constructor</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14explicit TextBox(
15     <span>u16</span> allocStrLen = 0
16);
17
18TextBox(
19     <span>u16</span> allocStrLen,
20     const wchar_t*                  str,
21     const <a href="../../../nw/font/Font/Overview.html">font::Font</a> * pFont
22);
23
24TextBox(
25     <span>u16</span> allocStrLen,
26     const wchar_t*                  str,
27     <span>u16</span> strLen,
28     const <a href="../../../nw/font/Font/Overview.html">font::Font</a> * pFont
29);
30
31TextBox(
32     const <a href="../../../nw/lyt/res/TextBox/Overview.html">res::TextBox</a> * pBlock,
33     const <a href="../../../nw/lyt/ResBlockSet/Overview.html">ResBlockSet</a> & resBlockSet
34);
35</pre>
36    </div>
37    <h2>List of Overloaded Member Functions</h2>
38    <div class="section">
39      <table class="members">
40        <tr>
41          <td>
42            <a href="./TextBox(0).html">TextBox ( u16 ) </a>
43          </td>
44          <td>Constructor.</td>
45        </tr>
46        <tr>
47          <td>
48            <a href="./TextBox(1).html">TextBox ( u16, const wchar_t *, const font::Font * ) </a>
49          </td>
50          <td>Constructor.</td>
51        </tr>
52        <tr>
53          <td>
54            <a href="./TextBox(2).html">TextBox ( u16, const wchar_t *, u16, const font::Font * ) </a>
55          </td>
56          <td>Constructor.</td>
57        </tr>
58        <tr>
59          <td>
60            <a href="./TextBox(3).html">TextBox ( const res::TextBox *, const ResBlockSet & ) </a>
61          </td>
62          <td>Constructor.</td>
63        </tr> </table>
64    </div>
65    <h2>Description of TextBox ( u16 )</h2>
66    <div class="section"><p>Allocates a text buffer and creates an object. If 0 is specified for <CODE>allocStrLen</CODE>, a text buffer is not allocated.</p></div>
67    <h2>Description of TextBox ( u16, const wchar_t *, const font::Font * )</h2>
68    <div class="section"><p>Sets <CODE>str</CODE> as the initial text string.</p><p>Sets the font given by <CODE>pFont</CODE> as the font to be drawn.</p></div>
69    <h2>Description of TextBox ( u16, const wchar_t *, u16, const font::Font * )</h2>
70    <div class="section"><p>Allocates a text buffer and creates an object. If 0 is specified for <CODE>allocStrLen</CODE>, a text buffer is not allocated.</p><p>Sets <CODE>str</CODE> as the initial text string. The length of the text string must always be the value specified by <CODE>strLen</CODE>. The NULL terminator (0000h) is not detected.</p><p>Sets the font given by <CODE>pFont</CODE> as the font to be drawn.</p></div>
71    <h2>Description of TextBox ( const res::TextBox *, const ResBlockSet & )</h2>
72    <div class="section"><p>Creates an object from a resource.</p></div>
73  <hr><p>CONFIDENTIAL</p></body>
74</html>