DrawText* CreateHtmlText(const char* putf8Str, const RectF& viewRect, const TextParams* ptxtParams = NULL, unsigned depth = ~0u); DrawText* CreateHtmlText(const wchar_t* pwstr, const RectF& viewRect, const TextParams* ptxtParams = NULL, unsigned depth = ~0u); DrawText* CreateHtmlText(const String& str, const RectF& viewRect, const TextParams* ptxtParams = NULL, unsigned depth = ~0u);
CreateHtmlText creates and initializes a DrawText object using the specified HTML.
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 the 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. |
A DrawText object initialized with HTML text.