MCPcopy Create free account
hub / github.com/cinder/Cinder / Run

Class Run

src/cinder/Text.cpp:119–137  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////////////// Run

Source from the content-addressed store, hash-verified

117////////////////////////////////////////////////////////////////////////////////////////
118// Run
119struct Run {
120 Run( const string &aText, const Font &aFont, const ColorA &aColor )
121 : mText( aText ), mFont( aFont ), mColor( aColor )
122 {
123#if defined( CINDER_MSW_DESKTOP )
124 mWideText = toUtf16( mText );
125#endif
126 }
127
128 string mText;
129 Font mFont;
130 ColorA mColor;
131#if defined( CINDER_MSW_DESKTOP )
132 std::u16string mWideText;
133 // in GDI+ rendering we need to know each run's typographic metrics
134 float mWidth;
135 float mDescent, mLeading, mAscent;
136#endif
137};
138
139////////////////////////////////////////////////////////////////////////////////////////
140// Line

Callers 5

addLineMethod · 0.85
addCenteredLineMethod · 0.85
addRightLineMethod · 0.85
appendMethod · 0.85
renderStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected