[][src]Module embedded_text::style::height_mode

Height adjustment options.

This module defines various options to set the height of a StyledTextBox. Although it is necessary to specify the size of a TextBox, sometimes we may want the text to stretch or shrink the text box. Height modes help us achieve this.

Structs

Exact

Keep the original TextBox height.

FitToText

Sets the height of the StyledTextBox to exactly fit the text.

ShrinkToText

If the text does not fill the bounding box, shrink the StyledTextBox to be as tall as the text.

Traits

HeightMode

Specifies how the TextBox's height is adjusted when it is turned into a StyledTextBox.