RAMSES Documentation  27.0.130
Information for RAMSES users and developers
Classes | Functions
ramses::LayoutUtils Namespace Reference

Classes

struct  StringBoundingBox
 Helper data structure describing multiple glyphs metrics. More...
 

Functions

RAMSES_API StringBoundingBox GetBoundingBoxForString (GlyphMetricsVector::const_iterator first, GlyphMetricsVector::const_iterator last)
 Compute a bounding box for a string represented by a range of GlyphMetrics. More...
 
RAMSES_API StringBoundingBox GetBoundingBoxForString (const GlyphMetricsVector::const_reverse_iterator &first, const GlyphMetricsVector::const_reverse_iterator &last)
 Compute a bounding box for a string represented by a range of GlyphMetrics. More...
 

Function Documentation

◆ GetBoundingBoxForString() [1/2]

RAMSES_API StringBoundingBox ramses::LayoutUtils::GetBoundingBoxForString ( const GlyphMetricsVector::const_reverse_iterator &  first,
const GlyphMetricsVector::const_reverse_iterator &  last 
)

Compute a bounding box for a string represented by a range of GlyphMetrics.

Parameters
[in]firstBeginning of range of GlyphMetrics to compute bounding box
[in]lastEnd of range of GlyphMetrics to compute bounding box, glyph pointed to by last is not included
Returns
The bounding box of the provided string, or bounding box of Zero values on failure

◆ GetBoundingBoxForString() [2/2]

RAMSES_API StringBoundingBox ramses::LayoutUtils::GetBoundingBoxForString ( GlyphMetricsVector::const_iterator  first,
GlyphMetricsVector::const_iterator  last 
)

Compute a bounding box for a string represented by a range of GlyphMetrics.

Parameters
[in]firstBeginning of range of GlyphMetrics to compute bounding box
[in]lastEnd of range of GlyphMetrics to compute bounding box, glyph pointed to by last is not included
Returns
The bounding box of the provided string, or bounding box of Zero values on failure