nw::lyt::TextBox::TextBox Constructor

Syntax

TextBox(
     u16 allocStrLen,
     const wchar_t*                  str,
     u16 strLen,
     const font::Font * pFont
);

Arguments

Name Description
allocStrLen Number of characters to be allocated to the text string buffer.
str The text string.
strLen The text string length.
pFont Pointer to a font.

Description

Constructor.

Allocates a text buffer and creates an object. If 0 is specified for allocStrLen, a text buffer is not allocated.

Sets str as the initial text string. The length of the text string must always be the value specified by strLen. The NULL terminator (0000h) is not detected.

Sets the font given by pFont as the font to be drawn.

Revision History

2009/09/18
Initial version.

CONFIDENTIAL