Structure for layout of arbitrary number of characters for text rendering.
More...
#include <kanzi/core.ui/text/text_layout.hpp>
Structure for layout of arbitrary number of characters for text rendering.
kanzi::TextLayout::TextLayout |
( |
const FontRuntime & |
font | ) |
|
|
explicit |
Constructor.
- Parameters
-
font | Font used for the layout. |
kanzi::TextLayout::~TextLayout |
( |
| ) |
|
Layouted characters of the text.
Font used for rendering the text.
float kanzi::TextLayout::left |
X axis coordinate of the left side of the text bounds.
float kanzi::TextLayout::top |
Y axis coordinate of the top side of the text bounds.
float kanzi::TextLayout::right |
X axis coordinate of the right side of the text bounds.
float kanzi::TextLayout::bottom |
Y axis coordinate of the bottom side of the text bounds.
float kanzi::TextLayout::width |
Width of the text bounds.
float kanzi::TextLayout::height |
Height of the text bounds.
unsigned int kanzi::TextLayout::lineCount |
unsigned int kanzi::TextLayout::characterCount |
bool kanzi::TextLayout::truncated |
If the text does not fit in the given maximum bounds, set to true.
bool kanzi::TextLayout::overlaps |
If at least two characters overlap, set to true.
The documentation for this struct was generated from the following file: