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 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 22 span.virtual_style 23 { 24 font-size : 8pt; 25 color : white; 26 font-weight : bold; 27 background : #0a0; 28 border-left : solid 1px #0f0; 29 border-top : solid 1px #0f0; 30 border-right : solid 1px #060; 31 border-bottom : solid 1px #060; 32 padding-left : 2px; 33 padding-right : 2px; 34 } 35 36 span.protected_style 37 { 38 font-size : 8pt; 39 color : white; 40 font-weight : bold; 41 background : #444; 42 border-left : solid 1px #ccc; 43 border-top : solid 1px #ccc; 44 border-right : solid 1px #222; 45 border-bottom : solid 1px #222; 46 padding-left : 2px; 47 padding-right : 2px; 48 } 49 --></style> 50 <title>nw::lyt::res::TextBox</title> 51 </head> 52 <body> 53 <h1><a href="../../../../nw/Overview.html">nw</a>::<a href="../../../../nw/lyt/Overview.html">lyt</a>::<a href="../../../../nw/lyt/res/Overview.html">res</a>::TextBox Structure</h1> 54 <h2>Syntax</h2> 55 <div class="section"> 56 <pre class="definition">struct TextBox : public <a href="../../../../nw/lyt/res/Pane/Overview.html">nw::lyt::res::Pane</a> 57{ 58 <a href="../../../../nw/ut/ResU16.html">ut::ResU16</a> textBufBytes; 59 <a href="../../../../nw/ut/ResU16.html">ut::ResU16</a> textStrBytes; 60 <a href="../../../../nw/ut/ResU16.html">ut::ResU16</a> materialIdx; 61 <a href="../../../../nw/ut/ResU16.html">ut::ResU16</a> fontIdx; 62 <a href="../../../../nw/ut/ResU8.html">ut::ResU8</a> textPosition; 63 <a href="../../../../nw/ut/ResU8.html">ut::ResU8</a> textAlignment; 64 <a href="../../../../nw/ut/ResU8.html">ut::ResU8</a> padding[2]; 65 <a href="../../../../nw/ut/ResU32.html">ut::ResU32</a> textStrOffset; 66 <a href="../../../../nw/lyt/res/Color/Overview.html">Color</a> textCols[TEXTCOLOR_MAX]; 67 <a href="../../../../nw/lyt/Size/Overview.html">Size</a> fontSize; 68 <a href="../../../../nw/ut/ResF32.html">ut::ResF32</a> charSpace; 69 <a href="../../../../nw/ut/ResF32.html">ut::ResF32</a> lineSpace; 70 <a href="../../../../nw/ut/BinaryBlockHeader/Overview.html">ut::BinaryBlockHeader</a> blockHeader; 71 <a href="../../../../nw/ut/ResU8.html">ut::ResU8</a> flag; 72 <a href="../../../../nw/ut/ResU8.html">ut::ResU8</a> basePosition; 73 <a href="../../../../nw/ut/ResU8.html">ut::ResU8</a> alpha; 74 char name[ResourceNameStrMax]; 75 char userData[UserDataStrMax]; 76 <a href="../../../../nw/lyt/res/Vec3/Overview.html">Vec3</a> translate; 77 <a href="../../../../nw/lyt/res/Vec3/Overview.html">Vec3</a> rotate; 78 <a href="../../../../nw/lyt/res/Vec2/Overview.html">Vec2</a> scale; 79 <a href="../../../../nw/lyt/Size/Overview.html">Size</a> size; 80}; 81</pre> 82 </div> 83 <h2>Description</h2> 84 <div class="section"> 85 <p>Data block for defining a TextBox pane.</p><p><a href="../../../../nw/lyt/res/DATABLOCKKIND_TEXTBOX.html">res::DATABLOCKKIND_TEXTBOX</a> is specified for the <CODE>kind</CODE> in <CODE>blockHeader</CODE>. </p><p>The following data structure follows this structure.</p><p>・ wchar_t text[];</p></div> 86 <a name="variable" id="variable"> 87 <h2>Member Variables</h2> 88 <div class="section"> 89 <table class="members"> 90 <tr> 91 <td width="100"> </td> 92 <th> 93 <span class="argument">textBufBytes</span> 94 </th> 95 <td width="100"><a href="../../../../nw/ut/ResU16.html">ut::ResU16</a></td> 96 <td>Bytes to allocate for the text buffer.</td> 97 </tr> 98 <tr> 99 <td width="100"> </td> 100 <th> 101 <span class="argument">textStrBytes</span> 102 </th> 103 <td width="100"><a href="../../../../nw/ut/ResU16.html">ut::ResU16</a></td> 104 <td>Number of bytes of the initial text string.</td> 105 </tr> 106 <tr> 107 <td width="100"> </td> 108 <th> 109 <span class="argument">materialIdx</span> 110 </th> 111 <td width="100"><a href="../../../../nw/ut/ResU16.html">ut::ResU16</a></td> 112 <td>Material index.</td> 113 </tr> 114 <tr> 115 <td width="100"> </td> 116 <th> 117 <span class="argument">fontIdx</span> 118 </th> 119 <td width="100"><a href="../../../../nw/ut/ResU16.html">ut::ResU16</a></td> 120 <td>Font index.</td> 121 </tr> 122 <tr> 123 <td width="100"> </td> 124 <th> 125 <span class="argument">textPosition</span> 126 </th> 127 <td width="100"><a href="../../../../nw/ut/ResU8.html">ut::ResU8</a></td> 128 <td>Text display base position. (<a href="../../../../nw/lyt/HorizontalPosition.html">lyt::HorizontalPosition</a> * HORIZONTALPOSITION_MAX + <a href="../../../../nw/lyt/VerticalPosition.html">lyt::VerticalPosition</a>)。</td> 129 </tr> 130 <tr> 131 <td width="100"> </td> 132 <th> 133 <span class="argument">textAlignment</span> 134 </th> 135 <td width="100"><a href="../../../../nw/ut/ResU8.html">ut::ResU8</a></td> 136 <td>Alignment specification. (TextAlignment)</td> 137 </tr> 138 <tr> 139 <td width="100"> </td> 140 <th> 141 <span class="argument">padding</span> 142 </th> 143 <td width="100"><a href="../../../../nw/ut/ResU8.html">ut::ResU8</a></td> 144 <td>(Not used.)</td> 145 </tr> 146 <tr> 147 <td width="100"> </td> 148 <th> 149 <span class="argument">textStrOffset</span> 150 </th> 151 <td width="100"><a href="../../../../nw/ut/ResU32.html">ut::ResU32</a></td> 152 <td>Text offset (from the start of the data block).</td> 153 </tr> 154 <tr> 155 <td width="100"> </td> 156 <th> 157 <span class="argument">textCols</span> 158 </th> 159 <td width="100"><a href="../../../../nw/lyt/res/Color/Overview.html">Color</a></td> 160 <td>Text display color.</td> 161 </tr> 162 <tr> 163 <td width="100"> </td> 164 <th> 165 <span class="argument">fontSize</span> 166 </th> 167 <td width="100"><a href="../../../../nw/lyt/Size/Overview.html">Size</a></td> 168 <td>Font size.</td> 169 </tr> 170 <tr> 171 <td width="100"> </td> 172 <th> 173 <span class="argument">charSpace</span> 174 </th> 175 <td width="100"><a href="../../../../nw/ut/ResF32.html">ut::ResF32</a></td> 176 <td>Text character spacing.</td> 177 </tr> 178 <tr> 179 <td width="100"> </td> 180 <th> 181 <span class="argument">lineSpace</span> 182 </th> 183 <td width="100"><a href="../../../../nw/ut/ResF32.html">ut::ResF32</a></td> 184 <td>Text line spacing.</td> 185 </tr> 186 <tr> 187 <td width="100"> </td> 188 <th> 189 <span class="argument">blockHeader</span> 190 </th> 191 <td width="100"><a href="../../../../nw/ut/BinaryBlockHeader/Overview.html">ut::BinaryBlockHeader</a></td> 192 <td>Header.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 193 </tr> 194 <tr> 195 <td width="100"> </td> 196 <th> 197 <span class="argument">flag</span> 198 </th> 199 <td width="100"><a href="../../../../nw/ut/ResU8.html">ut::ResU8</a></td> 200 <td>A flag. (<a href="../../../../nw/lyt/PaneFlag.html">lyt::PaneFlag</a>)(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 201 </tr> 202 <tr> 203 <td width="100"> </td> 204 <th> 205 <span class="argument">basePosition</span> 206 </th> 207 <td width="100"><a href="../../../../nw/ut/ResU8.html">ut::ResU8</a></td> 208 <td>Base position. (<a href="../../../../nw/lyt/HorizontalPosition.html">lyt::HorizontalPosition</a> * HORIZONTALPOSITION_MAX + <a href="../../../../nw/lyt/VerticalPosition.html">lyt::VerticalPosition</a>)。(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 209 </tr> 210 <tr> 211 <td width="100"> </td> 212 <th> 213 <span class="argument">alpha</span> 214 </th> 215 <td width="100"><a href="../../../../nw/ut/ResU8.html">ut::ResU8</a></td> 216 <td>Alpha value.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 217 </tr> 218 <tr> 219 <td width="100"> </td> 220 <th> 221 <span class="argument">name</span> 222 </th> 223 <td width="100"><CODE>char</CODE></td> 224 <td>Pane name.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 225 </tr> 226 <tr> 227 <td width="100"> </td> 228 <th> 229 <span class="argument">userData</span> 230 </th> 231 <td width="100"><CODE>char</CODE></td> 232 <td>User data.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 233 </tr> 234 <tr> 235 <td width="100"> </td> 236 <th> 237 <span class="argument">translate</span> 238 </th> 239 <td width="100"><a href="../../../../nw/lyt/res/Vec3/Overview.html">Vec3</a></td> 240 <td>Translation value.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 241 </tr> 242 <tr> 243 <td width="100"> </td> 244 <th> 245 <span class="argument">rotate</span> 246 </th> 247 <td width="100"><a href="../../../../nw/lyt/res/Vec3/Overview.html">Vec3</a></td> 248 <td>Rotation value.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 249 </tr> 250 <tr> 251 <td width="100"> </td> 252 <th> 253 <span class="argument">scale</span> 254 </th> 255 <td width="100"><a href="../../../../nw/lyt/res/Vec2/Overview.html">Vec2</a></td> 256 <td>The scale value.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 257 </tr> 258 <tr> 259 <td width="100"> </td> 260 <th> 261 <span class="argument"><CODE>size</CODE></span> 262 </th> 263 <td width="100"><a href="../../../../nw/lyt/Size/Overview.html">Size</a></td> 264 <td>Size.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 265 </tr> </table> 266 </div> 267 </a> 268 <h2>Inheritance Hierarchy</h2> 269 <div class="section"> 270 <p class="hierarchy"><a href="../../../../nw/lyt/res/Pane/Overview.html">nw::lyt::res::Pane</a><br /> <b>nw::lyt::res::TextBox</b> 271 </p> 272 </div> 273 <h2>See Also</h2> 274 <div class="section"> 275 <p class="reference"><a href="../../../../nw/lyt/res/Lyt/Overview.html">Lyt</a><br /><a href="../../../../nw/lyt/res/PaneBegin/Overview.html">PaneBegin</a><br /> </p> 276 </div> 277 <h2>Revision History</h2> 278 <div class="section"> 279 <dl class="history"> 280 <dt>2010/01/26</dt> 281 <dd>Initial version.<br /> 282 </dd> 283 </dl> 284 </div> 285 <hr><p>CONFIDENTIAL</p></body> 286</html>