libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::graphics::Text::ShapeResult Struct Reference

Result of the shape() function. More...

#include <donut/graphics/Text.hpp>

Public Attributes

std::size_t shapedGlyphOffset
 Index, into the lists returned by getShapedGlyphs() and getShapedGlyphsInfo(), of the ShapedGlyph and ShapedGlyphInfo corresponding to the first glyph that was shaped. More...
 
std::size_t shapedLineOffset
 Index, into the list returned by getShapedLinesInfo(), of the ShapedLineInfo corresponding to the first line that was shaped. More...
 

Detailed Description

Result of the shape() function.

Member Data Documentation

◆ shapedGlyphOffset

std::size_t donut::graphics::Text::ShapeResult::shapedGlyphOffset

Index, into the lists returned by getShapedGlyphs() and getShapedGlyphsInfo(), of the ShapedGlyph and ShapedGlyphInfo corresponding to the first glyph that was shaped.

If no glyphs were shaped, this is the index that the first glyph would have had if it was shaped, i.e. the previous size of the lists.

◆ shapedLineOffset

std::size_t donut::graphics::Text::ShapeResult::shapedLineOffset

Index, into the list returned by getShapedLinesInfo(), of the ShapedLineInfo corresponding to the first line that was shaped.


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