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 Bytes to allocate for the text buffer.
textStrBytes Number of bytes of the initial text string.
materialIdx Material index.
fontIdx Font index.
textPosition Text display base position. (lyt::HorizontalPosition * HORIZONTALPOSITION_MAX + lyt::VerticalPosition)。
textAlignment Alignment specification. (TextAlignment)
padding (Not used.)
textStrOffset Text offset (from the start of the data block).
textCols Text display color.
fontSize Font size.
charSpace Text character spacing.
lineSpace Text line spacing.
blockHeader Header.(Inherited from Pane.
flag A flag. (lyt::PaneFlag)(Inherited from Pane.
basePosition Base position. (lyt::HorizontalPosition * HORIZONTALPOSITION_MAX + lyt::VerticalPosition)。(Inherited from Pane.
alpha Alpha value.(Inherited from Pane.
name Pane name.(Inherited from Pane.
userData User data.(Inherited from Pane.
translate Translation value.(Inherited from Pane.
rotate Rotation value.(Inherited from Pane.
scale The scale value.(Inherited from Pane.
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