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

Method addCenteredLine

src/cinder/Text.cpp:422–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void TextLayout::addCenteredLine( const string &line )
423{
424 shared_ptr<Line> newLine( new Line() );
425 newLine->addRun( Run( line, mCurrentFont, mCurrentColor ) );
426 newLine->mJustification = Line::CENTERED;
427 newLine->mLeadingOffset = mCurrentLeadingOffset;
428 mLines.push_back( newLine );
429}
430
431void TextLayout::addRightLine( const string &line )
432{

Callers 3

setupMethod · 0.80
QuakeMethod · 0.80
setupMethod · 0.80

Calls 3

RunClass · 0.85
addRunMethod · 0.80
push_backMethod · 0.45

Tested by 1

setupMethod · 0.64