Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Public Attributes | List of all members
castor3d::TextLine Struct Reference

A text chars container, along with its size and position. More...

#include <OverlayModule.hpp>

Public Member Functions

auto words (OverlayWords &cont) const
 
auto chars (castor::Array< TextChar, MaxCharsPerOverlay > &cont) const
 

Public Attributes

castor::Point2f position {}
 
castor::Point2f range {}
 
float width {}
 
uint32_t wordBegin {}
 
uint32_t wordEnd {}
 
uint32_t charBegin {}
 
uint32_t charEnd {}
 
uint32_t pad {}
 

Detailed Description

A text chars container, along with its size and position.

Member Function Documentation

◆ chars()

auto castor3d::TextLine::chars ( castor::Array< TextChar, MaxCharsPerOverlay > & cont) const
inline

References charBegin, charEnd, and castor::makeArrayView().

Here is the call graph for this function:

◆ words()

auto castor3d::TextLine::words ( OverlayWords & cont) const
inline

References castor::makeArrayView(), wordBegin, and wordEnd.

Here is the call graph for this function:

Member Data Documentation

◆ charBegin

uint32_t castor3d::TextLine::charBegin {}

The index of the beginning of the line.

Referenced by chars().

◆ charEnd

uint32_t castor3d::TextLine::charEnd {}

The index of the end of the line.

Referenced by chars().

◆ pad

uint32_t castor3d::TextLine::pad {}

◆ position

castor::Point2f castor3d::TextLine::position {}

The line position.

◆ range

castor::Point2f castor3d::TextLine::range {}

The y range, relative to bearing.

◆ width

float castor3d::TextLine::width {}

The line width.

◆ wordBegin

uint32_t castor3d::TextLine::wordBegin {}

The index of the beginning of the line.

Referenced by words().

◆ wordEnd

uint32_t castor3d::TextLine::wordEnd {}

The index of the end of the line.

Referenced by words().


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