touchgfx::Font::getStringWidthLTR() const method
@fn uint16_t Font::getStringWidthLTR(TextDirection textDirection, const Unicode::UnicodeChar* text, va_list pArg) const; Gets the width in pixels of the specified string. Gets the width in pixels of the specified string. If the string contains multiple lines, the width of the widest line is found. Please note that the correct number of arguments must be given if the text contains wildcards. The string is assumed to be purely left-to-right.
Arguments
textDirection
The text direction.
text
A zero-terminated unicode string with arguments to insert if the text contains wildcards.
pArg
Variable arguments providing additional information.
Return value
The width in pixels of the longest line of the specified string.
Examples
touchgfx::Font::getStringWidthLTR() const is referenced by
4 libraries and example projects.
Implementations
touchgfx::Font::getStringWidthLTR() const
Type of touchgfx::Font::getStringWidthLTR() const
touchgfx::Font::getStringWidthLTR() const
uint16_t all items filtered out