Kanzi 4.0.0-beta2
kanzi::TextLayouter::LineInfo Struct Reference

Structure for holding data about text lines. More...

#include <kanzi/core.ui/text/text_layouter.hpp>

Public Member Functions

 LineInfo (size_t length, float width, size_t startIndex)
 Constructor.
 

Public Attributes

size_t length
 Length of a line of text in characters.
 
size_t startIndex
 Index to the first character in a line.
 
float width
 Width of a line of text in pixels.
 

Detailed Description

Structure for holding data about text lines.

Constructor & Destructor Documentation

◆ LineInfo()

kanzi::TextLayouter::LineInfo::LineInfo ( size_t length,
float width,
size_t startIndex )
inline

Constructor.

Parameters
lengthLine length in characters.
widthLine width in pixels.
startIndexIndex of the first character in line.
Since
Kanzi 4.0.0 changed the type of the length and startIndex parameters to size_t.

Member Data Documentation

◆ width

float kanzi::TextLayouter::LineInfo::width

Width of a line of text in pixels.

◆ length

size_t kanzi::TextLayouter::LineInfo::length

Length of a line of text in characters.

Since
Kanzi 4.0.0 changed the type to size_t.

◆ startIndex

size_t kanzi::TextLayouter::LineInfo::startIndex

Index to the first character in a line.

Since
Kanzi 4.0.0 changed the type to size_t.

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