Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
sktext::GlyphRun Class Reference

#include <GlyphRun.h>

Public Member Functions

 GlyphRun (const SkFont &font, SkSpan< const SkPoint > positions, SkSpan< const SkGlyphID > glyphIDs, SkSpan< const char > text, SkSpan< const uint32_t > clusters, SkSpan< const SkVector > scaledRotations)
 
 GlyphRun (const GlyphRun &glyphRun, const SkFont &font)
 
size_t runSize () const
 
SkSpan< const SkPointpositions () const
 
SkSpan< const SkGlyphIDglyphsIDs () const
 
SkZip< const SkGlyphID, const SkPointsource () const
 
const SkFontfont () const
 
SkSpan< const uint32_t > clusters () const
 
SkSpan< const char > text () const
 
SkSpan< const SkVectorscaledRotations () const
 

Detailed Description

Definition at line 36 of file GlyphRun.h.

Constructor & Destructor Documentation

◆ GlyphRun() [1/2]

sktext::GlyphRun::GlyphRun ( const SkFont font,
SkSpan< const SkPoint positions,
SkSpan< const SkGlyphID glyphIDs,
SkSpan< const char >  text,
SkSpan< const uint32_t >  clusters,
SkSpan< const SkVector scaledRotations 
)

Definition at line 27 of file GlyphRun.cpp.

33 : fSource{SkMakeZip(glyphIDs, positions)}
34 , fText{text}
35 , fClusters{clusters}
36 , fScaledRotations{scaledRotations}
37 , fFont{font} {}
constexpr auto SkMakeZip(Ts &&... ts)
Definition: SkZip.h:212
SkSpan< const SkVector > scaledRotations() const
Definition: GlyphRun.h:54
SkSpan< const char > text() const
Definition: GlyphRun.h:53
const SkFont & font() const
Definition: GlyphRun.h:51
SkSpan< const uint32_t > clusters() const
Definition: GlyphRun.h:52
SkSpan< const SkPoint > positions() const
Definition: GlyphRun.h:48

◆ GlyphRun() [2/2]

sktext::GlyphRun::GlyphRun ( const GlyphRun glyphRun,
const SkFont font 
)

Definition at line 39 of file GlyphRun.cpp.

40 : fSource{that.fSource}
41 , fText{that.fText}
42 , fClusters{that.fClusters}
43 , fFont{font} {}

Member Function Documentation

◆ clusters()

SkSpan< const uint32_t > sktext::GlyphRun::clusters ( ) const
inline

Definition at line 52 of file GlyphRun.h.

52{ return fClusters; }

◆ font()

const SkFont & sktext::GlyphRun::font ( ) const
inline

Definition at line 51 of file GlyphRun.h.

51{ return fFont; }

◆ glyphsIDs()

SkSpan< const SkGlyphID > sktext::GlyphRun::glyphsIDs ( ) const
inline

Definition at line 49 of file GlyphRun.h.

49{ return fSource.get<0>(); }

◆ positions()

SkSpan< const SkPoint > sktext::GlyphRun::positions ( ) const
inline

Definition at line 48 of file GlyphRun.h.

48{ return fSource.get<1>(); }

◆ runSize()

size_t sktext::GlyphRun::runSize ( ) const
inline

Definition at line 47 of file GlyphRun.h.

47{ return fSource.size(); }

◆ scaledRotations()

SkSpan< const SkVector > sktext::GlyphRun::scaledRotations ( ) const
inline

Definition at line 54 of file GlyphRun.h.

54{ return fScaledRotations; }

◆ source()

SkZip< const SkGlyphID, const SkPoint > sktext::GlyphRun::source ( ) const
inline

Definition at line 50 of file GlyphRun.h.

50{ return fSource; }

◆ text()

SkSpan< const char > sktext::GlyphRun::text ( ) const
inline

Definition at line 53 of file GlyphRun.h.

53{ return fText; }

The documentation for this class was generated from the following files: