DrawTextManager::CreateText

DrawTextManager::CreateText
DrawText* CreateText(const char* putf8Str, const RectF& viewRect, const TextParams* ptxtParams = NULL, unsigned depth = ~0u);
DrawText* CreateText(const wchar_t* pwstr, const RectF& viewRect, const TextParams* ptxtParams = NULL, unsigned depth = ~0u);
DrawText* CreateText(const String& str, const RectF& viewRect, const TextParams* ptxtParams = NULL, unsigned depth = ~0u);
Description

CreateText creates and initializes a DrawText object using plain text. If ptxtParams is specified, the created instance will be initialized using the specified parameters.

Parameters
Parameters 
Description 
const char* putf8Str 
Null-terminated UTF-8 string. 
const RectF& viewRect 
Coordinates of text view area (in pixels), relatively to top-left corner of viewport. 
const TextParams* ptxtParams = NULL 
Optional parameter, specifies the parameters of the newly created text. 
unsigned depth = ~0u 
Specifies the order of drawing; text with higher depth will be drawn later than the ones with lower depth. 
const wchar_t* pwstr 
Null-terminated Unicode/UCS-2 string. 
const String& str 
The string used for the text. 
Return Value

A DrawText object initialized with plain text.