nw::lyt::res::TextBox Structure

Syntax

struct TextBox : public nw::lyt::res::Pane
{
   ut::ResU16 textBufBytes;
   ut::ResU16 textStrBytes;
   ut::ResU16 materialIdx;
   ut::ResU16 fontIdx;
   ut::ResU8 textPosition;
   ut::ResU8 textAlignment;
   ut::ResU8 padding[2];
   ut::ResU32 textStrOffset;
   Color textCols[TEXTCOLOR_MAX];
   Size fontSize;
   ut::ResF32 charSpace;
   ut::ResF32 lineSpace;
   ut::BinaryBlockHeader blockHeader;
   ut::ResU8 flag;
   ut::ResU8 basePosition;
   ut::ResU8 alpha;
   char name[ResourceNameStrMax];
   char userData[UserDataStrMax];
   Vec3 translate;
   Vec3 rotate;
   Vec2 scale;
   Size            size;
};

Description

Data block for defining a TextBox pane.

res::DATABLOCKKIND_TEXTBOX is specified for the kind in blockHeader.

The following data structure follows this structure.

・ wchar_t text[];

Member Variables

textBufBytes ut::ResU16 Bytes to allocate for the text buffer.
textStrBytes ut::ResU16 Number of bytes of the initial text string.
materialIdx ut::ResU16 Material index.
fontIdx ut::ResU16 Font index.
textPosition ut::ResU8 Text display base position. (lyt::HorizontalPosition * HORIZONTALPOSITION_MAX + lyt::VerticalPosition)。
textAlignment ut::ResU8 Alignment specification. (TextAlignment)
padding ut::ResU8 (Not used.)
textStrOffset ut::ResU32 Text offset (from the start of the data block).
textCols Color Text display color.
fontSize Size Font size.
charSpace ut::ResF32 Text character spacing.
lineSpace ut::ResF32 Text line spacing.
blockHeader ut::BinaryBlockHeader Header.(Inherited from Pane.
flag ut::ResU8 A flag. (lyt::PaneFlag)(Inherited from Pane.
basePosition ut::ResU8 Base position. (lyt::HorizontalPosition * HORIZONTALPOSITION_MAX + lyt::VerticalPosition)。(Inherited from Pane.
alpha ut::ResU8 Alpha value.(Inherited from Pane.
name char Pane name.(Inherited from Pane.
userData char User data.(Inherited from Pane.
translate Vec3 Translation value.(Inherited from Pane.
rotate Vec3 Rotation value.(Inherited from Pane.
scale Vec2 The scale value.(Inherited from Pane.
size Size Size.(Inherited from Pane.

Inheritance Hierarchy

nw::lyt::res::Pane
  nw::lyt::res::TextBox

See Also

Lyt
PaneBegin

Revision History

2010/01/26
Initial version.

CONFIDENTIAL