All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
KzuTextLayout Struct Reference

Structure for layout of arbitrary number of characters for text rendering. More...

#include <user/util/font/kzu_text_layout.h>

Public Attributes

struct KzuFontfont
 Font used for rendering the text. More...
 
kzFloat left
 X-coordinate of the left size of the text bounds. More...
 
kzFloat top
 Y-coordinate of the top size of the text bounds. More...
 
kzFloat right
 X-coordinate of the right size of the text bounds. More...
 
kzFloat bottom
 Y-coordinate of the bottom size of the text bounds. More...
 
kzFloat width
 Width of the text bounds. More...
 
kzFloat height
 Height of the text bounds. More...
 
kzUint lineCount
 Number of lines. More...
 
kzUint characterCount
 Number of characters. More...
 
kzBool truncated
 Set to KZ_TRUE if the text did not fit to the given maximum bounds. More...
 
kzBool overlaps
 Set to KZ_TRUE if at least two characters overlap each other. More...
 
struct KzuCharacterLayoutcharacters
 Layouted characters of the text. More...
 
void * renderData
 Font implementation specific rendering data calculated in the prepare. More...
 

Detailed Description

Structure for layout of arbitrary number of characters for text rendering.

Member Data Documentation

struct KzuFont* KzuTextLayout::font

Font used for rendering the text.

kzFloat KzuTextLayout::left

X-coordinate of the left size of the text bounds.

kzFloat KzuTextLayout::top

Y-coordinate of the top size of the text bounds.

kzFloat KzuTextLayout::right

X-coordinate of the right size of the text bounds.

kzFloat KzuTextLayout::bottom

Y-coordinate of the bottom size of the text bounds.

kzFloat KzuTextLayout::width

Width of the text bounds.

kzFloat KzuTextLayout::height

Height of the text bounds.

kzUint KzuTextLayout::lineCount

Number of lines.

kzUint KzuTextLayout::characterCount

Number of characters.

kzBool KzuTextLayout::truncated

Set to KZ_TRUE if the text did not fit to the given maximum bounds.

kzBool KzuTextLayout::overlaps

Set to KZ_TRUE if at least two characters overlap each other.

struct KzuCharacterLayout* KzuTextLayout::characters

Layouted characters of the text.

void* KzuTextLayout::renderData

Font implementation specific rendering data calculated in the prepare.


The documentation for this struct was generated from the following file: