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>nw::lyt::res::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>Bytes to allocate for the text buffer.</td> 96 </tr> 97 <tr> 98 <td width="100"> </td> 99 <th> 100 <span class="argument">textStrBytes</span> 101 </th> 102 <td>Number of bytes of the initial text string.</td> 103 </tr> 104 <tr> 105 <td width="100"> </td> 106 <th> 107 <span class="argument">materialIdx</span> 108 </th> 109 <td>Material index.</td> 110 </tr> 111 <tr> 112 <td width="100"> </td> 113 <th> 114 <span class="argument">fontIdx</span> 115 </th> 116 <td>Font index.</td> 117 </tr> 118 <tr> 119 <td width="100"> </td> 120 <th> 121 <span class="argument">textPosition</span> 122 </th> 123 <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> 124 </tr> 125 <tr> 126 <td width="100"> </td> 127 <th> 128 <span class="argument">textAlignment</span> 129 </th> 130 <td>Alignment specification. (TextAlignment)</td> 131 </tr> 132 <tr> 133 <td width="100"> </td> 134 <th> 135 <span class="argument">padding</span> 136 </th> 137 <td>(Not used.)</td> 138 </tr> 139 <tr> 140 <td width="100"> </td> 141 <th> 142 <span class="argument">textStrOffset</span> 143 </th> 144 <td>Text offset (from the start of the data block).</td> 145 </tr> 146 <tr> 147 <td width="100"> </td> 148 <th> 149 <span class="argument">textCols</span> 150 </th> 151 <td>Text display color.</td> 152 </tr> 153 <tr> 154 <td width="100"> </td> 155 <th> 156 <span class="argument">fontSize</span> 157 </th> 158 <td>Font size.</td> 159 </tr> 160 <tr> 161 <td width="100"> </td> 162 <th> 163 <span class="argument">charSpace</span> 164 </th> 165 <td>Text character spacing.</td> 166 </tr> 167 <tr> 168 <td width="100"> </td> 169 <th> 170 <span class="argument">lineSpace</span> 171 </th> 172 <td>Text line spacing.</td> 173 </tr> 174 <tr> 175 <td width="100"> </td> 176 <th> 177 <span class="argument">blockHeader</span> 178 </th> 179 <td>Header.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 180 </tr> 181 <tr> 182 <td width="100"> </td> 183 <th> 184 <span class="argument">flag</span> 185 </th> 186 <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> 187 </tr> 188 <tr> 189 <td width="100"> </td> 190 <th> 191 <span class="argument">basePosition</span> 192 </th> 193 <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> 194 </tr> 195 <tr> 196 <td width="100"> </td> 197 <th> 198 <span class="argument">alpha</span> 199 </th> 200 <td>Alpha value.(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">name</span> 206 </th> 207 <td>Pane name.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 208 </tr> 209 <tr> 210 <td width="100"> </td> 211 <th> 212 <span class="argument">userData</span> 213 </th> 214 <td>User data.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 215 </tr> 216 <tr> 217 <td width="100"> </td> 218 <th> 219 <span class="argument">translate</span> 220 </th> 221 <td>Translation value.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 222 </tr> 223 <tr> 224 <td width="100"> </td> 225 <th> 226 <span class="argument">rotate</span> 227 </th> 228 <td>Rotation value.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 229 </tr> 230 <tr> 231 <td width="100"> </td> 232 <th> 233 <span class="argument">scale</span> 234 </th> 235 <td>The scale value.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 236 </tr> 237 <tr> 238 <td width="100"> </td> 239 <th> 240 <span class="argument"><CODE>size</CODE></span> 241 </th> 242 <td>Size.(Inherited from <a href="../../../nw/gfx/SceneNode/Overview.html"><CODE>Pane</CODE></a>.</td> 243 </tr> </table> 244 </div> 245 </a> 246 <h2>Inheritance Hierarchy</h2> 247 <div class="section"> 248 <p class="hierarchy"><a href="../../../../nw/lyt/res/Pane/Overview.html">nw::lyt::res::Pane</a><br /> <b>nw::lyt::res::TextBox</b> 249 </p> 250 </div> 251 <h2>See Also</h2> 252 <div class="section"> 253 <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> 254 </div> 255 <h2>Revision History</h2> 256 <div class="section"> 257 <dl class="history"> 258 <dt>2010/01/26</dt> 259 <dd>Initial version.<br /> 260 </dd> 261 </dl> 262 </div> 263 <hr><p>CONFIDENTIAL</p></body> 264</html>