touchgfx::LCD::getNumLines() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

touchgfx::LCD::getNumLines() method

@fn static uint16_t LCD::getNumLines(TextProvider& textProvider, WideTextAction wideTextAction, TextDirection textDirection, const Font* font, int16_t width); Gets number lines. Gets number of lines for a given text taking word wrap into consideration. The font and width are required to find the number of lines in case word wrap is true.

Syntax

static uint16_t getNumLines(TextProvider& textProvider,     WideTextAction wideTextAction,     TextDirection textDirection,     const Font* font,     int16_t width);

Arguments

textProvider

wideTextAction

The wide text action in case lines are longer than the width of the text area.

textDirection

The text direction (LTR or RTL).

font

The font.

width

The width.

Return value

The number lines.

References

LocationText
LCD.hpp:573

Type Use

Type of touchgfx::LCD::getNumLines()
touchgfx::LCD::getNumLines()
uint16_t
all items filtered out