touchgfx::TextArea::resizeHeightToCurrentText() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::TextArea::resizeHeightToCurrentText()

touchgfx::TextArea::resizeHeightToCurrentText() method

@fn void TextArea::resizeHeightToCurrentText(); Sets the hight of the TextArea. Sets the height of the TextArea to match the height of the current associated text for the current selected language. This is espicially useful for texts with WordWrap enabled. Please note that if the current text rotation is either 90 or 270 degrees, the width of the text area will be set and not the height, as the text is rotated. @see resizeToCurrentText @see setWordWrap @see setRotation

Syntax

void resizeHeightToCurrentText();

References

LocationText
TextArea.hpp:365
void resizeHeightToCurrentText();